forked from enlightenment/efl
add function to return image object for use with evas apis
SVN revision: 64830
This commit is contained in:
parent
e9e8911d44
commit
288a78dfc3
|
@ -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().
|
||||
*
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue