+elm_icon_size_get

SVN revision: 61818
This commit is contained in:
Mike Blumenkrantz 2011-07-27 20:31:40 +00:00
parent f6c0e4aa87
commit 4804b51338
2 changed files with 20 additions and 0 deletions

View File

@ -2164,6 +2164,16 @@ extern "C" {
* @ingroup Icon
*/
EAPI void elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down) EINA_ARG_NONNULL(1);
/**
* Get the object's image size
*
* @param obj The icon object
* @param w A pointer to store the width in
* @param h A pointer to store the height in
*
* @ingroup Icon
*/
EAPI void elm_icon_size_get(const Evas_Object *obj, int *w, int *h) EINA_ARG_NONNULL(1);
/**
* Set if the icon fill the entire object area.
*

View File

@ -814,6 +814,16 @@ elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside)
_sizing_eval(obj);
}
EAPI void
elm_icon_size_get(const Evas_Object *obj, int *w, int *h)
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
_els_smart_icon_size_get(wd->img, w, h);
}
EAPI Eina_Bool
elm_icon_fill_outside_get(const Evas_Object *obj)
{