summaryrefslogtreecommitdiff
path: root/include/efl.ecore.pxd
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2013-05-13 01:27:00 +0200
committerdavemds <dave@gurumeditation.it>2013-05-13 01:27:00 +0200
commit1c255024d3bcf0f95cf93c067c976f9139d11ef9 (patch)
tree515877b44a5bc3d3ccb73580ca79adf43fcc7497 /include/efl.ecore.pxd
parentfcac9e23ada2ec8551c32d70addd4863c4f9be63 (diff)
Python-EFL: implemented ecore.Poller, with docs and unittest.
Diffstat (limited to 'include/efl.ecore.pxd')
-rw-r--r--include/efl.ecore.pxd15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/efl.ecore.pxd b/include/efl.ecore.pxd
index 5b7bd26..19e6220 100644
--- a/include/efl.ecore.pxd
+++ b/include/efl.ecore.pxd
@@ -19,7 +19,7 @@ from efl cimport *
19from efl.c_eo cimport Eo as cEo 19from efl.c_eo cimport Eo as cEo
20from efl.eo cimport Eo 20from efl.eo cimport Eo
21from efl.ecore.enums cimport Ecore_Fd_Handler_Flags, Ecore_Exe_Flags, \ 21from efl.ecore.enums cimport Ecore_Fd_Handler_Flags, Ecore_Exe_Flags, \
22 Ecore_File_Event 22 Ecore_File_Event, Ecore_Poller_Type
23 23
24 24
25cdef extern from "Ecore.h": 25cdef extern from "Ecore.h":
@@ -28,6 +28,7 @@ cdef extern from "Ecore.h":
28 # 28 #
29 ctypedef cEo Ecore_Timer 29 ctypedef cEo Ecore_Timer
30 ctypedef cEo Ecore_Animator 30 ctypedef cEo Ecore_Animator
31 ctypedef cEo Ecore_Poller
31 ctypedef cEo Ecore_Idler 32 ctypedef cEo Ecore_Idler
32 ctypedef cEo Ecore_Idle_Enterer 33 ctypedef cEo Ecore_Idle_Enterer
33 ctypedef cEo Ecore_Idle_Exiter 34 ctypedef cEo Ecore_Idle_Exiter
@@ -105,6 +106,11 @@ cdef extern from "Ecore.h":
105 void ecore_animator_frametime_set(double frametime) 106 void ecore_animator_frametime_set(double frametime)
106 double ecore_animator_frametime_get() 107 double ecore_animator_frametime_get()
107 108
109 Ecore_Poller *ecore_poller_add(Ecore_Poller_Type type, int interval, Ecore_Task_Cb func, const_void *data)
110 void *ecore_poller_del(Ecore_Poller *poller)
111 Eina_Bool ecore_poller_poller_interval_set(Ecore_Poller *poller, int interval)
112 int ecore_poller_poller_interval_get(Ecore_Poller *poller)
113
108 Ecore_Timer *ecore_timer_add(double t, Ecore_Task_Cb func, void *data) 114 Ecore_Timer *ecore_timer_add(double t, Ecore_Task_Cb func, void *data)
109 void *ecore_timer_del(Ecore_Timer *timer) 115 void *ecore_timer_del(Ecore_Timer *timer)
110 void ecore_timer_freeze(Ecore_Timer *timer) 116 void ecore_timer_freeze(Ecore_Timer *timer)
@@ -205,6 +211,13 @@ cdef class Animator(Eo):
205 cpdef bint _task_exec(self) 211 cpdef bint _task_exec(self)
206 212
207 213
214cdef class Poller(Eo):
215 cdef readonly object func
216 cdef readonly tuple args
217 cdef readonly dict kargs
218 cpdef bint _task_exec(self)
219
220
208cdef class Idler(Eo): 221cdef class Idler(Eo):
209 cdef readonly object func, args, kargs 222 cdef readonly object func, args, kargs
210 cpdef bint _task_exec(self) 223 cpdef bint _task_exec(self)