Class CrossingEvent

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class CrossingEvent extends Event
An event caused by a pointing device moving between surfaces.
  • Constructor Details

    • CrossingEvent

      public CrossingEvent(MemorySegment address)
      Create a CrossingEvent 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 CrossingEvent class.
      Returns:
      the GType
    • getMemoryLayout

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

      protected CrossingEvent 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
    • getDetail

      public NotifyType getDetail()
      Extracts the notify detail from a crossing event.
      Returns:
      the notify detail of this CrossingEvent
    • getFocus

      public boolean getFocus()
      Checks if the this CrossingEvent surface is the focus surface.
      Returns:
      true if the surface is the focus surface
    • getMode

      public CrossingMode getMode()
      Extracts the crossing mode from a crossing event.
      Returns:
      the mode of this CrossingEvent