New 1.19 API: evas.Image.load_head_skip

This commit is contained in:
Davide Andreoli 2017-04-15 20:41:14 +02:00
parent 4557daa602
commit 6a7e698368
2 changed files with 30 additions and 0 deletions

View File

@ -902,6 +902,34 @@ cdef class Image(Object):
def load_orientation_get(self):
return bool(evas_object_image_load_orientation_get(self.obj))
property load_head_skip:
""" A load option to skip initial header load and defer to preload
This is meant to be used in conjunction with
evas_object_image_file_set() and evas_object_image_preload() by
deferring any header loading until a evas_object_image_preload() is
issued making the file file set simply set up the file to refer to
without any validation of its type or file existence or even inspecting
the image header to get size or alpha channel flags etc. All of this
will then be done as part of the preload stage.
:type: bool
.. versionadded:: 1.19
"""
def __get__(self):
return bool(evas_object_image_load_head_skip_get(self.obj))
def __set__(self, bint value):
evas_object_image_load_head_skip_set(self.obj, value)
def load_head_skip_get(self):
return bool(evas_object_image_load_head_skip_get(self.obj))
def load_head_skip_set(self, bint value):
evas_object_image_load_head_skip_set(self.obj, value)
property orient:
"""The image orientation.

View File

@ -613,6 +613,8 @@ cdef extern from "Evas.h":
void evas_object_image_load_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h)
void evas_object_image_load_orientation_set(Evas_Object *obj, Eina_Bool enable)
Eina_Bool evas_object_image_load_orientation_get(const Evas_Object *obj)
void evas_object_image_load_head_skip_set(Evas_Object *obj, Eina_Bool skip)
Eina_Bool evas_object_image_load_head_skip_get(const Evas_Object *obj)
void evas_object_image_colorspace_set(Evas_Object *obj, Evas_Colorspace cspace)
Evas_Colorspace evas_object_image_colorspace_get(const Evas_Object *obj)
Eina_Bool evas_object_image_region_support_get(const Evas_Object *obj)