summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_genlist.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/elm_genlist.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 'src/lib/elementary/elm_genlist.c')
-rw-r--r--src/lib/elementary/elm_genlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index 912cbb6..a8800be 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -3465,7 +3465,7 @@ _elm_genlist_elm_widget_theme_apply(Eo *obj, Elm_Genlist_Data *sd)
3465/* FIXME: take off later. maybe this show region coords belong in the 3465/* FIXME: take off later. maybe this show region coords belong in the
3466 * interface (new api functions, set/get)? */ 3466 * interface (new api functions, set/get)? */
3467static void 3467static void
3468_show_region_hook(void *data EINA_UNUSED, Evas_Object *obj, Eina_Rectangle r) 3468_show_region_hook(void *data EINA_UNUSED, Evas_Object *obj, Eina_Rect r)
3469{ 3469{
3470 ELM_GENLIST_DATA_GET_OR_RETURN(obj, sd); 3470 ELM_GENLIST_DATA_GET_OR_RETURN(obj, sd);
3471 3471
@@ -8446,11 +8446,11 @@ elm_genlist_nth_item_get(const Evas_Object *obj, unsigned int nth)
8446 return EO_OBJ(it); 8446 return EO_OBJ(it);
8447} 8447}
8448 8448
8449EOLIAN static Eina_Rectangle 8449EOLIAN static Eina_Rect
8450_elm_genlist_elm_widget_focus_highlight_geometry_get(Eo *obj, Elm_Genlist_Data *sd) 8450_elm_genlist_elm_widget_focus_highlight_geometry_get(Eo *obj, Elm_Genlist_Data *sd)
8451{ 8451{
8452 Evas_Coord ox, oy, oh, ow, item_x = 0, item_y = 0, item_w = 0, item_h = 0; 8452 Evas_Coord ox, oy, oh, ow, item_x = 0, item_y = 0, item_w = 0, item_h = 0;
8453 Eina_Rectangle r = {}; 8453 Eina_Rect r = {};
8454 8454
8455 evas_object_geometry_get(sd->pan_obj, &ox, &oy, &ow, &oh); 8455 evas_object_geometry_get(sd->pan_obj, &ox, &oy, &ow, &oh);
8456 8456