forked from enlightenment/enlightenment
add e_box function to return item size
SVN revision: 78506
This commit is contained in:
parent
68e70b0131
commit
85a60baa96
|
@ -453,6 +453,18 @@ e_box_item_at_xy_get(Evas_Object *obj, Evas_Coord x, Evas_Coord y)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI Eina_Bool
|
||||||
|
e_box_item_size_get(Evas_Object *obj, int *w, int *h)
|
||||||
|
{
|
||||||
|
E_Box_Item *bi;
|
||||||
|
|
||||||
|
bi = evas_object_data_get(obj, "e_box_data");
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN_VAL(bi, EINA_FALSE);
|
||||||
|
if (w) *w = bi->w;
|
||||||
|
if (h) *h = bi->h;
|
||||||
|
return EINA_TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
/* local subsystem functions */
|
/* local subsystem functions */
|
||||||
static void
|
static void
|
||||||
_e_box_unpack_internal(E_Smart_Data *sd, E_Box_Item *bi)
|
_e_box_unpack_internal(E_Smart_Data *sd, E_Box_Item *bi)
|
||||||
|
|
|
@ -25,5 +25,6 @@ EAPI void e_box_align_get (Evas_Object *obj, double *ax, double
|
||||||
EAPI void e_box_align_set (Evas_Object *obj, double ax, double ay);
|
EAPI void e_box_align_set (Evas_Object *obj, double ax, double ay);
|
||||||
EAPI void e_box_align_pixel_offset_get (Evas_Object *obj, int *x, int *y);
|
EAPI void e_box_align_pixel_offset_get (Evas_Object *obj, int *x, int *y);
|
||||||
EAPI Evas_Object *e_box_item_at_xy_get(Evas_Object *obj, Evas_Coord x, Evas_Coord y);
|
EAPI Evas_Object *e_box_item_at_xy_get(Evas_Object *obj, Evas_Coord x, Evas_Coord y);
|
||||||
|
EAPI Eina_Bool e_box_item_size_get(Evas_Object *obj, int *w, int *h);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue