summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_gesture_layer.eo
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_gesture_layer.eo')
-rw-r--r--src/lib/elementary/elm_gesture_layer.eo167
1 files changed, 0 insertions, 167 deletions
diff --git a/src/lib/elementary/elm_gesture_layer.eo b/src/lib/elementary/elm_gesture_layer.eo
deleted file mode 100644
index 46a3479..0000000
--- a/src/lib/elementary/elm_gesture_layer.eo
+++ /dev/null
@@ -1,167 +0,0 @@
1type Elm_Gesture_Event_Cb: __undefined_type; [[Elementary gesture event callback type]]
2
3enum Elm.Gesture.Type
4{
5 [[
6 Enum of supported gesture types.
7 ]]
8 legacy: elm_gesture;
9 first = 0, [[First type used for iteration over the enum]]
10 n_taps, [[N fingers single taps]]
11 n_long_taps, [[N fingers single long-taps]]
12 n_double_taps, [[N fingers double-single taps]]
13 n_triple_taps, [[N fingers triple-single taps]]
14 momentum, [[Reports momentum in the direction of move]]
15 n_lines, [[N fingers line gesture]]
16 n_flicks, [[N fingers flick gesture]]
17 zoom, [[Zoom]]
18 rotate, [[Rotate]]
19 last [[Sentinel value to indicate last enum field during iteration]]
20}
21
22enum Elm.Gesture.State
23{
24 [[
25 Enum of gesture states.
26 ]]
27 undefined = -1, [[Gesture not started]]
28 start, [[Gesture started]]
29 move, [[Gesture is ongoing]]
30 end, [[Gesture completed]]
31 abort [[Ongoing gesture was aborted]]
32}
33
34class Elm.Gesture_Layer extends Efl.Ui.Widget implements Efl.Ui.Legacy
35{
36 [[Elementary gesture layer class]]
37 legacy_prefix: elm_gesture_layer;
38 eo_prefix: elm_obj_gesture_layer;
39 methods {
40 @property zoom_step {
41 [[Control step value for zoom action.]]
42 set {
43 [[When recognizing the zoom gesture, it should be recognized as zooming larger
44 than step.
45 ]]
46 }
47 get {
48 }
49 values {
50 step: double; [[The zoom step value.]]
51 }
52 }
53 @property tap_finger_size {
54 set {
55 [[This function sets the gesture layer finger-size for taps.
56
57 If not set, it's taken from elm_config.
58 Set to 0 if you want GLayer to use the system finger size
59 value (default).
60
61 @since 1.8
62 ]]
63 }
64 get {
65 [[This function returns the gesture layer finger-size for taps
66
67 @since 1.8
68 ]]
69 }
70 values {
71 sz: int; [[The finger size.]]
72 }
73 }
74 @property hold_events {
75 set {
76 [[This function makes gesture-layer repeat events.
77
78 Set this if you like to get the raw events only if gestures
79 were not detected.
80
81 Clear this if you like gesture layer to forward events as
82 testing gestures.
83 ]]
84 }
85 get {
86 [[Get the repeat-events setting.]]
87 }
88 values {
89 hold_events: bool; [[If $true get events only if gesture was not detected, $false otherwise]]
90 }
91 }
92 @property rotate_step {
93 [[This function returns step-value for rotate action.]]
94 set {
95 [[Set to 0 to cancel step setting.
96
97 When recognizing the rotate gesture, the rotated size must be larger
98 than step.
99 ]]
100 }
101 get {
102 }
103 values {
104 step: double; [[New rotate step value.]]
105 }
106 }
107 @property cb {
108 set {
109 [[Set the gesture state change callback.
110
111 When all callbacks for the gesture are set to $null,
112 it means this gesture is disabled.
113 ]]
114 }
115 values {
116 idx: Elm.Gesture.Type; [[The gesture you want to track state of.]]
117 cb_type: Elm.Gesture.State; [[The event the callback tracks (START, MOVE, END, ABORT).]]
118 cb: Elm_Gesture_Event_Cb; [[The callback itself.]]
119 data: void_ptr @optional; [[Custom data to be passed.]]
120 }
121 }
122 attach {
123 [[Attach a gesture layer widget to an Evas object (setting the
124 widget's target).
125
126 A gesture layer's target may be any Evas object. This object
127 will be used to listen to mouse and key events.
128 ]]
129 return: bool; [[$true on success, $false otherwise.]]
130 params {
131 @in target: Efl.Canvas.Object; [[The object to attach.]]
132 }
133 }
134 cb_del {
135 [[Remove a gesture callback.]]
136 params {
137 @in idx: Elm.Gesture.Type; [[The gesture you want to track state of.]]
138 @in cb_type: Elm.Gesture.State; [[The event the callback tracks (START, MOVE, END, ABORT).]]
139 @in cb: Elm_Gesture_Event_Cb; [[The callback itself.]]
140 @in data: void_ptr @nullable; [[Custom callback data.]]
141 }
142 }
143 cb_add {
144 [[Add a gesture state change callback.
145
146 When all callbacks for the gesture are set to $null,
147 it means this gesture is disabled.
148
149 If a function was already set for this gesture/type/state, it
150 will be replaced by the new one. For ABI compat, callbacks
151 added by @.cb_add will be removed. It is recommended to
152 use only one of these functions for a gesture object.
153 ]]
154 params {
155 @in idx: Elm.Gesture.Type; [[The gesture you want to track state of.]]
156 @in cb_type: Elm.Gesture.State; [[The event the callback tracks (START, MOVE, END, ABORT).]]
157 @in cb: Elm_Gesture_Event_Cb; [[The callback itself.]]
158 @in data: void_ptr @optional; [[Custom data to be passed.]]
159 }
160 }
161 }
162 implements {
163 class.constructor;
164 Efl.Object.constructor;
165 Efl.Ui.Widget.on_disabled_update;
166 }
167}