49 lines
2.8 KiB
Cython
49 lines
2.8 KiB
Cython
from efl.evas cimport Eina_Bool, Evas_Object
|
|
from object cimport Object
|
|
from enums cimport Elm_Image_Orient
|
|
from libc.string cimport const_char
|
|
|
|
cdef extern from *:
|
|
ctypedef void const_void "const void"
|
|
|
|
cdef extern from "Elementary.h":
|
|
ctypedef struct Elm_Image_Progress:
|
|
double now
|
|
double total
|
|
|
|
ctypedef struct Elm_Image_Error:
|
|
int status
|
|
Eina_Bool open_error
|
|
|
|
Evas_Object *elm_image_add(Evas_Object *parent)
|
|
Eina_Bool elm_image_memfile_set(Evas_Object *obj, const_void *img, size_t size, const_char *format, const_char *key)
|
|
Eina_Bool elm_image_file_set(Evas_Object *obj, const_char *file, const_char *group)
|
|
void elm_image_file_get(Evas_Object *obj, const_char **file, const_char **group)
|
|
void elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth)
|
|
Eina_Bool elm_image_smooth_get(Evas_Object *obj)
|
|
void elm_image_object_size_get(Evas_Object *obj, int *w, int *h)
|
|
void elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale)
|
|
Eina_Bool elm_image_no_scale_get(Evas_Object *obj)
|
|
void elm_image_resizable_set(Evas_Object *obj, Eina_Bool scale_up,Eina_Bool scale_down)
|
|
void elm_image_resizable_get(Evas_Object *obj, Eina_Bool *scale_up,Eina_Bool *scale_down)
|
|
void elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside)
|
|
Eina_Bool elm_image_fill_outside_get(Evas_Object *obj)
|
|
void elm_image_preload_disabled_set(Evas_Object *obj, Eina_Bool disabled)
|
|
void elm_image_prescale_set(Evas_Object *obj, int size)
|
|
int elm_image_prescale_get(Evas_Object *obj)
|
|
void elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient)
|
|
Elm_Image_Orient elm_image_orient_get(Evas_Object *obj)
|
|
void elm_image_editable_set(Evas_Object *obj, Eina_Bool editable)
|
|
Eina_Bool elm_image_editable_get(Evas_Object *obj)
|
|
Evas_Object *elm_image_object_get(Evas_Object *obj)
|
|
void elm_image_aspect_fixed_set(Evas_Object *obj, Eina_Bool fixed)
|
|
Eina_Bool elm_image_aspect_fixed_get(Evas_Object *obj)
|
|
Eina_Bool elm_image_animated_available_get(Evas_Object *obj)
|
|
void elm_image_animated_set(Evas_Object *obj, Eina_Bool animated)
|
|
Eina_Bool elm_image_animated_get(Evas_Object *obj)
|
|
void elm_image_animated_play_set(Evas_Object *obj, Eina_Bool play)
|
|
Eina_Bool elm_image_animated_play_get(Evas_Object *obj)
|
|
|
|
cdef class Image(Object):
|
|
pass
|