Type Alias: GtkGestureProps
GtkGestureProps =
EventControllerBaseProps&object
Defined in: generated/jsx.ts:10294
Props for the GtkGesture controller element.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
onBegin()? | (sequence, self) => void | null | Emitted when the gesture is recognized. This means the number of touch sequences matches Gesture.n-points. 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. | generated/jsx.ts:10306 |
onCancel()? | (sequence, self) => void | null | Emitted whenever a sequence is cancelled. This usually happens on active touches when EventController.reset is called on gesture (manually, due to grabs...), or the individual sequence was claimed by parent widgets' controllers (see Gesture.set_sequence_state). gesture must forget everything about sequence as in response to this signal. | generated/jsx.ts:10319 |
onEnd()? | (sequence, self) => void | null | Emitted when gesture either stopped recognizing the event sequences as something to be handled, or the number of touch sequences became higher or lower than Gesture.n-points. Note: sequence might not pertain to the group of sequences that were previously triggering recognition on gesture (ie. a just pressed touch sequence that exceeds Gesture.n-points). This situation may be detected by checking through Gesture.handles_sequence. | generated/jsx.ts:10331 |
onSequenceStateChanged()? | (sequence, state, self) => void | null | Emitted whenever a sequence state changes. See Gesture.set_sequence_state to know more about the expectable sequence lifetimes. | generated/jsx.ts:10338 |
onUpdate()? | (sequence, self) => void | null | Emitted whenever an event is handled while the gesture is recognized. sequence is guaranteed to pertain to the set of active touches. | generated/jsx.ts:10348 |
ref? | Ref<Gtk.Gesture> | - | generated/jsx.ts:10349 |