Package ch.bailu.gtk.gtk
Class GestureClick
- All Implemented Interfaces:
PointerInterface
`GtkGestureClick` is a `GtkGesture` implementation for clicks.
It is able to recognize multiple clicks on a nearby zone, which
can be listened for through the [signal@Gtk.GestureClick::pressed]
signal. Whenever time or distance between clicks exceed the GTK
defaults, [signal@Gtk.GestureClick::stopped] is emitted, and the
click counter is reset.
It is able to recognize multiple clicks on a nearby zone, which
can be listened for through the [signal@Gtk.GestureClick::pressed]
signal. Whenever time or distance between clicks exceed the GTK
defaults, [signal@Gtk.GestureClick::stopped] is emitted, and the
click counter is reset.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interfaceNested classes/interfaces inherited from class ch.bailu.gtk.gtk.Gesture
Gesture.OnBegin, Gesture.OnCancel, Gesture.OnEnd, Gesture.OnSequenceStateChanged, Gesture.OnUpdateNested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class ch.bailu.gtk.gtk.Gesture
SIGNAL_ON_BEGIN, SIGNAL_ON_CANCEL, SIGNAL_ON_END, SIGNAL_ON_SEQUENCE_STATE_CHANGED, SIGNAL_ON_UPDATEFields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Constructor Summary
ConstructorsConstructorDescriptionReturns a newly created `GtkGesture` that recognizes
single and multiple presses.GestureClick(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandlerstatic intstatic longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizeonPressed(GestureClick.OnPressed signal) Connect to signal "pressed".onReleased(GestureClick.OnReleased signal) Connect to signal "released".onStopped(GestureClick.OnStopped signal) Connect to signal "stopped".Connect to signal "unpaired-release".Methods inherited from class ch.bailu.gtk.gtk.GestureSingle
getButton, getCurrentButton, getCurrentSequence, getExclusive, getTouchOnly, setButton, setExclusive, setTouchOnlyMethods inherited from class ch.bailu.gtk.gtk.Gesture
getBoundingBox, getDevice, getGroup, getLastEvent, getLastUpdatedSequence, getSequences, getSequenceState, group, handlesSequence, isActive, isGroupedWith, isRecognized, onBegin, onCancel, onEnd, onSequenceStateChanged, onUpdate, setSequenceState, setState, ungroupMethods inherited from class ch.bailu.gtk.gtk.EventController
getCurrentEvent, getCurrentEventDevice, getCurrentEventState, getCurrentEventTime, getName, getPropagationLimit, getPropagationPhase, getWidget, reset, setName, setName, setPropagationLimit, setPropagationPhase, setStaticName, setStaticNameMethods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnrefMethods 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
-
Field Details
-
SIGNAL_ON_PRESSED
- See Also:
-
SIGNAL_ON_RELEASED
- See Also:
-
SIGNAL_ON_STOPPED
- See Also:
-
SIGNAL_ON_UNPAIRED_RELEASE
- See Also:
-
-
Constructor Details
-
GestureClick
-
GestureClick
public GestureClick()Returns a newly created `GtkGesture` that recognizes
single and multiple presses.
-
-
Method Details
-
getClassHandler
-
onPressed
Connect to signal "pressed".
SeeGestureClick.OnPressed.onPressed(int, double, double)for signal description.
FieldSIGNAL_ON_PRESSEDcontains original signal name and can be used as resource reference.- Parameters:
signal- callback function (lambda).- Returns:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
onReleased
Connect to signal "released".
SeeGestureClick.OnReleased.onReleased(int, double, double)for signal description.
FieldSIGNAL_ON_RELEASEDcontains original signal name and can be used as resource reference.- Parameters:
signal- callback function (lambda).- Returns:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
onStopped
Connect to signal "stopped".
SeeGestureClick.OnStopped.onStopped()for signal description.
FieldSIGNAL_ON_STOPPEDcontains original signal name and can be used as resource reference.- Parameters:
signal- callback function (lambda).- Returns:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
onUnpairedRelease
Connect to signal "unpaired-release".
SeeGestureClick.OnUnpairedRelease.onUnpairedRelease(double, double, int, ch.bailu.gtk.gdk.EventSequence)for signal description.
FieldSIGNAL_ON_UNPAIRED_RELEASEcontains original signal name and can be used as resource reference.- Parameters:
signal- callback function (lambda).- Returns:
SignalHandler. Can be used to disconnect signal and to release callback function.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-