efl/src/lib/evas/gesture/efl_canvas_gesture.eo

62 lines
1.9 KiB
Plaintext

import efl_canvas_gesture_types;
parse efl_canvas_gesture_events;
abstract @beta Efl.Canvas.Gesture extends Efl.Object
{
[[Base abstract class to support gesture-specific classes.
A gesture object holds the current state of that gesture (i.e. whether the gesture has
just been started, it is in progress or it has finished) along with any gesture-specific
information it needs (like the number of taps so far, to detect triple-taps, for example).
Typically this class is not used directly, instead, some sub-class of it (like
@Efl.Canvas.Gesture_Tap or @Efl.Canvas.Gesture_Zoom) is retrieved from gesture events
(like @[Efl.Canvas.Gesture_Events.gesture,tap] or @[Efl.Canvas.Gesture_Events.gesture,zoom]).
]]
c_prefix: efl_gesture;
methods {
@property state {
[[Current state of the gesture, from initial detection to successful recognition.]]
get {
}
set {
}
values {
state: Efl.Canvas.Gesture_State; [[State.]]
}
}
@property hotspot {
[[Hotspot of the gesture currently being analyzed.
The exact meaning depends on the gesture type, but by default it
reflects the current position of the last touch event.]]
get {
}
set {
}
values {
hotspot: Eina.Position2D;[[Hotspot coordinates.]]
}
}
@property timestamp {
[[Moment when the gesture currently being analyzed started.]]
get {
}
set {
}
values {
timestamp: uint;[[The time-stamp, valued in milliseconds.]]
}
}
@property touch_count {
[[The current number of touch points recorded in the gesture.]]
get {
}
set @protected {
}
values {
touch_count: uint;[[The count of the touch points.]]
}
}
}
}