Package org.gnome.gdk
Enum Class AxisUse
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<AxisUse>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum AxisUse
extends Enum<AxisUse>
implements Enumeration
Defines how device axes are interpreted by GTK.
Note that the X and Y axes are not really needed; pointer devices report their location via the x/y members of events regardless. Whether X and Y are present as axes depends on the GDK backend.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionthe axis is used as the scroll x deltathe axis is used as the scroll y deltathe axis is used for pen/tablet distance informationthe axis is ignored.a constant equal to the numerically highest axis value.the axis is used for pressure information.the axis is used for pen rotation informationthe axis is used for pen slider informationthe axis is used for wheel information.the axis is used as the x axis.the axis is used for x tilt information.the axis is used as the y axis.the axis is used for y tilt information. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the AxisUse classint
getValue()
Get the numeric value of this enumstatic AxisUse
of
(int value) Create a new AxisUse for the provided valuestatic AxisUse
Returns the enum constant of this class with the specified name.static AxisUse[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNORE
the axis is ignored. -
X
the axis is used as the x axis. -
Y
the axis is used as the y axis. -
DELTA_X
the axis is used as the scroll x delta -
DELTA_Y
the axis is used as the scroll y delta -
PRESSURE
the axis is used for pressure information. -
XTILT
the axis is used for x tilt information. -
YTILT
the axis is used for y tilt information. -
WHEEL
the axis is used for wheel information. -
DISTANCE
the axis is used for pen/tablet distance information -
ROTATION
the axis is used for pen rotation information -
SLIDER
the axis is used for pen slider information -
LAST
a constant equal to the numerically highest axis value.
-
-
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 AxisUse 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
-