Enum Class EventType

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

@Generated("org.javagi.JavaGI") public enum EventType extends Enum<EventType> implements Enumeration
Specifies the type of the event.
  • Enum Constant Details

    • DELETE

      public static final EventType DELETE
      the window manager has requested that the toplevel surface be hidden or destroyed, usually when the user clicks on a special icon in the title bar.
    • MOTION_NOTIFY

      public static final EventType MOTION_NOTIFY
      the pointer (usually a mouse) has moved.
    • BUTTON_PRESS

      public static final EventType BUTTON_PRESS
      a mouse button has been pressed.
    • BUTTON_RELEASE

      public static final EventType BUTTON_RELEASE
      a mouse button has been released.
    • KEY_PRESS

      public static final EventType KEY_PRESS
      a key has been pressed.
    • KEY_RELEASE

      public static final EventType KEY_RELEASE
      a key has been released.
    • ENTER_NOTIFY

      public static final EventType ENTER_NOTIFY
      the pointer has entered the surface.
    • LEAVE_NOTIFY

      public static final EventType LEAVE_NOTIFY
      the pointer has left the surface.
    • FOCUS_CHANGE

      public static final EventType FOCUS_CHANGE
      the keyboard focus has entered or left the surface.
    • PROXIMITY_IN

      public static final EventType PROXIMITY_IN
      an input device has moved into contact with a sensing surface (e.g. a touchscreen or graphics tablet).
    • PROXIMITY_OUT

      public static final EventType PROXIMITY_OUT
      an input device has moved out of contact with a sensing surface.
    • DRAG_ENTER

      public static final EventType DRAG_ENTER
      the mouse has entered the surface while a drag is in progress.
    • DRAG_LEAVE

      public static final EventType DRAG_LEAVE
      the mouse has left the surface while a drag is in progress.
    • DRAG_MOTION

      public static final EventType DRAG_MOTION
      the mouse has moved in the surface while a drag is in progress.
    • DROP_START

      public static final EventType DROP_START
      a drop operation onto the surface has started.
    • SCROLL

      public static final EventType SCROLL
      the scroll wheel was turned
    • GRAB_BROKEN

      public static final EventType GRAB_BROKEN
      a pointer or keyboard grab was broken.
    • TOUCH_BEGIN

      public static final EventType TOUCH_BEGIN
      A new touch event sequence has just started.
    • TOUCH_UPDATE

      public static final EventType TOUCH_UPDATE
      A touch event sequence has been updated.
    • TOUCH_END

      public static final EventType TOUCH_END
      A touch event sequence has finished.
    • TOUCH_CANCEL

      public static final EventType TOUCH_CANCEL
      A touch event sequence has been canceled.
    • TOUCHPAD_SWIPE

      public static final EventType TOUCHPAD_SWIPE
      A touchpad swipe gesture event, the current state is determined by its phase field.
    • TOUCHPAD_PINCH

      public static final EventType TOUCHPAD_PINCH
      A touchpad pinch gesture event, the current state is determined by its phase field.
    • PAD_BUTTON_PRESS

      public static final EventType PAD_BUTTON_PRESS
      A tablet pad button press event.
    • PAD_BUTTON_RELEASE

      public static final EventType PAD_BUTTON_RELEASE
      A tablet pad button release event.
    • PAD_RING

      public static final EventType PAD_RING
      A tablet pad axis event from a "ring".
    • PAD_STRIP

      public static final EventType PAD_STRIP
      A tablet pad axis event from a "strip".
    • PAD_GROUP_MODE

      public static final EventType PAD_GROUP_MODE
      A tablet pad group mode change.
    • TOUCHPAD_HOLD

      public static final EventType TOUCHPAD_HOLD
      A touchpad hold gesture event, the current state is determined by its phase field.
      Since:
      4.6
    • PAD_DIAL

      public static final EventType PAD_DIAL
      A tablet pad axis event from a "dial".
    • EVENT_LAST

      public static final EventType EVENT_LAST
      marks the end of the GdkEventType enumeration.
  • Method Details

    • values

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