summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-14 11:59:44 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 13:22:52 +0900
commitf3eff6eb3ee6e9b56c0be5cd7f8905f14b388e4f (patch)
tree473b3d1b3e56cc5875d4496bf40fe8279165e132 /src/lib/elementary/efl_ui_win.c
parentcb3b4cc8d7794bea575a85325c8a58f25f0507b2 (diff)
efl: Introduce Eina.Rect and switch EO APIs to it
It's a complex struct but defined in EO as a simple struct. ABI-wise it's equivalent to Eina_Rectangle. Some macros that use Eina_Rectangle also work on Eina_Rect out of the box, most of the code dealing with x,y,w,h will require no modifications either. But Eina_Rect provides direct access to a size or position 2d component, as well as the usual x,y,w,h. The field "rect" is provided as a convenience for code dealing with both Eina_Rectangle and Eina_Rect. We may or may not require it. Note: Size2D could use unsigned values but I have spotted a few places in the code that actually use -1 to indicate invalid size (as opposed to 0x0). @feature
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_win.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index e1e6b6c7cb..7258c5f7b0 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -1037,7 +1037,7 @@ static void
1037_elm_win_focus_highlight_anim_setup(Efl_Ui_Win_Data *sd, 1037_elm_win_focus_highlight_anim_setup(Efl_Ui_Win_Data *sd,
1038 Evas_Object *obj) 1038 Evas_Object *obj)
1039{ 1039{
1040 Eina_Rectangle rt, rp; 1040 Eina_Rect rt, rp;
1041 Edje_Message_Int_Set *m; 1041 Edje_Message_Int_Set *m;
1042 Evas_Object *target = sd->focus_highlight.cur.target; 1042 Evas_Object *target = sd->focus_highlight.cur.target;
1043 1043
@@ -1045,7 +1045,7 @@ _elm_win_focus_highlight_anim_setup(Efl_Ui_Win_Data *sd,
1045 rt = elm_widget_focus_highlight_geometry_get(target); 1045 rt = elm_widget_focus_highlight_geometry_get(target);
1046 efl_gfx_geometry_set(obj, rt); 1046 efl_gfx_geometry_set(obj, rt);
1047 1047
1048 if (eina_rectangle_equal(&rp, &rt)) return; 1048 if (eina_rectangle_equal(&rp.rect, &rt.rect)) return;
1049 1049
1050 if (!_elm_config->focus_highlight_clip_disable) 1050 if (!_elm_config->focus_highlight_clip_disable)
1051 evas_object_clip_unset(obj); 1051 evas_object_clip_unset(obj);
@@ -6713,10 +6713,10 @@ _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 Eina_Rectangle 6716EOLIAN static Eina_Rect
6717_efl_ui_win_efl_access_component_extents_get(Eo *obj, Efl_Ui_Win_Data *_pd EINA_UNUSED, Eina_Bool screen_coords) 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 Eina_Rect r;
6720 int ee_x, ee_y; 6720 int ee_x, ee_y;
6721 6721
6722 r = efl_gfx_geometry_get(obj); 6722 r = efl_gfx_geometry_get(obj);