summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2017-04-15 20:41:14 +0200
committerDave Andreoli <dave@gurumeditation.it>2017-04-15 20:41:14 +0200
commit6a7e698368c09858c23414d1e556c8df41c1d124 (patch)
tree6f36e74fa318f4d7461817380fe198c3e7c652c7
parent4557daa602e259e77afc92c6c3a631d6540e8536 (diff)
New 1.19 API: evas.Image.load_head_skip
-rw-r--r--efl/evas/efl.evas_object_image.pxi28
-rw-r--r--include/efl.evas.pxd2
2 files changed, 30 insertions, 0 deletions
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):
902 def load_orientation_get(self): 902 def load_orientation_get(self):
903 return bool(evas_object_image_load_orientation_get(self.obj)) 903 return bool(evas_object_image_load_orientation_get(self.obj))
904 904
905 property load_head_skip:
906 """ A load option to skip initial header load and defer to preload
907
908 This is meant to be used in conjunction with
909 evas_object_image_file_set() and evas_object_image_preload() by
910 deferring any header loading until a evas_object_image_preload() is
911 issued making the file file set simply set up the file to refer to
912 without any validation of its type or file existence or even inspecting
913 the image header to get size or alpha channel flags etc. All of this
914 will then be done as part of the preload stage.
915
916 :type: bool
917
918 .. versionadded:: 1.19
919
920 """
921 def __get__(self):
922 return bool(evas_object_image_load_head_skip_get(self.obj))
923
924 def __set__(self, bint value):
925 evas_object_image_load_head_skip_set(self.obj, value)
926
927 def load_head_skip_get(self):
928 return bool(evas_object_image_load_head_skip_get(self.obj))
929 def load_head_skip_set(self, bint value):
930 evas_object_image_load_head_skip_set(self.obj, value)
931
932
905 property orient: 933 property orient:
906 """The image orientation. 934 """The image orientation.
907 935
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":
613 void evas_object_image_load_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h) 613 void evas_object_image_load_region_get(const Evas_Object *obj, int *x, int *y, int *w, int *h)
614 void evas_object_image_load_orientation_set(Evas_Object *obj, Eina_Bool enable) 614 void evas_object_image_load_orientation_set(Evas_Object *obj, Eina_Bool enable)
615 Eina_Bool evas_object_image_load_orientation_get(const Evas_Object *obj) 615 Eina_Bool evas_object_image_load_orientation_get(const Evas_Object *obj)
616 void evas_object_image_load_head_skip_set(Evas_Object *obj, Eina_Bool skip)
617 Eina_Bool evas_object_image_load_head_skip_get(const Evas_Object *obj)
616 void evas_object_image_colorspace_set(Evas_Object *obj, Evas_Colorspace cspace) 618 void evas_object_image_colorspace_set(Evas_Object *obj, Evas_Colorspace cspace)
617 Evas_Colorspace evas_object_image_colorspace_get(const Evas_Object *obj) 619 Evas_Colorspace evas_object_image_colorspace_get(const Evas_Object *obj)
618 Eina_Bool evas_object_image_region_support_get(const Evas_Object *obj) 620 Eina_Bool evas_object_image_region_support_get(const Evas_Object *obj)