Class
PhocGesture
Descendants
Instance methods
phoc_gesture_get_point
If sequence
is currently being interpreted by self
,
returns TRUE
and fills in x
and y
with the last coordinates
stored for that event sequence.
phoc_gesture_get_sequences
Returns the list of PhocEventSequence
s currently being interpreted
by PhocGesture
.
phoc_gesture_handles_sequence
Returns TRUE
if self
is currently handling events corresponding to
sequence
.
unstable since: 3.14
phoc_gesture_is_active
Returns TRUE
if the gesture is currently active.
A gesture is active meanwhile there are touch sequences
interacting with it.
unstable since: 3.14
phoc_gesture_is_recognized
Returns TRUE
if the gesture is currently recognized.
A gesture is recognized if there are as many interacting
touch sequences as required by self
, and PhocGesture::check
returned TRUE
for the sequences being currently interpreted.
phoc_gesture_set_sequence_state
Sets the state of sequence
in self
. Sequences start
in state #PHOC_EVENT_SEQUENCE_NONE, and whenever they change
state, they can never go back to that state. Likewise,
sequences in state #PHOC_EVENT_SEQUENCE_DENIED cannot turn
back to a not denied state. With these rules, the lifetime
of an event sequence is constrained to the next four:.
Signals
Phoc.Gesture::end
Emitted when gesture
stopped recognizing the event
sequences as something to be handled.
Phoc.Gesture::sequence-state-changed
This signal is emitted whenever a sequence state changes. See
phoc_gesture_set_sequence_state()
to know more about the expectable
sequence lifetimes.