aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 21:54:55 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-19 10:51:48 +0900
commit3617053547dd130115af7c79346339ca86375679 (patch)
treeeef57d22ee5c3995d038da1e63e5ce4f77dcc8e5 /src/lib/elementary/efl_ui_win.c
parentphotocam: Use Eina.Rect for image_region (diff)
downloadefl-3617053547dd130115af7c79346339ca86375679.tar.gz
win: Use Eina.Size2D for pointer position
Also rename the function for more consistency.
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-rw-r--r--src/lib/elementary/efl_ui_win.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 86b04d4de4..d7dab7c39d 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -2366,10 +2366,12 @@ _efl_ui_win_efl_gfx_visible_set(Eo *obj, Efl_Ui_Win_Data *sd, Eina_Bool vis)
else _efl_ui_win_hide(obj, sd);
}
-EOLIAN static void
-_efl_ui_win_efl_input_interface_pointer_xy_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, int *x, int *y)
+EOLIAN static Eina_Position2D
+_efl_ui_win_efl_input_interface_pointer_position_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd)
{
- evas_pointer_canvas_xy_get(sd->evas, x, y);
+ Eina_Position2D pos;
+ evas_pointer_canvas_xy_get(sd->evas, &pos.x, &pos.y);
+ return pos;
}
EOLIAN static Eina_Bool