Class ScrollEvent

All Implemented Interfaces:
PointerInterface

public class ScrollEvent extends Event
An event related to a scrolling motion.

https://docs.gtk.org/gdk4/class.ScrollEvent.html

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getDirection

      public int getDirection()
      Extracts the direction of a scroll event.
      Returns:
      the scroll direction of @event
    • getUnit

      public int getUnit()
      Extracts the scroll delta unit of a scroll event.

      The unit will always be %GDK_SCROLL_UNIT_WHEEL if the scroll direction is not
      %GDK_SCROLL_SMOOTH.
      Returns:
      the scroll unit.
    • isStop

      public boolean isStop()
      Check whether a scroll event is a stop scroll event.

      Scroll sequences with smooth scroll information may provide
      a stop scroll event once the interaction with the device finishes,
      e.g. by lifting a finger. This stop scroll event is the signal
      that a widget may trigger kinetic scrolling based on the current
      velocity.

      Stop scroll events always have a delta of 0/0.
      Returns:
      %TRUE if the event is a scroll stop event
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()