davemds pushed a commit to branch master. http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=6a7e698368c09858c23414d1e556c8df41c1d124
commit 6a7e698368c09858c23414d1e556c8df41c1d124 Author: Dave Andreoli <[email protected]> Date: Sat Apr 15 20:41:14 2017 +0200 New 1.19 API: evas.Image.load_head_skip --- efl/evas/efl.evas_object_image.pxi | 28 ++++++++++++++++++++++++++++ include/efl.evas.pxd | 2 ++ 2 files changed, 30 insertions(+) diff --git a/efl/evas/efl.evas_object_image.pxi b/efl/evas/efl.evas_object_image.pxi index 198d303..cb0d9fa 100644 --- a/efl/evas/efl.evas_object_image.pxi +++ b/efl/evas/efl.evas_object_image.pxi @@ -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. diff --git a/include/efl.evas.pxd b/include/efl.evas.pxd index 7f5ed6b..63cf8f5 100644 --- a/include/efl.evas.pxd +++ b/include/efl.evas.pxd @@ -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) --
