Package ch.bailu.gtk.gdk
Class ScrollEvent
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gdk.Event
ch.bailu.gtk.gdk.ScrollEvent
- All Implemented Interfaces:
PointerInterface
An event related to a scrolling motion.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
int
Extracts the direction of a scroll event.static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
int
getUnit()
Extracts the scroll delta unit of a scroll event.boolean
isStop()
Check whether a scroll event is a stop scroll event.Methods inherited from class ch.bailu.gtk.gdk.Event
getDevice, getDeviceTool, getDisplay, getEventSequence, getEventType, getModifierState, getPointerEmulated, getSeat, getSurface, getTime, ref, triggersContextMenu, unref
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
ScrollEvent
-
-
Method Details
-
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
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-