GestureDragSignalName
public enum GestureDragSignalName : String, SignalNameProtocol
Undocumented
-
This signal is emitted when the gesture is recognized. This means the number of touch sequences matches
GtkGesture:n-points
, and theGtkGesture::check
handler(s)
returnedTRUE
.Note: These conditions may also happen when an extra touch (eg. a third touch on a 2-touches gesture) is lifted, in that situation
sequence
won’t pertain to the current set of active touches, so don’t rely on this being true.Declaration
Swift
case begin = "begin"
-
This signal is emitted whenever a sequence is cancelled. This usually happens on active touches when
gtk_event_controller_reset()
is called ongesture
(manually, due to grabs…), or the individualsequence
was claimed by parent widgets’ controllers (seegtk_gesture_set_sequence_state()
).gesture
must forget everything aboutsequence
as a reaction to this signal.Declaration
Swift
case cancel = "cancel"
-
This signal is emitted whenever dragging starts.
Declaration
Swift
case dragBegin = "drag-begin"
-
This signal is emitted whenever the dragging is finished.
Declaration
Swift
case dragEnd = "drag-end"
-
This signal is emitted whenever the dragging point moves.
Declaration
Swift
case dragUpdate = "drag-update"
-
This signal is emitted when
gesture
either stopped recognizing the event sequences as something to be handled (theGtkGesture::check
handler returnedfalse
), or the number of touch sequences became higher or lower thanGtkGesture:n-points
.Note:
sequence
might not pertain to the group of sequences that were previously triggering recognition ongesture
(ie. a just pressed touch sequence that exceedsGtkGesture:n-points
). This situation may be detected by checking throughgtk_gesture_handles_sequence()
.Declaration
Swift
case end = "end"
-
The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this:(C Language Example):
g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Declaration
Swift
case notify = "notify"
-
This signal is emitted whenever a sequence state changes. See
gtk_gesture_set_sequence_state()
to know more about the expectable sequence lifetimes.Declaration
Swift
case sequenceStateChanged = "sequence-state-changed"
-
This signal is emitted whenever an event is handled while the gesture is recognized.
sequence
is guaranteed to pertain to the set of active touches.Declaration
Swift
case update = "update"
-
Mouse button number to listen to, or 0 to listen for any button.
Declaration
Swift
case notifyButton = "notify::button"
-
Whether the gesture is exclusive. Exclusive gestures only listen to pointer and pointer emulated events.
Declaration
Swift
case notifyExclusive = "notify::exclusive"
-
The number of touch points that trigger recognition on this gesture,
Declaration
Swift
case notifyNPoints = "notify::n-points"
-
The propagation phase at which this controller will handle events.
Declaration
Swift
case notifyPropagationPhase = "notify::propagation-phase"
-
Whether the gesture handles only touch events.
Declaration
Swift
case notifyTouchOnly = "notify::touch-only"
-
The widget receiving the
GdkEvents
that the controller will handle.Declaration
Swift
case notifyWidget = "notify::widget"
-
If non-
nil
, the gesture will only listen for events that happen on thisGdkWindow
, or a child of it.Declaration
Swift
case notifyWindow = "notify::window"