Class ButtonEvent

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ButtonEvent extends Event
An event related to a button on a pointer device.
  • Constructor Details

    • ButtonEvent

      public ButtonEvent(MemorySegment address)
      Create a ButtonEvent instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
  • Method Details

    • getType

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

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected ButtonEvent asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class Event
      Returns:
      the instance as if it were its parent type
    • getButton

      public int getButton()
      Extract the button number from a button event.
      Returns:
      the button of this ButtonEvent