summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_event_pointer.eo
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-08-25 19:20:10 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-08-26 10:18:01 +0900
commitd504284dd241d2d1713e9e94f7e6efee8e0ee9ac (patch)
tree484135bc4391f81cd3d243051732fb23e5d992de /src/lib/evas/canvas/efl_event_pointer.eo
parent60526528a6cc85050a74d5d45f6502ea5c07d70f (diff)
efl: Rename Efl.Event.XX to Efl.Input.XX
This removes: Efl.Event interface And renames: Efl.Event.Input -> Efl.Input.Event Efl.Event -> Efl.Input.Event (merged) Efl.Event.Pointer -> Efl.Input.Pointer Efl.Event.Key -> Efl.Input.Key Efl.Event.Hold -> Efl.Input.Hold This also moves some interfaces from efl/ to evas/ where they belong better. This allows renaming Eo_Event to Efl_Event.
Diffstat (limited to 'src/lib/evas/canvas/efl_event_pointer.eo')
-rw-r--r--src/lib/evas/canvas/efl_event_pointer.eo180
1 files changed, 0 insertions, 180 deletions
diff --git a/src/lib/evas/canvas/efl_event_pointer.eo b/src/lib/evas/canvas/efl_event_pointer.eo
deleted file mode 100644
index 2722d1c..0000000
--- a/src/lib/evas/canvas/efl_event_pointer.eo
+++ /dev/null
@@ -1,180 +0,0 @@
1import efl_orientation;
2import efl_event_types;
3
4class Efl.Event.Pointer (Efl.Object, Efl.Event, Efl.Input.State, Efl.Event.Input)
5{
6 [[Event data carried over with any pointer event (mouse, touch, pen, ...)
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 value_has {
18 [[$true if this event carries a valid value for the specified $key.]]
19 get {}
20 keys {
21 key: Efl.Input.Value;
22 }
23 values {
24 has: bool;
25 }
26 }
27 @property value {
28 [[Represents a generic value for this event.
29
30 Refer to the documentation of @Efl.Input.Value for each value's
31 meaning, type and range. Call @.value_has.get to determine whether
32 the returned value is valid or not for this event.
33
34 Most values are precise floating point values, usually in pixels,
35 radians, or in a range of [-1, 1] or [0, 1]. Some values are
36 discrete values (integers) and thus should preferably be queried
37 with the other methods of this class.
38 ]]
39 set {
40 return: bool; [[$false if the value could not be set (eg. delta).]]
41 }
42 get {}
43 keys {
44 key: Efl.Input.Value;
45 }
46 values {
47 val: double;
48 }
49 }
50 @property button {
51 [[The mouse button that triggered the event.
52
53 Valid if and only if @.value_has($button) is $true.
54 ]]
55 values {
56 but: int; [[1 to 32, 0 if not a button event.]]
57 }
58 }
59 @property button_pressed {
60 [[Whether a mouse button is pressed at the moment of the event.
61
62 Valid if and only if @.value_has($button_pressed) is $true.]]
63 keys {
64 button: int;
65 }
66 values {
67 pressed: bool;
68 }
69 }
70 @property position {
71 [[Position where the event happened, relative to the window.
72
73 This position, in integers, is an approximation of
74 @.value.get($x), @.value.get($y). Use @.position if you need
75 simple pixel positions, but prefer the generic interface
76 if you need precise coordinates.
77 ]]
78 values {
79 x: int;
80 y: int;
81 }
82 }
83 @property previous_position {
84 [[Position of the previous event, valid for move events.
85
86 Relative to the window. May be equal to @.position (by default).
87
88 This position, in integers, is an approximation of
89 @.value.get($previous_x), @.value.get($previous_y).
90 Use @.previous_position if you need simple pixel positions,
91 but prefer the generic interface if you need precise coordinates.
92 ]]
93 values {
94 x: int;
95 y: int;
96 }
97 }
98 @property delta {
99 [[Position delta, or movement, since the last event.
100
101 This position, in integers, is an approximation of
102 @.value.get($dx), @.value.get($dy). Use @.delta if you need
103 simple pixel positions, but prefer the generic interface
104 if you need precise coordinates.
105 ]]
106 get {}
107 values {
108 dx: int;
109 dy: int;
110 }
111 }
112 @property tool {
113 [[ID of the tool (eg. pen) that triggered this event.]]
114 values {
115 id: int;
116 }
117 }
118 @property source {
119 [[The object where this event first originated, in case of
120 propagation or repetition of the event.
121 ]]
122 values {
123 src: Efl.Object; [[Source object: $Efl.Gfx]]
124 }
125 }
126 @property button_flags {
127 [[Double or triple click information.]]
128 values {
129 flags: Efl.Pointer.Flags;
130 }
131 }
132 @property double_click {
133 [[$true if @.button_flags indicates a double click (2nd press).
134
135 This is just a helper function around @.button_flags.
136 ]]
137 values {
138 val: bool;
139 }
140 }
141 @property triple_click {
142 [[$true if @.button_flags indicates a triple click (3rd press).
143
144 This is just a helper function around @.button_flags.
145 ]]
146 values {
147 val: bool;
148 }
149 }
150 @property wheel_direction {
151 [[Direction of the wheel.]]
152 values {
153 dir: Efl.Orient; [[Horizontal or Vertical only.]]
154 }
155 }
156 @property wheel_delta {
157 [[Delta movement of the wheel in discrete steps.]]
158 values {
159 dist: int;
160 }
161 }
162 }
163 implements {
164 Efl.Object.constructor;
165 Efl.Object.destructor;
166 class.destructor;
167 Efl.Event.instance_get;
168 Efl.Event.reset;
169 Efl.Event.dup;
170 Efl.Event.timestamp.set;
171 Efl.Event.timestamp.get;
172 Efl.Event.Input.fake.get;
173 Efl.Event.Input.event_flags.set;
174 Efl.Event.Input.event_flags.get;
175 Efl.Event.Input.device.set;
176 Efl.Event.Input.device.get;
177 Efl.Input.State.modifier_enabled.get;
178 Efl.Input.State.lock_enabled.get;
179 }
180}