From: discomfitor Date: Sun, 6 Nov 2011 15:56:31 +0000 (+0000) Subject: add function to return image object for use with evas apis X-Git-Tag: REBUILDD-ARMEL-67645~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=78d01b6fcc10cfccd3f2389d74454b76bd4e2b50;p=framework%2Fuifw%2Felementary.git add function to return image object for use with evas apis git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@64830 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index 258ca05..13869c3 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -4954,6 +4954,15 @@ extern "C" { */ EAPI int elm_icon_prescale_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); /** + * Gets the image object of the icon. DO NOT MODIFY THIS. + * + * @param obj The icon object + * @return The internal icon object + * + * @ingroup Icon + */ + EAPI Evas_Object *elm_icon_object_get(Evas_Object *obj) EINA_ARG_NONNULL(1); + /** * Sets the icon lookup order used by elm_icon_standard_set(). * * @param obj The icon object diff --git a/src/lib/elm_icon.c b/src/lib/elm_icon.c index adcb468..c65d085 100644 --- a/src/lib/elm_icon.c +++ b/src/lib/elm_icon.c @@ -977,3 +977,13 @@ elm_icon_prescale_get(const Evas_Object *obj) if (!wd) return 0; return _els_smart_icon_scale_size_get(wd->img); } + +EAPI Evas_Object * +elm_icon_object_get(Evas_Object *obj) +{ + ELM_CHECK_WIDTYPE(obj, widtype) 0; + Widget_Data *wd = elm_widget_data_get(obj); + + if (!wd) return NULL; + return wd->img; +}