From 18c74cb382b491c65bdd67cb33ecc94effa14b7c Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 15 Jan 2014 22:58:42 -0500 Subject: [PATCH] add e_comp_object_frame_icon_geometry_get --- src/bin/e_comp_object.c | 13 +++++++++++++ src/bin/e_comp_object.h | 1 + 2 files changed, 14 insertions(+) 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);