Package org.gnome.gdk
Enum Class InputSource
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<InputSource>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum InputSource
extends Enum<InputSource>
implements Enumeration
An enumeration describing the type of an input device in general terms.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionthe device is a keyboard.the device is a mouse.the device is a stylus of a graphics tablet or similar device.the device is a "pad", a collection of buttons, rings and strips found in drawing tabletsthe device is an indirect touch device, such as a touchpadthe device is a direct-input touch device, such as a touchscreen or tabletthe device is a trackpoint -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the InputSource classint
getValue()
Get the numeric value of this enumstatic InputSource
of
(int value) Create a new InputSource for the provided valuestatic InputSource
Returns the enum constant of this class with the specified name.static InputSource[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MOUSE
the device is a mouse. (This will be reported for the core pointer, even if it is something else, such as a trackball.) -
PEN
the device is a stylus of a graphics tablet or similar device. -
KEYBOARD
the device is a keyboard. -
TOUCHSCREEN
the device is a direct-input touch device, such as a touchscreen or tablet -
TOUCHPAD
the device is an indirect touch device, such as a touchpad -
TRACKPOINT
the device is a trackpoint -
TABLET_PAD
the device is a "pad", a collection of buttons, rings and strips found in drawing tablets
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Create a new InputSource for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-