GestureState¶
- class pyto_ui.GestureState(*values)¶
The state of a gesture recognizer.
- BEGAN = 1¶
The gesture recognizer has received touch objects recognized as a continuous gesture. It sends its action message (or messages) at the next cycle of the run loop.
- CANCELLED = 4¶
The gesture recognizer has received touches resulting in the cancellation of a continuous gesture. It sends its action message (or messages) at the next cycle of the run loop and resets its state to possible.
- CHANGED = 2¶
The gesture recognizer has received touches recognized as a change to a continuous gesture. It sends its action message (or messages) at the next cycle of the run loop.
- ENDED = 3¶
The gesture recognizer has received touches recognized as the end of a continuous gesture. It sends its action message (or messages) at the next cycle of the run loop and resets its state to possible.
- POSSIBLE = 0¶
The gesture recognizer has not yet recognized its gesture, but may be evaluating touch events. This is the default state.
- RECOGNIZED = 3¶
The gesture recognizer has received a multi-touch sequence that it recognizes as its gesture. It sends its action message (or messages) at the next cycle of the run loop and resets its state to possible.