summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas/ecore_evas.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-07-08 10:56:02 +0100
committerChris Michael <cp.michael@samsung.com>2013-07-08 10:56:02 +0100
commit362d89e05c143b4b4bb3172ef2bdec9322bd8eca (patch)
tree1eb4f750cf5febaac2abf2e70c7a82991e5f725b /src/lib/ecore_evas/ecore_evas.c
parent5e988cc8cf62b7dfdbece6ad44174781bc90fb78 (diff)
Add ecore_evas_pointer_xy_get and ecore_evas_pointer_warp functions
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index d63154f4bd..c952565043 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -2367,6 +2367,35 @@ ecore_evas_draw_frame_get(const Ecore_Evas *ee)
2367 return ee->prop.draw_frame; 2367 return ee->prop.draw_frame;
2368} 2368}
2369 2369
2370EAPI void
2371ecore_evas_pointer_xy_get(const Ecore_Evas *ee, Evas_Coord *x, Evas_Coord *y)
2372{
2373 if (x) *x = 0;
2374 if (y) *y = 0;
2375 if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
2376 {
2377 ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS, "ecore_evas_pointer_xy_get");
2378 return;
2379 }
2380 IFC(ee, fn_pointer_xy_get) (ee, x, y);
2381 IFE;
2382}
2383
2384EAPI Eina_Bool
2385ecore_evas_pointer_warp(const Ecore_Evas *ee, Evas_Coord x, Evas_Coord y)
2386{
2387 if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
2388 {
2389 ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS, "ecore_evas_pointer_warp");
2390 return;
2391 }
2392
2393 if (ee->func.fn_pointer_warp)
2394 return ee->func.fn_pointer_warp(ee, x, y);
2395
2396 return EINA_FALSE;
2397}
2398
2370/* fps debug calls - for debugging how much time your app actually spends */ 2399/* fps debug calls - for debugging how much time your app actually spends */
2371/* rendering graphics... :) */ 2400/* rendering graphics... :) */
2372 2401