Enum Class InputSource

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

@Generated("org.javagi.JavaGI") public enum InputSource extends Enum<InputSource> implements Enumeration
An enumeration describing the type of an input device in general terms.
  • Enum Constant Details

    • MOUSE

      public static final InputSource 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

      public static final InputSource PEN
      the device is a stylus of a graphics tablet or similar device.
    • KEYBOARD

      public static final InputSource KEYBOARD
      the device is a keyboard.
    • TOUCHSCREEN

      public static final InputSource TOUCHSCREEN
      the device is a direct-input touch device, such as a touchscreen or tablet
    • TOUCHPAD

      public static final InputSource TOUCHPAD
      the device is an indirect touch device, such as a touchpad
    • TRACKPOINT

      public static final InputSource TRACKPOINT
      the device is a trackpoint
    • TABLET_PAD

      public static final InputSource TABLET_PAD
      the device is a "pad", a collection of buttons, rings and strips found in drawing tablets
  • Method Details

    • values

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

      public static InputSource of(MemorySegment address)
      Create a new InputSource 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 InputSource class.
      Returns:
      the GType