23 lines
1.2 KiB
Cython
23 lines
1.2 KiB
Cython
|
from efl.eina cimport Eina_Bool
|
||
|
from efl.evas cimport Evas_Object, const_Evas_Object, Evas_Coord
|
||
|
from enums cimport Elm_GLView_Mode, Elm_GLView_Resize_Policy, \
|
||
|
Elm_GLView_Render_Policy
|
||
|
|
||
|
cdef extern from "Elementary.h":
|
||
|
ctypedef struct Evas_GL_API
|
||
|
|
||
|
ctypedef void (*Elm_GLView_Func_Cb)(Evas_Object *obj)
|
||
|
|
||
|
Evas_Object *elm_glview_add(Evas_Object *parent)
|
||
|
Evas_GL_API *elm_glview_gl_api_get(const_Evas_Object *obj)
|
||
|
Eina_Bool elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode)
|
||
|
Eina_Bool elm_glview_resize_policy_set(Evas_Object *obj, Elm_GLView_Resize_Policy policy)
|
||
|
Eina_Bool elm_glview_render_policy_set(Evas_Object *obj, Elm_GLView_Render_Policy policy)
|
||
|
void elm_glview_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
|
||
|
void elm_glview_size_get(const_Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
|
||
|
void elm_glview_init_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func)
|
||
|
void elm_glview_del_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func)
|
||
|
void elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func)
|
||
|
void elm_glview_render_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func)
|
||
|
void elm_glview_changed_set(Evas_Object *obj)
|