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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandlerintExtracts the touchpad gesture phase from a touchpad event.static intintExtracts the number of fingers from a touchpad event.static longstatic TypeSystem.TypeSizedoubleExtracts the angle delta from a touchpad pinch event.doubleExtracts the scale from a touchpad pinch event.static longstatic TypeSystem.TypeSizeMethods inherited from class ch.bailu.gtk.gdk.Event
getDevice, getDeviceTool, getDisplay, getEventSequence, getEventType, getModifierState, getPointerEmulated, getSeat, getSurface, getTime, ref, triggersContextMenu, unrefMethods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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()
-