Enum Class AxisUse

java.lang.Object
java.lang.Enum<AxisUse>
org.gnome.gdk.AxisUse
All Implemented Interfaces:
Serializable, Comparable<AxisUse>, Constable, Enumeration

@Generated("org.javagi.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 Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    the axis is used as the scroll x delta
    the axis is used as the scroll y delta
    the axis is used for pen/tablet distance information
    the 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 information
    the axis is used for pen slider information
    the 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 Type
    Method
    Description
    static @Nullable Type
    Get the GType of the AxisUse class.
    int
    Get the numeric value of this enum
    static AxisUse
    of(int value)
    Create a new AxisUse for the provided value
    static AxisUse
    of(MemorySegment address)
    Create a new AxisUse for the value in the provided memory address.
    static AxisUse
    Returns the enum constant of this class with the specified name.
    static AxisUse[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • IGNORE

      public static final AxisUse IGNORE
      the axis is ignored.
    • X

      public static final AxisUse X
      the axis is used as the x axis.
    • Y

      public static final AxisUse Y
      the axis is used as the y axis.
    • DELTA_X

      public static final AxisUse DELTA_X
      the axis is used as the scroll x delta
    • DELTA_Y

      public static final AxisUse DELTA_Y
      the axis is used as the scroll y delta
    • PRESSURE

      public static final AxisUse PRESSURE
      the axis is used for pressure information.
    • XTILT

      public static final AxisUse XTILT
      the axis is used for x tilt information.
    • YTILT

      public static final AxisUse YTILT
      the axis is used for y tilt information.
    • WHEEL

      public static final AxisUse WHEEL
      the axis is used for wheel information.
    • DISTANCE

      public static final AxisUse DISTANCE
      the axis is used for pen/tablet distance information
    • ROTATION

      public static final AxisUse ROTATION
      the axis is used for pen rotation information
    • SLIDER

      public static final AxisUse SLIDER
      the axis is used for pen slider information
    • LAST

      public static final AxisUse LAST
      a constant equal to the numerically highest axis value.
  • Method Details

    • values

      public static AxisUse[] 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

      public static AxisUse valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • of

      public static AxisUse of(int value)
      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 interface Enumeration
      Returns:
      the enum value
    • of

      public static AxisUse of(MemorySegment address)
      Create a new AxisUse for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the AxisUse class.
      Returns:
      the GType