add function to return image object for use with evas apis

SVN revision: 64830
This commit is contained in:
Mike Blumenkrantz 2011-11-06 15:56:31 +00:00
parent e9e8911d44
commit 288a78dfc3
2 changed files with 19 additions and 0 deletions

View File

@ -5052,6 +5052,15 @@ extern "C" {
* @ingroup Icon
*/
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().
*

View File

@ -1014,3 +1014,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;
}