summaryrefslogtreecommitdiff
path: root/src/lib/efl
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-25 18:47:49 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-26 17:58:07 +0900
commit8557fe818f6ac033f582dc4865235aa3176d7447 (patch)
tree03dd802b65648a98c2bc2d9a9ff79e5ec2cf4455 /src/lib/efl
parentb3ffd78237282883c327082c841205f2f0643642 (diff)
input: Move pointer props to Canvas
efl_input_pointer_position is defined by two classes... bad! Fixes T6066
Diffstat (limited to 'src/lib/efl')
-rw-r--r--src/lib/efl/interfaces/efl_canvas.eo59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/lib/efl/interfaces/efl_canvas.eo b/src/lib/efl/interfaces/efl_canvas.eo
index 10776b7bd6..6655dabd4a 100644
--- a/src/lib/efl/interfaces/efl_canvas.eo
+++ b/src/lib/efl/interfaces/efl_canvas.eo
@@ -180,6 +180,65 @@ interface Efl.Canvas ()
180 seat: Efl.Input.Device; [[The seat or $null if not found.]] 180 seat: Efl.Input.Device; [[The seat or $null if not found.]]
181 } 181 }
182 } 182 }
183 @property pointer_position {
184 get {
185 [[This function returns the current known pointer coordinates
186
187 This function returns the current position of the main input
188 pointer (mouse, pen, etc...).
189 ]]
190 }
191 /* FIXME: missing keys { seat } */
192 values {
193 pos: Eina.Position2D; [[The pointer position in pixels.]]
194 }
195 }
196 @property pointer_inside {
197 get {
198 [[Returns whether the mouse pointer is logically inside the
199 canvas.
200
201 When this function is called it will return a value of either
202 $false or $true, depending on whether a pointer,in or pointer,out
203 event has been called previously.
204
205 A return value of $true indicates the mouse is logically
206 inside the canvas, and $false implies it is logically
207 outside the canvas.
208
209 A canvas begins with the mouse being assumed outside ($false).
210 ]]
211 }
212 /* FIXME: missing keys { seat } */
213 values {
214 inside: bool; [[$true if the mouse pointer is inside the canvas,
215 $false otherwise]]
216 }
217 }
218 /* FIXME: maybe not necessary if gesture supports this */
219 pointer_iterate @const {
220 [[Returns an iterator over the current known pointer positions.
221
222 This is used to iterate over the current known multi-touch positions,
223 including the first finger. Each pointer position is represented by
224 an object of type @Efl.Input.Pointer.
225
226 Each finger in a multi touch environment can then be identified
227 by the @Efl.Input.Pointer.tool property. The order of the pointers
228 in this iterator is not defined.
229
230 Note: If the input surface supports hovering input, some pointers
231 may not be in a "down" state. To retrieve the list of such pointers,
232 set the $hover value to $true. Remember though that most devices
233 currently don't support this.
234 ]]
235 params {
236 /* FIXME: missing seat. hover is not useful */
237 hover: bool @optional; [[$false by default, $true means to include
238 fingers that are currently hovering.]]
239 }
240 return: iterator<const(Efl.Input.Pointer)>; [[Iterator to pointer positions]]
241 }
183 } 242 }
184 events { 243 events {
185 focus,in: Efl.Input.Focus; [[Called when canvas got focus]] 244 focus,in: Efl.Input.Focus; [[Called when canvas got focus]]