elm image: Added elm_image_preload_disabled_set(). Patch by Shinwoo Kim.

On Wed, Mar 7, 2012 at 12:21 PM, cnook <kimcinoo@gmail.com> wrote:
> Dear All, Hello.
>
> There was no API for preload cancel. simple
>
> Sincerely,
> Shinwoo Kim.

SVN revision: 68879
This commit is contained in:
Daniel Juyung Seo 2012-03-07 06:26:20 +00:00
parent 6f2249d9e9
commit 22b98643a0
2 changed files with 19 additions and 0 deletions

View File

@ -266,6 +266,16 @@ elm_image_fill_outside_get(const Evas_Object *obj)
return wd->fill_outside;
}
EAPI void
elm_image_preload_disabled_set(Evas_Object *obj, Eina_Bool disabled)
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
_els_smart_icon_preload_set(wd->img, !!disable);
}
EAPI void
elm_image_prescale_set(Evas_Object *obj, int size)
{

View File

@ -237,6 +237,15 @@ EAPI void elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fil
*/
EAPI Eina_Bool elm_image_fill_outside_get(const Evas_Object *obj);
/**
* Enable or disable preloading of the image
*
* @param obj The image object
* @param disable If EINA_TRUE, preloading will be disabled
* @ingroup Icon
*/
EAPI void elm_image_preload_disabled_set(Evas_Object *obj, Eina_Bool disabled);
/**
* Set the prescale size for the image
*