diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c index a329452c8..99e4bb444 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -2496,6 +2496,19 @@ e_comp_object_frame_geometry_get(Evas_Object *obj, int *l, int *r, int *t, int * if (b) *b = cw->client_inset.b; } +EAPI void +e_comp_object_frame_icon_geometry_get(Evas_Object *obj, int *x, int *y, int *w, int *h) +{ + API_ENTRY; + + if (x) *x = 0; + if (y) *y = 0; + if (w) *w = 0; + if (h) *h = 0; + if (!cw->frame_icon) return; + evas_object_geometry_get(cw->frame_icon, x, y, w, h); +} + EAPI Eina_Bool e_comp_object_frame_title_set(Evas_Object *obj, const char *name) { diff --git a/src/bin/e_comp_object.h b/src/bin/e_comp_object.h index 1fca825b6..1f55f5e27 100644 --- a/src/bin/e_comp_object.h +++ b/src/bin/e_comp_object.h @@ -50,6 +50,7 @@ EAPI void e_comp_object_util_center_on(Evas_Object *obj, Evas_Object *on); EAPI void e_comp_object_util_center_pos_get(Evas_Object *obj, int *x, int *y); EAPI void e_comp_object_util_fullscreen(Evas_Object *obj); EAPI void e_comp_object_frame_geometry_get(Evas_Object *obj, int *l, int *r, int *t, int *b); +EAPI void e_comp_object_frame_icon_geometry_get(Evas_Object *obj, int *x, int *y, int *w, int *h); EAPI Eina_Bool e_comp_object_frame_title_set(Evas_Object *obj, const char *name); EAPI Eina_Bool e_comp_object_frame_exists(Evas_Object *obj); EAPI void e_comp_object_frame_icon_update(Evas_Object *obj);