forked from enlightenment/efl
parent
f6c0e4aa87
commit
4804b51338
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue