add function to return image object for use with evas apis
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 6 Nov 2011 15:56:31 +0000 (15:56 +0000)
committerMike McCormack <mj.mccormack@samsung.com>
Wed, 9 Nov 2011 01:41:10 +0000 (10:41 +0900)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@64830 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/Elementary.h.in
src/lib/elm_icon.c

index 258ca05..13869c3 100644 (file)
@@ -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
index adcb468..c65d085 100644 (file)
@@ -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;
+}