summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_event_pointer.eo
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-05-31 16:44:26 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-05-31 19:03:04 +0900
commitb0a32b0bd0acc987965e6bb68721e0c459ec0217 (patch)
tree669c24de71a056deacd2ba91d90424d40721f4b2 /src/lib/evas/canvas/efl_event_pointer.eo
parent9b4a6ba6390a212523701f91f10b110ca8a812ff (diff)
Efl: Rename Efl.Pointer.Event into Efl.Event.Pointer
Also renames two types: Efl.Pointer.Flags and Efl.Event.Flags
Diffstat (limited to 'src/lib/evas/canvas/efl_event_pointer.eo')
-rw-r--r--src/lib/evas/canvas/efl_event_pointer.eo173
1 files changed, 173 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/efl_event_pointer.eo b/src/lib/evas/canvas/efl_event_pointer.eo
new file mode 100644
index 0000000..b7675ee
--- /dev/null
+++ b/src/lib/evas/canvas/efl_event_pointer.eo
@@ -0,0 +1,173 @@
1import efl_orientation;
2import efl_event_types;
3
4class Efl.Event.Pointer (Eo.Base, Efl.Event, Efl.Input.State)
5{
6 [[Event data carried over with any pointer event (mouse, touch, ...)
7
8 @since 1.18
9 ]]
10 methods {
11 @property action {
12 [[The action represented by this event.]]
13 values {
14 act: Efl.Pointer.Action;
15 }
16 }
17 @property button {
18 [[The mouse button that triggered the event.]]
19 values {
20 but: int; [[1 to 32, 0 if not a button event.]]
21 }
22 }
23 @property button_pressed {
24 [[Whether a mouse button is pressed at the moment of the event.]]
25 keys {
26 button: int;
27 }
28 values {
29 pressed: bool;
30 }
31 }
32 @property position {
33 [[Position where the event happened, relative to the window.]]
34 values {
35 x: int;
36 y: int;
37 }
38 }
39 @property position_precise {
40 [[Position where the event happened, with subpixel precision
41
42 Note: Same value as @.position, relative to the window.
43 ]]
44 values {
45 x: double;
46 y: double;
47 }
48 }
49 @property previous_position {
50 [[Position of the previous event, valid for move events.
51
52 Relative to the window. May be equal to @.position.
53 ]]
54 values {
55 x: int;
56 y: int;
57 }
58 }
59 @property previous_position_precise {
60 [[Position of the previous event, with subpixel precision.
61
62 Valid for move events, may not be valid for other events.
63 Relative to the window. May be equal to @.position_precise.
64 ]]
65 values {
66 x: double;
67 y: double;
68 }
69 }
70 @property device {
71 [[Pointing device that originated this event.]]
72 values {
73 dev: Efl.Input.Device;
74 }
75 }
76 @property finger {
77 [[Finger ID in case of a multi touch event.]]
78 values {
79 id: int;
80 }
81 }
82 @property touch {
83 [[Touch information about a specific finger or pointer.]]
84 values {
85 radius: double;
86 rad_x: double;
87 rad_y: double;
88 pressure: double;
89 angle: double;
90 }
91 }
92 @property source {
93 [[The object where this event first originated, in case of
94 propagation or repetition of the event.
95 ]]
96 values {
97 src: Eo.Base; [[Source object: $Efl.Gfx]]
98 }
99 }
100 @property button_flags {
101 [[Double or triple click information.]]
102 values {
103 flags: Efl.Pointer.Flags;
104 }
105 }
106 @property double_click {
107 [[$true if @.button_flags indicates a double click (2nd press).
108
109 This is just a helper function around @.button_flags.
110 ]]
111 values {
112 val: bool;
113 }
114 }
115 @property triple_click {
116 [[$true if @.button_flags indicates a triple click (3rd press).
117
118 This is just a helper function around @.button_flags.
119 ]]
120 values {
121 val: bool;
122 }
123 }
124 @property event_flags {
125 [[Extra flags for this event, may be changed by the user.]]
126 values {
127 flags: Efl.Event.Flags;
128 }
129 }
130 @property on_hold {
131 [[$true if @.event_flags indicates the event is on hold.]]
132 values {
133 val: bool;
134 }
135 }
136 @property on_scroll {
137 [[$true if @.event_flags indicates the event happened while scrolling.]]
138 values {
139 val: bool;
140 }
141 }
142 @property wheel_direction {
143 values {
144 dir: Efl.Orient; [[Horizontal or Vertical only.]]
145 }
146 }
147 @property wheel_distance {
148 values {
149 dist: int;
150 }
151 }
152 instance_get @class {
153 [[Creates an instance of this events or returns a fresh one from
154 a memory pool.
155 ]]
156 params {
157 @in owner: Eo.Base; [[The parent object.]]
158 @out priv: void*; [[Pointer to the internal data of the object.]]
159 }
160 return: own(Efl.Event.Pointer);
161 }
162 }
163 implements {
164 Eo.Base.constructor;
165 class.destructor;
166 Efl.Event.reset;
167 Efl.Event.dup;
168 Efl.Event.timestamp.set;
169 Efl.Event.timestamp.get;
170 Efl.Input.State.modifier_enabled.get;
171 Efl.Input.State.lock_enabled.get;
172 }
173}