*/
EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
/**
+ * Enable or disable preloading of the icon
+ *
+ * @param obj The icon object
+ * @param disable If EINA_TRUE, preloading will be disabled
+ * @ingroup Icon
+ */
+ EAPI void elm_icon_preload_set(Evas_Object *obj, Eina_Bool disable) EINA_ARG_NONNULL(1);
+ /**
* Get if the icon supports animation or not.
*
* @param obj The icon object
if (!wd) return NULL;
return _els_smart_icon_object_get(wd->img);
}
+
+EAPI void
+elm_icon_preload_set(Evas_Object *obj, Eina_Bool disable)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype);
+ Widget_Data *wd = elm_widget_data_get(obj);
+
+ if (!wd) return;
+ _els_smart_icon_preload_set(wd->img, disable);
+}
return EINA_TRUE;
}
+void
+_els_smart_icon_preload_set(Evas_Object *obj, Eina_Bool disable)
+{
+ Smart_Data *sd;
+
+ sd = evas_object_smart_data_get(obj);
+ if ((!sd) || sd->edje) return;
+ evas_object_image_preload(sd->obj, disable);
+ sd->preloading = !disable;
+}
+
Eina_Bool
_els_smart_icon_file_edje_set(Evas_Object *obj, const char *file, const char *part)
{
Evas_Object *_els_smart_icon_edje_get(Evas_Object *obj);
void _els_smart_icon_aspect_ratio_retained_set(Evas_Object *obj, Eina_Bool retained);
Eina_Bool _els_smart_icon_aspect_ratio_retained_get(const Evas_Object *obj);
-
+void _els_smart_icon_preload_set(Evas_Object *obj, Eina_Bool disable);