uTouch-qml
1.0
A QML plugin for the uTouch gesture stack
|
An input-only item for receiving instantaneous tap gesture events. More...
Inherits InstantaneousGestureArea.
Signals | |
void | onGestureOccurred (GestureEvent gesture) |
This handler is called when an instantaneous gesture occurs. | |
Properties | |
Gesture | subscription |
This property holds the subscription for the item. | |
bool | enabled |
This property holds whether the item accepts gesture events. | |
GestureProperty | centroid |
This property holds the position of the centroid of the touches comprising the gesture. | |
point | focus |
This property holds the focus point of the gesture. |
An input-only item for receiving instantaneous tap gesture events.
void InstantaneousGestureArea::onGestureOccurred | ( | GestureEvent | gesture | ) | [signal, inherited] |
This handler is called when an instantaneous gesture occurs.
The gesture parameter provides information about the gesture.
If the accepted property of the GestureEvent parameter is set to false in the handler, the gesture is rejected and no further signals will be emitted for the gesture. The accepted property defaults to true.
GestureProperty GestureArea::centroid [read, inherited] |
This property holds the position of the centroid of the touches comprising the gesture.
For TouchScreen devices, the centroid is mapped to item coordinates. For all other devices, the centroid is left in device coordinates.
bool GestureArea::enabled [read, write, inherited] |
This property holds whether the item accepts gesture events.
By default, this property is true.
point GestureArea::focus [read, inherited] |
This property holds the focus point of the gesture.
For TouchScreen devices, the focus point is the centroid of the touches when the gesture begins. For other devices, the focus point is the location of the pointer when the gesture begins.
The focus point is always mapped to item coordinates.
Gesture GestureArea::subscription [read, inherited] |
This property holds the subscription for the item.
When the subscription is modified, the old subscription is deleted and a new subscription is created.