devilhorns pushed a commit to branch master.
commit 362d89e05c143b4b4bb3172ef2bdec9322bd8eca
Author: Chris Michael <[email protected]>
Date: Mon Jul 8 10:56:02 2013 +0100
Add ecore_evas_pointer_xy_get and ecore_evas_pointer_warp functions
Signed-off-by: Chris Michael <[email protected]>
---
src/lib/ecore_evas/ecore_evas.c | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index d63154f..c952565 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)
return ee->prop.draw_frame;
}
+EAPI void
+ecore_evas_pointer_xy_get(const Ecore_Evas *ee, Evas_Coord *x, Evas_Coord *y)
+{
+ if (x) *x = 0;
+ if (y) *y = 0;
+ if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
+ {
+ ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS, "ecore_evas_pointer_xy_get");
+ return;
+ }
+ IFC(ee, fn_pointer_xy_get) (ee, x, y);
+ IFE;
+}
+
+EAPI Eina_Bool
+ecore_evas_pointer_warp(const Ecore_Evas *ee, Evas_Coord x, Evas_Coord y)
+{
+ if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
+ {
+ ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS, "ecore_evas_pointer_warp");
+ return;
+ }
+
+ if (ee->func.fn_pointer_warp)
+ return ee->func.fn_pointer_warp(ee, x, y);
+
+ return EINA_FALSE;
+}
+
/* fps debug calls - for debugging how much time your app actually spends */
/* rendering graphics... :) */
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev