summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-13 17:32:35 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-13 18:20:45 +0900
commit58c2c50dcc13bebca71e949ffe20d5f55507da8a (patch)
treecd253bdee9bf026a59b487dfe4643a8793495e37 /src/lib/elementary/efl_ui_win.c
parent89733b22f6287f0c9126acc93a2b1dae590ae4dd (diff)
efl_access: Use Eina.Rectangle (EO)
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_win.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 69401220f4..e1e6b6c7cb 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -6713,22 +6713,25 @@ _efl_ui_win_elm_interface_atspi_accessible_name_get(Eo *obj, Efl_Ui_Win_Data *sd
6713 return name; 6713 return name;
6714} 6714}
6715 6715
6716EOLIAN static void 6716EOLIAN static Eina_Rectangle
6717_efl_ui_win_efl_access_component_extents_get(Eo *obj, Efl_Ui_Win_Data *_pd EINA_UNUSED, Eina_Bool screen_coords, int *x, int *y, int *w, int *h) 6717_efl_ui_win_efl_access_component_extents_get(Eo *obj, Efl_Ui_Win_Data *_pd EINA_UNUSED, Eina_Bool screen_coords)
6718{ 6718{
6719 Eina_Rectangle r;
6719 int ee_x, ee_y; 6720 int ee_x, ee_y;
6720 6721
6721 if (x) *x = 0; 6722 r = efl_gfx_geometry_get(obj);
6722 if (y) *y = 0; 6723 r.x = r.y = 0;
6723 evas_object_geometry_get(obj, NULL, NULL, w, h);
6724 if (screen_coords) 6724 if (screen_coords)
6725 { 6725 {
6726 Ecore_Evas *ee = ecore_evas_ecore_evas_get(evas_object_evas_get(obj)); 6726 Ecore_Evas *ee = ecore_evas_ecore_evas_get(evas_object_evas_get(obj));
6727 if (!ee) return; 6727 if (ee)
6728 ecore_evas_geometry_get(ee, &ee_x, &ee_y, NULL, NULL); 6728 {
6729 if (x) *x += ee_x; 6729 ecore_evas_geometry_get(ee, &ee_x, &ee_y, NULL, NULL);
6730 if (y) *y += ee_y; 6730 r.x += ee_x;
6731 r.y += ee_y;
6732 }
6731 } 6733 }
6734 return r;
6732} 6735}
6733 6736
6734EOLIAN static Eina_Bool 6737EOLIAN static Eina_Bool