diff options
author | Amitesh Singh <amitesh.sh@samsung.com> | 2017-12-06 14:34:51 +0900 |
---|---|---|
committer | Amitesh Singh <amitesh.sh@samsung.com> | 2017-12-08 20:13:31 +0900 |
commit | 80463f0e2ed6a951ab5449b987d18bb47daf23e8 (patch) | |
tree | 84b0b95d244d43da579810cdac5ea6276f8623d8 /src/lib/efl | |
parent | dc821546ad6e4b4c90be6854410e39038648b00d (diff) |
interface: add Efl.Canvas.Pointer intf for pointer related functions.
and remove pointer_inside function from Efl.Canvas{}
Diffstat (limited to 'src/lib/efl')
-rw-r--r-- | src/lib/efl/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/lib/efl/Efl.h | 1 | ||||
-rw-r--r-- | src/lib/efl/interfaces/efl_canvas.eo | 25 | ||||
-rw-r--r-- | src/lib/efl/interfaces/efl_canvas_pointer.eo | 32 | ||||
-rw-r--r-- | src/lib/efl/interfaces/efl_interfaces_main.c | 1 |
5 files changed, 35 insertions, 25 deletions
diff --git a/src/lib/efl/CMakeLists.txt b/src/lib/efl/CMakeLists.txt index 6637bedfc4..e6efc3b680 100644 --- a/src/lib/efl/CMakeLists.txt +++ b/src/lib/efl/CMakeLists.txt | |||
@@ -5,6 +5,7 @@ set(LIBRARIES eo eina) | |||
5 | set(PUBLIC_EO_FILES | 5 | set(PUBLIC_EO_FILES |
6 | interfaces/efl_animator.eo | 6 | interfaces/efl_animator.eo |
7 | interfaces/efl_canvas.eo | 7 | interfaces/efl_canvas.eo |
8 | interfaces/efl_canvas_pointer.eo | ||
8 | interfaces/efl_config.eo | 9 | interfaces/efl_config.eo |
9 | interfaces/efl_container.eo | 10 | interfaces/efl_container.eo |
10 | interfaces/efl_content.eo | 11 | interfaces/efl_content.eo |
diff --git a/src/lib/efl/Efl.h b/src/lib/efl/Efl.h index fa66d95044..e80e5de9d9 100644 --- a/src/lib/efl/Efl.h +++ b/src/lib/efl/Efl.h | |||
@@ -134,6 +134,7 @@ typedef Efl_Gfx_Path_Command_Type Efl_Gfx_Path_Command; | |||
134 | 134 | ||
135 | /* Canvas & UI */ | 135 | /* Canvas & UI */ |
136 | #include "interfaces/efl_canvas.eo.h" | 136 | #include "interfaces/efl_canvas.eo.h" |
137 | #include "interfaces/efl_canvas_pointer.eo.h" | ||
137 | #include "interfaces/efl_ui_view.eo.h" | 138 | #include "interfaces/efl_ui_view.eo.h" |
138 | #include "interfaces/efl_ui_model_connect.eo.h" | 139 | #include "interfaces/efl_ui_model_connect.eo.h" |
139 | #include "interfaces/efl_ui_factory.eo.h" | 140 | #include "interfaces/efl_ui_factory.eo.h" |
diff --git a/src/lib/efl/interfaces/efl_canvas.eo b/src/lib/efl/interfaces/efl_canvas.eo index 98da146f5f..98d70a3851 100644 --- a/src/lib/efl/interfaces/efl_canvas.eo +++ b/src/lib/efl/interfaces/efl_canvas.eo | |||
@@ -193,31 +193,6 @@ interface Efl.Canvas () | |||
193 | pos: Eina.Position2D; [[The pointer position in pixels.]] | 193 | pos: Eina.Position2D; [[The pointer position in pixels.]] |
194 | } | 194 | } |
195 | } | 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 | keys { | ||
213 | seat: Efl.Input.Device @optional; [[The seat to consider, if $null | ||
214 | then the default seat will be used.]] | ||
215 | } | ||
216 | values { | ||
217 | inside: bool; [[$true if the mouse pointer is inside the canvas, | ||
218 | $false otherwise]] | ||
219 | } | ||
220 | } | ||
221 | /* FIXME: maybe not necessary if gesture supports this */ | 196 | /* FIXME: maybe not necessary if gesture supports this */ |
222 | pointer_iterate @const { | 197 | pointer_iterate @const { |
223 | [[Returns an iterator over the current known pointer positions. | 198 | [[Returns an iterator over the current known pointer positions. |
diff --git a/src/lib/efl/interfaces/efl_canvas_pointer.eo b/src/lib/efl/interfaces/efl_canvas_pointer.eo new file mode 100644 index 0000000000..57111a7896 --- /dev/null +++ b/src/lib/efl/interfaces/efl_canvas_pointer.eo | |||
@@ -0,0 +1,32 @@ | |||
1 | import efl_input_device; | ||
2 | |||
3 | interface Efl.Canvas.Pointer () | ||
4 | { | ||
5 | methods { | ||
6 | @property pointer_inside { | ||
7 | get { | ||
8 | [[Returns whether the mouse pointer is logically inside the | ||
9 | canvas. | ||
10 | |||
11 | When this function is called it will return a value of either | ||
12 | $false or $true, depending on whether a pointer,in or pointer,out | ||
13 | event has been called previously. | ||
14 | |||
15 | A return value of $true indicates the mouse is logically | ||
16 | inside the canvas, and $false implies it is logically | ||
17 | outside the canvas. | ||
18 | |||
19 | A canvas begins with the mouse being assumed outside ($false). | ||
20 | ]] | ||
21 | } | ||
22 | keys { | ||
23 | seat: Efl.Input.Device @optional; [[The seat to consider, if $null | ||
24 | then the default seat will be used.]] | ||
25 | } | ||
26 | values { | ||
27 | inside: bool; [[$true if the mouse pointer is inside the canvas, | ||
28 | $false otherwise]] | ||
29 | } | ||
30 | } | ||
31 | } | ||
32 | } | ||
diff --git a/src/lib/efl/interfaces/efl_interfaces_main.c b/src/lib/efl/interfaces/efl_interfaces_main.c index 29a021e9c5..930e55ee35 100644 --- a/src/lib/efl/interfaces/efl_interfaces_main.c +++ b/src/lib/efl/interfaces/efl_interfaces_main.c | |||
@@ -39,6 +39,7 @@ | |||
39 | 39 | ||
40 | #include "interfaces/efl_gfx_size_hint.eo.c" | 40 | #include "interfaces/efl_gfx_size_hint.eo.c" |
41 | #include "interfaces/efl_canvas.eo.c" | 41 | #include "interfaces/efl_canvas.eo.c" |
42 | #include "interfaces/efl_canvas_pointer.eo.c" | ||
42 | 43 | ||
43 | #include "interfaces/efl_vpath.eo.c" | 44 | #include "interfaces/efl_vpath.eo.c" |
44 | 45 | ||