Package ch.bailu.gtk.gdk
Class TouchpadEvent
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gdk.Event
ch.bailu.gtk.gdk.TouchpadEvent
- All Implemented Interfaces:
PointerInterface
An event related to a gesture on a touchpad device.
Unlike touchscreens, where the windowing system sends basic
sequences of begin, update, end events, and leaves gesture
recognition to the clients, touchpad gestures are typically
processed by the system, resulting in these events.
Unlike touchscreens, where the windowing system sends basic
sequences of begin, update, end events, and leaves gesture
recognition to the clients, touchpad gestures are typically
processed by the system, resulting in these events.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
int
Extracts the touchpad gesture phase from a touchpad event.static int
int
Extracts the number of fingers from a touchpad event.static long
static TypeSystem.TypeSize
double
Extracts the angle delta from a touchpad pinch event.double
Extracts the scale from a touchpad pinch event.static long
static TypeSystem.TypeSize
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
-
TouchpadEvent
-
-
Method Details
-
getClassHandler
-
getGesturePhase
public int getGesturePhase()Extracts the touchpad gesture phase from a touchpad event.- Returns:
- the gesture phase of @event
-
getNFingers
public int getNFingers()Extracts the number of fingers from a touchpad event.- Returns:
- the number of fingers for @event
-
getPinchAngleDelta
public double getPinchAngleDelta()Extracts the angle delta from a touchpad pinch event.- Returns:
- the angle delta of @event
-
getPinchScale
public double getPinchScale()Extracts the scale from a touchpad pinch event.- Returns:
- the scale of @event
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-