summaryrefslogtreecommitdiff
path: root/src/lib/evas/gesture/efl_canvas_gesture.eo
blob: eaced25ad8fad7152234c738ccafd3dd7d81e57e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import efl_canvas_gesture_types;
parse efl_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.Gesture.Events.gesture,tap] or @[Efl.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.]]
         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.]]
         }
      }
   }
}