discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=18c74cb382b491c65bdd67cb33ecc94effa14b7c
commit 18c74cb382b491c65bdd67cb33ecc94effa14b7c Author: Mike Blumenkrantz <[email protected]> Date: Wed Jan 15 22:58:42 2014 -0500 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 a329452..99e4bb4 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 1fca825..1f55f5e 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); --
