This commit is contained in:
Kai Huuhko 2016-08-15 07:46:22 +03:00
parent 0ef56b3a58
commit 13cdf0b946
15 changed files with 926 additions and 695 deletions

View File

@ -253,6 +253,80 @@ from cpython cimport Py_INCREF, Py_DECREF
import traceback
import atexit
import efl.ecore.enums as enums
ECORE_EVENT_NONE = enums.ECORE_EVENT_NONE
ECORE_EVENT_SIGNAL_USER = enums.ECORE_EVENT_SIGNAL_USER
ECORE_EVENT_SIGNAL_HUP = enums.ECORE_EVENT_SIGNAL_HUP
ECORE_EVENT_SIGNAL_EXIT = enums.ECORE_EVENT_SIGNAL_EXIT
ECORE_EVENT_SIGNAL_POWER = enums.ECORE_EVENT_SIGNAL_POWER
ECORE_EVENT_SIGNAL_REALTIME = enums.ECORE_EVENT_SIGNAL_REALTIME
ECORE_EVENT_MEMORY_STATE = enums.ECORE_EVENT_MEMORY_STATE
ECORE_EVENT_POWER_STATE = enums.ECORE_EVENT_POWER_STATE
ECORE_EVENT_LOCALE_CHANGED = enums.ECORE_EVENT_LOCALE_CHANGED
ECORE_EVENT_HOSTNAME_CHANGED = enums.ECORE_EVENT_HOSTNAME_CHANGED
ECORE_EVENT_SYSTEM_TIMEDATE_CHANGED = enums.ECORE_EVENT_SYSTEM_TIMEDATE_CHANGED
ECORE_EVENT_COUNT = enums.ECORE_EVENT_COUNT
ECORE_CALLBACK_CANCEL = enums.ECORE_CALLBACK_CANCEL
ECORE_CALLBACK_RENEW = enums.ECORE_CALLBACK_RENEW
ECORE_CALLBACK_PASS_ON = enums.ECORE_CALLBACK_PASS_ON
ECORE_CALLBACK_DONE = enums.ECORE_CALLBACK_DONE
ECORE_EXE_PRIORITY_INHERIT = enums.ECORE_EXE_PRIORITY_INHERIT
ECORE_EXE_EVENT_ADD = enums.ECORE_EXE_EVENT_ADD
ECORE_EXE_EVENT_DEL = enums.ECORE_EXE_EVENT_DEL
ECORE_EXE_EVENT_DATA = enums.ECORE_EXE_EVENT_DATA
ECORE_EXE_EVENT_ERROR = enums.ECORE_EXE_EVENT_ERROR
ECORE_FD_READ = enums.ECORE_FD_READ
ECORE_FD_WRITE = enums.ECORE_FD_WRITE
ECORE_FD_ERROR = enums.ECORE_FD_ERROR
ECORE_EXE_NONE = enums.ECORE_EXE_NONE
ECORE_EXE_PIPE_READ = enums.ECORE_EXE_PIPE_READ
ECORE_EXE_PIPE_WRITE = enums.ECORE_EXE_PIPE_WRITE
ECORE_EXE_PIPE_ERROR = enums.ECORE_EXE_PIPE_ERROR
ECORE_EXE_PIPE_READ_LINE_BUFFERED = enums.ECORE_EXE_PIPE_READ_LINE_BUFFERED
ECORE_EXE_PIPE_ERROR_LINE_BUFFERED = enums.ECORE_EXE_PIPE_ERROR_LINE_BUFFERED
ECORE_EXE_PIPE_AUTO = enums.ECORE_EXE_PIPE_AUTO
ECORE_EXE_RESPAWN = enums.ECORE_EXE_RESPAWN
ECORE_EXE_USE_SH = enums.ECORE_EXE_USE_SH
ECORE_EXE_NOT_LEADER = enums.ECORE_EXE_NOT_LEADER
ECORE_EXE_TERM_WITH_PARENT = enums.ECORE_EXE_TERM_WITH_PARENT
ECORE_POS_MAP_LINEAR = enums.ECORE_POS_MAP_LINEAR
ECORE_POS_MAP_ACCELERATE = enums.ECORE_POS_MAP_ACCELERATE
ECORE_POS_MAP_DECELERATE = enums.ECORE_POS_MAP_DECELERATE
ECORE_POS_MAP_SINUSOIDAL = enums.ECORE_POS_MAP_SINUSOIDAL
ECORE_POS_MAP_ACCELERATE_FACTOR = enums.ECORE_POS_MAP_ACCELERATE_FACTOR
ECORE_POS_MAP_DECELERATE_FACTOR = enums.ECORE_POS_MAP_DECELERATE_FACTOR
ECORE_POS_MAP_SINUSOIDAL_FACTOR = enums.ECORE_POS_MAP_SINUSOIDAL_FACTOR
ECORE_POS_MAP_DIVISOR_INTERP = enums.ECORE_POS_MAP_DIVISOR_INTERP
ECORE_POS_MAP_BOUNCE = enums.ECORE_POS_MAP_BOUNCE
ECORE_POS_MAP_SPRING = enums.ECORE_POS_MAP_SPRING
ECORE_POS_MAP_CUBIC_BEZIER = enums.ECORE_POS_MAP_CUBIC_BEZIER
ECORE_ANIMATOR_SOURCE_TIMER = enums.ECORE_ANIMATOR_SOURCE_TIMER
ECORE_ANIMATOR_SOURCE_CUSTOM = enums.ECORE_ANIMATOR_SOURCE_CUSTOM
ECORE_POLLER_CORE = enums.ECORE_POLLER_CORE
ECORE_FILE_EVENT_NONE = enums.ECORE_FILE_EVENT_NONE
ECORE_FILE_EVENT_CREATED_FILE = enums.ECORE_FILE_EVENT_CREATED_FILE
ECORE_FILE_EVENT_CREATED_DIRECTORY = enums.ECORE_FILE_EVENT_CREATED_DIRECTORY
ECORE_FILE_EVENT_DELETED_FILE = enums.ECORE_FILE_EVENT_DELETED_FILE
ECORE_FILE_EVENT_DELETED_DIRECTORY = enums.ECORE_FILE_EVENT_DELETED_DIRECTORY
ECORE_FILE_EVENT_DELETED_SELF = enums.ECORE_FILE_EVENT_DELETED_SELF
ECORE_FILE_EVENT_MODIFIED = enums.ECORE_FILE_EVENT_MODIFIED
ECORE_FILE_EVENT_CLOSED = enums.ECORE_FILE_EVENT_CLOSED
ECORE_FILE_PROGRESS_CONTINUE = enums.ECORE_FILE_PROGRESS_CONTINUE
ECORE_FILE_PROGRESS_ABORT = enums.ECORE_FILE_PROGRESS_ABORT
cdef Eina_Bool _ecore_task_cb(void *data) with gil:
cdef:
@ -284,15 +358,15 @@ def init():
global _event_type_mapping
_event_type_mapping = {
ECORE_EVENT_SIGNAL_USER: EventSignalUser,
ECORE_EVENT_SIGNAL_HUP: EventSignalHup,
ECORE_EVENT_SIGNAL_EXIT: EventSignalExit,
ECORE_EVENT_SIGNAL_POWER: EventSignalPower,
ECORE_EVENT_SIGNAL_REALTIME: EventSignalRealtime,
ECORE_EXE_EVENT_ADD: EventExeAdd,
ECORE_EXE_EVENT_DEL: EventExeDel,
ECORE_EXE_EVENT_DATA: EventExeData,
ECORE_EXE_EVENT_ERROR: EventExeData,
enums.ECORE_EVENT_SIGNAL_USER: EventSignalUser,
enums.ECORE_EVENT_SIGNAL_HUP: EventSignalHup,
enums.ECORE_EVENT_SIGNAL_EXIT: EventSignalExit,
enums.ECORE_EVENT_SIGNAL_POWER: EventSignalPower,
enums.ECORE_EVENT_SIGNAL_REALTIME: EventSignalRealtime,
enums.ECORE_EXE_EVENT_ADD: EventExeAdd,
enums.ECORE_EXE_EVENT_DEL: EventExeDel,
enums.ECORE_EXE_EVENT_DATA: EventExeData,
enums.ECORE_EXE_EVENT_ERROR: EventExeData,
}
ecore_file_init()

View File

@ -174,7 +174,7 @@ cdef class EventSignalUser2(EventSignalUser):
cdef class EventHandlerSignalUser(EventHandler):
def __init__(self, func, *args, **kargs):
EventHandler.__init__(self, ECORE_EVENT_SIGNAL_USER,
EventHandler.__init__(self, enums.ECORE_EVENT_SIGNAL_USER,
func, *args, **kargs)
cdef Eina_Bool _exec(self, void *event) except 2:
@ -206,7 +206,7 @@ cdef class EventSignalHup(Event):
def on_signal_hup(func, *args, **kargs):
return EventHandler(ECORE_EVENT_SIGNAL_HUP, func, *args, **kargs)
return EventHandler(enums.ECORE_EVENT_SIGNAL_HUP, func, *args, **kargs)
cdef class EventSignalExit(Event):
@ -253,7 +253,7 @@ cdef class EventSignalTerminate(EventSignalExit):
cdef class EventHandlerSignalExit(EventHandler):
def __init__(self, func, *args, **kargs):
EventHandler.__init__(self, ECORE_EVENT_SIGNAL_EXIT,
EventHandler.__init__(self, enums.ECORE_EVENT_SIGNAL_EXIT,
func, *args, **kargs)
cdef Eina_Bool _exec(self, void *event) except 2:
@ -287,7 +287,7 @@ cdef class EventSignalPower(Event):
def on_signal_power(func, *args, **kargs):
return EventHandler(ECORE_EVENT_SIGNAL_POWER, func, *args, **kargs)
return EventHandler(enums.ECORE_EVENT_SIGNAL_POWER, func, *args, **kargs)
cdef class EventSignalRealtime(Event):
@ -305,7 +305,7 @@ cdef class EventSignalRealtime(Event):
def on_signal_realtime(func, *args, **kargs):
return EventHandler(ECORE_EVENT_SIGNAL_REALTIME, func, *args, **kargs)
return EventHandler(enums.ECORE_EVENT_SIGNAL_REALTIME, func, *args, **kargs)
cdef class CustomEvent(Event):

View File

@ -25,25 +25,25 @@ cdef extern from "Python.h":
cdef exe_flags2str(int value):
flags = []
if value & ECORE_EXE_PIPE_READ:
if value & enums.ECORE_EXE_PIPE_READ:
flags.append("PIPE_READ")
if value & ECORE_EXE_PIPE_WRITE:
if value & enums.ECORE_EXE_PIPE_WRITE:
flags.append("PIPE_WRITE")
if value & ECORE_EXE_PIPE_ERROR:
if value & enums.ECORE_EXE_PIPE_ERROR:
flags.append("PIPE_ERROR")
if value & ECORE_EXE_PIPE_READ_LINE_BUFFERED:
if value & enums.ECORE_EXE_PIPE_READ_LINE_BUFFERED:
flags.append("PIPE_READ_LINE_BUFFERED")
if value & ECORE_EXE_PIPE_ERROR_LINE_BUFFERED:
if value & enums.ECORE_EXE_PIPE_ERROR_LINE_BUFFERED:
flags.append("PIPE_ERROR_LINE_BUFFERED")
if value & ECORE_EXE_PIPE_AUTO:
if value & enums.ECORE_EXE_PIPE_AUTO:
flags.append("PIPE_AUTO")
if value & ECORE_EXE_RESPAWN:
if value & enums.ECORE_EXE_RESPAWN:
flags.append("RESPAWN")
if value & ECORE_EXE_USE_SH:
if value & enums.ECORE_EXE_USE_SH:
flags.append("USE_SH")
if value & ECORE_EXE_NOT_LEADER:
if value & enums.ECORE_EXE_NOT_LEADER:
flags.append("NOT_LEADER")
if value & ECORE_EXE_TERM_WITH_PARENT:
if value & enums.ECORE_EXE_TERM_WITH_PARENT:
flags.append("ECORE_EXE_TERM_WITH_PARENT")
return ", ".join(flags)
@ -60,17 +60,17 @@ cdef Eina_Bool _exe_event_filter_cb(void *data, int type, void *event) with gil:
try:
assert self.event_type == type, "event is not what we asked? impossible"
if type == ECORE_EXE_EVENT_ADD:
if type == enums.ECORE_EXE_EVENT_ADD:
e_add = <Ecore_Exe_Event_Add *>event
if e_add.exe != self.exe:
return 1
e = EventExeAdd()
elif type == ECORE_EXE_EVENT_DEL:
elif type == enums.ECORE_EXE_EVENT_DEL:
e_del = <Ecore_Exe_Event_Del *>event
if e_del.exe != self.exe:
return 1
e = EventExeDel()
elif type == ECORE_EXE_EVENT_DATA or type == ECORE_EXE_EVENT_ERROR:
elif type == enums.ECORE_EXE_EVENT_DATA or type == enums.ECORE_EXE_EVENT_ERROR:
e_data = <Ecore_Exe_Event_Data *>event
if e_data.exe != self.exe:
return 1
@ -637,10 +637,10 @@ cdef class Exe(object):
:see: on_exe_add_event_add()
"""
filter = self.__callbacks.get(ECORE_EXE_EVENT_ADD)
filter = self.__callbacks.get(enums.ECORE_EXE_EVENT_ADD)
if filter is None:
filter = ExeEventFilter(self, ECORE_EXE_EVENT_ADD)
self.__callbacks[ECORE_EXE_EVENT_ADD] = filter
filter = ExeEventFilter(self, enums.ECORE_EXE_EVENT_ADD)
self.__callbacks[enums.ECORE_EXE_EVENT_ADD] = filter
filter.callback_add(func, args, kargs)
def on_add_event_del(self, func, *args, **kargs):
@ -651,7 +651,7 @@ cdef class Exe(object):
:raise ValueError: if parameters don't match an already
registered callback.
"""
filter = self.__callbacks.get(ECORE_EXE_EVENT_ADD)
filter = self.__callbacks.get(enums.ECORE_EXE_EVENT_ADD)
if filter is None:
raise ValueError("callback not registered %s, args=%s, kargs=%s" %
(func, args, kargs))
@ -673,10 +673,10 @@ cdef class Exe(object):
:see: on_del_event_del()
:see: on_exe_del_event_add()
"""
filter = self.__callbacks.get(ECORE_EXE_EVENT_DEL)
filter = self.__callbacks.get(enums.ECORE_EXE_EVENT_DEL)
if filter is None:
filter = ExeEventFilter(self, ECORE_EXE_EVENT_DEL)
self.__callbacks[ECORE_EXE_EVENT_DEL] = filter
filter = ExeEventFilter(self, enums.ECORE_EXE_EVENT_DEL)
self.__callbacks[enums.ECORE_EXE_EVENT_DEL] = filter
filter.callback_add(func, args, kargs)
def on_del_event_del(self, func, *args, **kargs):
@ -687,7 +687,7 @@ cdef class Exe(object):
:raise ValueError: if parameters don't match an already
registered callback.
"""
filter = self.__callbacks.get(ECORE_EXE_EVENT_DEL)
filter = self.__callbacks.get(enums.ECORE_EXE_EVENT_DEL)
if filter is None:
raise ValueError("callback not registered %s, args=%s, kargs=%s" %
(func, args, kargs))
@ -709,10 +709,10 @@ cdef class Exe(object):
:see: on_data_event_del()
:see: on_exe_data_event_add()
"""
filter = self.__callbacks.get(ECORE_EXE_EVENT_DATA)
filter = self.__callbacks.get(enums.ECORE_EXE_EVENT_DATA)
if filter is None:
filter = ExeEventFilter(self, ECORE_EXE_EVENT_DATA)
self.__callbacks[ECORE_EXE_EVENT_DATA] = filter
filter = ExeEventFilter(self, enums.ECORE_EXE_EVENT_DATA)
self.__callbacks[enums.ECORE_EXE_EVENT_DATA] = filter
filter.callback_add(func, args, kargs)
def on_data_event_del(self, func, *args, **kargs):
@ -723,7 +723,7 @@ cdef class Exe(object):
:raise ValueError: if parameters don't match an already
registered callback.
"""
filter = self.__callbacks.get(ECORE_EXE_EVENT_DATA)
filter = self.__callbacks.get(enums.ECORE_EXE_EVENT_DATA)
if filter is None:
raise ValueError("callback not registered %s, args=%s, kargs=%s" %
(func, args, kargs))
@ -745,10 +745,10 @@ cdef class Exe(object):
:see: on_error_event_del()
:see: on_exe_error_event_add()
"""
filter = self.__callbacks.get(ECORE_EXE_EVENT_ERROR)
filter = self.__callbacks.get(enums.ECORE_EXE_EVENT_ERROR)
if filter is None:
filter = ExeEventFilter(self, ECORE_EXE_EVENT_ERROR)
self.__callbacks[ECORE_EXE_EVENT_ERROR] = filter
filter = ExeEventFilter(self, enums.ECORE_EXE_EVENT_ERROR)
self.__callbacks[enums.ECORE_EXE_EVENT_ERROR] = filter
filter.callback_add(func, args, kargs)
def on_error_event_del(self, func, *args, **kargs):
@ -759,7 +759,7 @@ cdef class Exe(object):
:raise ValueError: if parameters don't match an already
registered callback.
"""
filter = self.__callbacks.get(ECORE_EXE_EVENT_ERROR)
filter = self.__callbacks.get(enums.ECORE_EXE_EVENT_ERROR)
if filter is None:
raise ValueError("callback not registered %s, args=%s, kargs=%s" %
(func, args, kargs))
@ -888,7 +888,7 @@ def on_exe_add_event_add(func, *args, **kargs):
:see: EventHandler
:see: EventHandlerExe
"""
return EventHandlerExe(ECORE_EXE_EVENT_ADD, func, *args, **kargs)
return EventHandlerExe(enums.ECORE_EXE_EVENT_ADD, func, *args, **kargs)
def on_exe_del_event_add(func, *args, **kargs):
@ -897,7 +897,7 @@ def on_exe_del_event_add(func, *args, **kargs):
:see: EventHandler
:see: EventHandlerExe
"""
return EventHandlerExe(ECORE_EXE_EVENT_DEL, func, *args, **kargs)
return EventHandlerExe(enums.ECORE_EXE_EVENT_DEL, func, *args, **kargs)
def on_exe_data_event_add(func, *args, **kargs):
@ -906,7 +906,7 @@ def on_exe_data_event_add(func, *args, **kargs):
:see: EventHandler
:see: EventHandlerExe
"""
return EventHandlerExe(ECORE_EXE_EVENT_DATA, func, *args, **kargs)
return EventHandlerExe(enums.ECORE_EXE_EVENT_DATA, func, *args, **kargs)
def on_exe_error_event_add(func, *args, **kargs):
@ -915,4 +915,4 @@ def on_exe_error_event_add(func, *args, **kargs):
:see: :py:class:`EventHandler`
:see: :py:class:`EventHandlerExe`
"""
return EventHandlerExe(ECORE_EXE_EVENT_ERROR, func, *args, **kargs)
return EventHandlerExe(enums.ECORE_EXE_EVENT_ERROR, func, *args, **kargs)

View File

@ -31,11 +31,11 @@ cdef void fd_handler_prepare_cb(void *data, Ecore_Fd_Handler *fdh) with gil:
cdef flags2str(int value):
flags = []
if value & <int>ECORE_FD_READ:
if value & <int>enums.ECORE_FD_READ:
flags.append("READ")
if value & <int>ECORE_FD_WRITE:
if value & <int>enums.ECORE_FD_WRITE:
flags.append("WRITE")
if value & <int>ECORE_FD_ERROR:
if value & <int>enums.ECORE_FD_ERROR:
flags.append("ERROR")
return ", ".join(flags)
@ -193,15 +193,15 @@ cdef class FdHandler(object):
def can_read(self):
""":rtype: bool"""
return bool(ecore_main_fd_handler_active_get(self.obj, ECORE_FD_READ))
return bool(ecore_main_fd_handler_active_get(self.obj, enums.ECORE_FD_READ))
def can_write(self):
""":rtype: bool"""
return bool(ecore_main_fd_handler_active_get(self.obj, ECORE_FD_WRITE))
return bool(ecore_main_fd_handler_active_get(self.obj, enums.ECORE_FD_WRITE))
def has_error(self):
""":rtype: bool"""
return bool(ecore_main_fd_handler_active_get(self.obj, ECORE_FD_ERROR))
return bool(ecore_main_fd_handler_active_get(self.obj, enums.ECORE_FD_ERROR))
def prepare_callback_set(self, func, *args, **kargs):
"""Set a function to call before doing the select() on the fd.

View File

@ -971,6 +971,7 @@ Module level functions
"""
cimport efl.evas.enums as enums
from efl.utils.conversions cimport eina_list_strings_to_python_list
from efl.eina cimport EINA_LOG_DOM_DBG, EINA_LOG_DOM_INFO, EINA_LOG_DOM_WARN, \
@ -982,6 +983,219 @@ cdef int PY_EFL_EVAS_LOG_DOMAIN = add_logger(__name__).eina_log_domain
import atexit
EVAS_LAYER_MIN = enums.EVAS_LAYER_MIN
EVAS_LAYER_MAX = enums.EVAS_LAYER_MAX
EVAS_COLOR_SPACE_ARGB = enums.EVAS_COLOR_SPACE_ARGB
EVAS_COLOR_SPACE_AHSV = enums.EVAS_COLOR_SPACE_AHSV
EVAS_TEXT_INVALID = enums.EVAS_TEXT_INVALID
EVAS_TEXT_SPECIAL = enums.EVAS_TEXT_SPECIAL
EVAS_SMART_CLASS_VERSION = enums.EVAS_SMART_CLASS_VERSION
EVAS_BUTTON_NONE = enums.EVAS_BUTTON_NONE
EVAS_BUTTON_DOUBLE_CLICK = enums.EVAS_BUTTON_DOUBLE_CLICK
EVAS_BUTTON_TRIPLE_CLICK = enums.EVAS_BUTTON_TRIPLE_CLICK
EVAS_BIDI_DIRECTION_NATURAL = enums.EVAS_BIDI_DIRECTION_NATURAL
EVAS_BIDI_DIRECTION_NEUTRAL = enums.EVAS_BIDI_DIRECTION_NEUTRAL
EVAS_BIDI_DIRECTION_LTR = enums.EVAS_BIDI_DIRECTION_LTR
EVAS_BIDI_DIRECTION_RTL = enums.EVAS_BIDI_DIRECTION_RTL
EVAS_BIDI_DIRECTION_INHERIT = enums.EVAS_BIDI_DIRECTION_INHERIT
EVAS_CALLBACK_MOUSE_IN = enums.EVAS_CALLBACK_MOUSE_IN
EVAS_CALLBACK_MOUSE_OUT = enums.EVAS_CALLBACK_MOUSE_OUT
EVAS_CALLBACK_MOUSE_DOWN = enums.EVAS_CALLBACK_MOUSE_DOWN
EVAS_CALLBACK_MOUSE_UP = enums.EVAS_CALLBACK_MOUSE_UP
EVAS_CALLBACK_MOUSE_MOVE = enums.EVAS_CALLBACK_MOUSE_MOVE
EVAS_CALLBACK_MOUSE_WHEEL = enums.EVAS_CALLBACK_MOUSE_WHEEL
EVAS_CALLBACK_MULTI_DOWN = enums.EVAS_CALLBACK_MULTI_DOWN
EVAS_CALLBACK_MULTI_UP = enums.EVAS_CALLBACK_MULTI_UP
EVAS_CALLBACK_MULTI_MOVE = enums.EVAS_CALLBACK_MULTI_MOVE
EVAS_CALLBACK_FREE = enums.EVAS_CALLBACK_FREE
EVAS_CALLBACK_KEY_DOWN = enums.EVAS_CALLBACK_KEY_DOWN
EVAS_CALLBACK_KEY_UP = enums.EVAS_CALLBACK_KEY_UP
EVAS_CALLBACK_FOCUS_IN = enums.EVAS_CALLBACK_FOCUS_IN
EVAS_CALLBACK_FOCUS_OUT = enums.EVAS_CALLBACK_FOCUS_OUT
EVAS_CALLBACK_SHOW = enums.EVAS_CALLBACK_SHOW
EVAS_CALLBACK_HIDE = enums.EVAS_CALLBACK_HIDE
EVAS_CALLBACK_MOVE = enums.EVAS_CALLBACK_MOVE
EVAS_CALLBACK_RESIZE = enums.EVAS_CALLBACK_RESIZE
EVAS_CALLBACK_RESTACK = enums.EVAS_CALLBACK_RESTACK
EVAS_CALLBACK_DEL = enums.EVAS_CALLBACK_DEL
EVAS_CALLBACK_HOLD = enums.EVAS_CALLBACK_HOLD
EVAS_CALLBACK_CHANGED_SIZE_HINTS = enums.EVAS_CALLBACK_CHANGED_SIZE_HINTS
EVAS_CALLBACK_IMAGE_PRELOADED = enums.EVAS_CALLBACK_IMAGE_PRELOADED
EVAS_CALLBACK_CANVAS_FOCUS_IN = enums.EVAS_CALLBACK_CANVAS_FOCUS_IN
EVAS_CALLBACK_CANVAS_FOCUS_OUT = enums.EVAS_CALLBACK_CANVAS_FOCUS_OUT
EVAS_CALLBACK_RENDER_FLUSH_PRE = enums.EVAS_CALLBACK_RENDER_FLUSH_PRE
EVAS_CALLBACK_RENDER_FLUSH_POST = enums.EVAS_CALLBACK_RENDER_FLUSH_POST
EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN = enums.EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN
EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT = enums.EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT
EVAS_CALLBACK_IMAGE_UNLOADED = enums.EVAS_CALLBACK_IMAGE_UNLOADED
EVAS_CALLBACK_RENDER_PRE = enums.EVAS_CALLBACK_RENDER_PRE
EVAS_CALLBACK_RENDER_POST = enums.EVAS_CALLBACK_RENDER_POST
EVAS_CALLBACK_IMAGE_RESIZE = enums.EVAS_CALLBACK_IMAGE_RESIZE
EVAS_CALLBACK_DEVICE_CHANGED = enums.EVAS_CALLBACK_DEVICE_CHANGED
EVAS_CALLBACK_AXIS_UPDATE = enums.EVAS_CALLBACK_AXIS_UPDATE
EVAS_CALLBACK_CANVAS_VIEWPORT_RESIZE = enums.EVAS_CALLBACK_CANVAS_VIEWPORT_RESIZE
EVAS_CALLBACK_LAST = enums.EVAS_CALLBACK_LAST
EVAS_TOUCH_POINT_DOWN = enums.EVAS_TOUCH_POINT_DOWN
EVAS_TOUCH_POINT_UP = enums.EVAS_TOUCH_POINT_UP
EVAS_TOUCH_POINT_MOVE = enums.EVAS_TOUCH_POINT_MOVE
EVAS_TOUCH_POINT_STILL = enums.EVAS_TOUCH_POINT_STILL
EVAS_TOUCH_POINT_CANCEL = enums.EVAS_TOUCH_POINT_CANCEL
EVAS_FONT_HINTING_NONE = enums.EVAS_FONT_HINTING_NONE
EVAS_FONT_HINTING_AUTO = enums.EVAS_FONT_HINTING_AUTO
EVAS_FONT_HINTING_BYTECODE = enums.EVAS_FONT_HINTING_BYTECODE
EVAS_COLORSPACE_ARGB8888 = enums.EVAS_COLORSPACE_ARGB8888
EVAS_COLORSPACE_YCBCR422P601_PL = enums.EVAS_COLORSPACE_YCBCR422P601_PL
EVAS_COLORSPACE_YCBCR422P709_PL = enums.EVAS_COLORSPACE_YCBCR422P709_PL
EVAS_COLORSPACE_RGB565_A5P = enums.EVAS_COLORSPACE_RGB565_A5P
EVAS_COLORSPACE_GRY8 = enums.EVAS_COLORSPACE_GRY8
EVAS_COLORSPACE_YCBCR422601_PL = enums.EVAS_COLORSPACE_YCBCR422601_PL
EVAS_COLORSPACE_YCBCR420NV12601_PL = enums.EVAS_COLORSPACE_YCBCR420NV12601_PL
EVAS_COLORSPACE_YCBCR420TM12601_PL = enums.EVAS_COLORSPACE_YCBCR420TM12601_PL
EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE = enums.EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE
EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE = enums.EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE
EVAS_OBJECT_TABLE_HOMOGENEOUS_ITEM = enums.EVAS_OBJECT_TABLE_HOMOGENEOUS_ITEM
EVAS_ASPECT_CONTROL_NONE = enums.EVAS_ASPECT_CONTROL_NONE
EVAS_ASPECT_CONTROL_NEITHER = enums.EVAS_ASPECT_CONTROL_NEITHER
EVAS_ASPECT_CONTROL_HORIZONTAL = enums.EVAS_ASPECT_CONTROL_HORIZONTAL
EVAS_ASPECT_CONTROL_VERTICAL = enums.EVAS_ASPECT_CONTROL_VERTICAL
EVAS_ASPECT_CONTROL_BOTH = enums.EVAS_ASPECT_CONTROL_BOTH
EVAS_DISPLAY_MODE_NONE = enums.EVAS_DISPLAY_MODE_NONE
EVAS_DISPLAY_MODE_COMPRESS = enums.EVAS_DISPLAY_MODE_COMPRESS
EVAS_DISPLAY_MODE_EXPAND = enums.EVAS_DISPLAY_MODE_EXPAND
EVAS_DISPLAY_MODE_DONT_CHANGE = enums.EVAS_DISPLAY_MODE_DONT_CHANGE
EVAS_LOAD_ERROR_NONE = enums.EVAS_LOAD_ERROR_NONE
EVAS_LOAD_ERROR_GENERIC = enums.EVAS_LOAD_ERROR_GENERIC
EVAS_LOAD_ERROR_DOES_NOT_EXIST = enums.EVAS_LOAD_ERROR_DOES_NOT_EXIST
EVAS_LOAD_ERROR_PERMISSION_DENIED = enums.EVAS_LOAD_ERROR_PERMISSION_DENIED
EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED = enums.EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED
EVAS_LOAD_ERROR_CORRUPT_FILE = enums.EVAS_LOAD_ERROR_CORRUPT_FILE
EVAS_LOAD_ERROR_UNKNOWN_FORMAT = enums.EVAS_LOAD_ERROR_UNKNOWN_FORMAT
EVAS_ALLOC_ERROR_NONE = enums.EVAS_ALLOC_ERROR_NONE
EVAS_ALLOC_ERROR_FATAL = enums.EVAS_ALLOC_ERROR_FATAL
EVAS_ALLOC_ERROR_RECOVERED = enums.EVAS_ALLOC_ERROR_RECOVERED
EVAS_TEXTURE_REFLECT = enums.EVAS_TEXTURE_REFLECT
EVAS_TEXTURE_REPEAT = enums.EVAS_TEXTURE_REPEAT
EVAS_TEXTURE_RESTRICT = enums.EVAS_TEXTURE_RESTRICT
EVAS_TEXTURE_RESTRICT_REFLECT = enums.EVAS_TEXTURE_RESTRICT_REFLECT
EVAS_TEXTURE_RESTRICT_REPEAT = enums.EVAS_TEXTURE_RESTRICT_REPEAT
EVAS_TEXTURE_PAD = enums.EVAS_TEXTURE_PAD
EVAS_PIXEL_FORMAT_NONE = enums.EVAS_PIXEL_FORMAT_NONE
EVAS_PIXEL_FORMAT_ARGB32 = enums.EVAS_PIXEL_FORMAT_ARGB32
EVAS_PIXEL_FORMAT_YUV420P_601 = enums.EVAS_PIXEL_FORMAT_YUV420P_601
EVAS_NATIVE_SURFACE_NONE = enums.EVAS_NATIVE_SURFACE_NONE
EVAS_NATIVE_SURFACE_X11 = enums.EVAS_NATIVE_SURFACE_X11
EVAS_NATIVE_SURFACE_OPENGL = enums.EVAS_NATIVE_SURFACE_OPENGL
EVAS_NATIVE_SURFACE_WL = enums.EVAS_NATIVE_SURFACE_WL
EVAS_RENDER_BLEND = enums.EVAS_RENDER_BLEND
EVAS_RENDER_BLEND_REL = enums.EVAS_RENDER_BLEND_REL
EVAS_RENDER_COPY = enums.EVAS_RENDER_COPY
EVAS_RENDER_COPY_REL = enums.EVAS_RENDER_COPY_REL
EVAS_RENDER_ADD = enums.EVAS_RENDER_ADD
EVAS_RENDER_ADD_REL = enums.EVAS_RENDER_ADD_REL
EVAS_RENDER_SUB = enums.EVAS_RENDER_SUB
EVAS_RENDER_SUB_REL = enums.EVAS_RENDER_SUB_REL
EVAS_RENDER_TINT = enums.EVAS_RENDER_TINT
EVAS_RENDER_TINT_REL = enums.EVAS_RENDER_TINT_REL
EVAS_RENDER_MASK = enums.EVAS_RENDER_MASK
EVAS_RENDER_MUL = enums.EVAS_RENDER_MUL
EVAS_BORDER_FILL_NONE = enums.EVAS_BORDER_FILL_NONE
EVAS_BORDER_FILL_DEFAULT = enums.EVAS_BORDER_FILL_DEFAULT
EVAS_BORDER_FILL_SOLID = enums.EVAS_BORDER_FILL_SOLID
EVAS_IMAGE_SCALE_HINT_NONE = enums.EVAS_IMAGE_SCALE_HINT_NONE
EVAS_IMAGE_SCALE_HINT_DYNAMIC = enums.EVAS_IMAGE_SCALE_HINT_DYNAMIC
EVAS_IMAGE_SCALE_HINT_STATIC = enums.EVAS_IMAGE_SCALE_HINT_STATIC
EVAS_IMAGE_ANIMATED_HINT_NONE = enums.EVAS_IMAGE_ANIMATED_HINT_NONE
EVAS_IMAGE_ANIMATED_HINT_LOOP = enums.EVAS_IMAGE_ANIMATED_HINT_LOOP
EVAS_IMAGE_ANIMATED_HINT_PINGPONG = enums.EVAS_IMAGE_ANIMATED_HINT_PINGPONG
EVAS_IMAGE_ORIENT_NONE = enums.EVAS_IMAGE_ORIENT_NONE
EVAS_IMAGE_ORIENT_0 = enums.EVAS_IMAGE_ORIENT_0
EVAS_IMAGE_ORIENT_90 = enums.EVAS_IMAGE_ORIENT_90
EVAS_IMAGE_ORIENT_180 = enums.EVAS_IMAGE_ORIENT_180
EVAS_IMAGE_ORIENT_270 = enums.EVAS_IMAGE_ORIENT_270
EVAS_IMAGE_FLIP_HORIZONTAL = enums.EVAS_IMAGE_FLIP_HORIZONTAL
EVAS_IMAGE_FLIP_VERTICAL = enums.EVAS_IMAGE_FLIP_VERTICAL
EVAS_IMAGE_FLIP_TRANSPOSE = enums.EVAS_IMAGE_FLIP_TRANSPOSE
EVAS_IMAGE_FLIP_TRANSVERSE = enums.EVAS_IMAGE_FLIP_TRANSVERSE
EVAS_RENDER_MODE_BLOCKING = enums.EVAS_RENDER_MODE_BLOCKING
EVAS_RENDER_MODE_NONBLOCKING = enums.EVAS_RENDER_MODE_NONBLOCKING
EVAS_IMAGE_CONTENT_HINT_NONE = enums.EVAS_IMAGE_CONTENT_HINT_NONE
EVAS_IMAGE_CONTENT_HINT_DYNAMIC = enums.EVAS_IMAGE_CONTENT_HINT_DYNAMIC
EVAS_IMAGE_CONTENT_HINT_STATIC = enums.EVAS_IMAGE_CONTENT_HINT_STATIC
EVAS_DEVICE_CLASS_NONE = enums.EVAS_DEVICE_CLASS_NONE
EVAS_DEVICE_CLASS_SEAT = enums.EVAS_DEVICE_CLASS_SEAT
EVAS_DEVICE_CLASS_KEYBOARD = enums.EVAS_DEVICE_CLASS_KEYBOARD
EVAS_DEVICE_CLASS_MOUSE = enums.EVAS_DEVICE_CLASS_MOUSE
EVAS_DEVICE_CLASS_TOUCH = enums.EVAS_DEVICE_CLASS_TOUCH
EVAS_DEVICE_CLASS_PEN = enums.EVAS_DEVICE_CLASS_PEN
EVAS_DEVICE_CLASS_POINTER = enums.EVAS_DEVICE_CLASS_POINTER
EVAS_DEVICE_CLASS_GAMEPAD = enums.EVAS_DEVICE_CLASS_GAMEPAD
EVAS_OBJECT_POINTER_MODE_AUTOGRAB = enums.EVAS_OBJECT_POINTER_MODE_AUTOGRAB
EVAS_OBJECT_POINTER_MODE_NOGRAB = enums.EVAS_OBJECT_POINTER_MODE_NOGRAB
EVAS_OBJECT_POINTER_MODE_NOGRAB_NO_REPEAT_UPDOWN = enums.EVAS_OBJECT_POINTER_MODE_NOGRAB_NO_REPEAT_UPDOWN
EVAS_TEXT_STYLE_PLAIN = enums.EVAS_TEXT_STYLE_PLAIN
EVAS_TEXT_STYLE_SHADOW = enums.EVAS_TEXT_STYLE_SHADOW
EVAS_TEXT_STYLE_OUTLINE = enums.EVAS_TEXT_STYLE_OUTLINE
EVAS_TEXT_STYLE_SOFT_OUTLINE = enums.EVAS_TEXT_STYLE_SOFT_OUTLINE
EVAS_TEXT_STYLE_GLOW = enums.EVAS_TEXT_STYLE_GLOW
EVAS_TEXT_STYLE_OUTLINE_SHADOW = enums.EVAS_TEXT_STYLE_OUTLINE_SHADOW
EVAS_TEXT_STYLE_FAR_SHADOW = enums.EVAS_TEXT_STYLE_FAR_SHADOW
EVAS_TEXT_STYLE_OUTLINE_SOFT_SHADOW = enums.EVAS_TEXT_STYLE_OUTLINE_SOFT_SHADOW
EVAS_TEXT_STYLE_SOFT_SHADOW = enums.EVAS_TEXT_STYLE_SOFT_SHADOW
EVAS_TEXT_STYLE_FAR_SOFT_SHADOW = enums.EVAS_TEXT_STYLE_FAR_SOFT_SHADOW
EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_RIGHT = enums.EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_RIGHT
EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM = enums.EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM
EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_LEFT = enums.EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_LEFT
EVAS_TEXT_STYLE_SHADOW_DIRECTION_LEFT = enums.EVAS_TEXT_STYLE_SHADOW_DIRECTION_LEFT
EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP_LEFT = enums.EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP_LEFT
EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP = enums.EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP
EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP_RIGHT = enums.EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP_RIGHT
EVAS_TEXT_STYLE_SHADOW_DIRECTION_RIGHT = enums.EVAS_TEXT_STYLE_SHADOW_DIRECTION_RIGHT
EVAS_TEXTBLOCK_TEXT_RAW = enums.EVAS_TEXTBLOCK_TEXT_RAW
EVAS_TEXTBLOCK_TEXT_PLAIN = enums.EVAS_TEXTBLOCK_TEXT_PLAIN
EVAS_TEXTBLOCK_TEXT_MARKUP = enums.EVAS_TEXTBLOCK_TEXT_MARKUP
EVAS_TEXTBLOCK_CURSOR_UNDER = enums.EVAS_TEXTBLOCK_CURSOR_UNDER
EVAS_TEXTBLOCK_CURSOR_BEFORE = enums.EVAS_TEXTBLOCK_CURSOR_BEFORE
EVAS_TEXTGRID_PALETTE_NONE = enums.EVAS_TEXTGRID_PALETTE_NONE
EVAS_TEXTGRID_PALETTE_STANDARD = enums.EVAS_TEXTGRID_PALETTE_STANDARD
EVAS_TEXTGRID_PALETTE_EXTENDED = enums.EVAS_TEXTGRID_PALETTE_EXTENDED
EVAS_TEXTGRID_PALETTE_LAST = enums.EVAS_TEXTGRID_PALETTE_LAST
EVAS_TEXTGRID_FONT_STYLE_NORMAL = enums.EVAS_TEXTGRID_FONT_STYLE_NORMAL
EVAS_TEXTGRID_FONT_STYLE_BOLD = enums.EVAS_TEXTGRID_FONT_STYLE_BOLD
EVAS_TEXTGRID_FONT_STYLE_ITALIC = enums.EVAS_TEXTGRID_FONT_STYLE_ITALIC
# TODO doc
EVAS_HINT_FILL = -1.0
EVAS_HINT_EXPAND = 1.0
@ -997,12 +1211,12 @@ FILL_VERT = 0.5, EVAS_HINT_FILL
def init():
EINA_LOG_DOM_INFO(PY_EFL_EVAS_LOG_DOMAIN, "Initializing efl.evas", NULL)
if evas_object_event_callbacks_len != EVAS_CALLBACK_LAST:
if evas_object_event_callbacks_len != enums.EVAS_CALLBACK_LAST:
raise SystemError("Number of object callbacks changed from %d to %d." %
(evas_object_event_callbacks_len, EVAS_CALLBACK_LAST))
if evas_canvas_event_callbacks_len != EVAS_CALLBACK_LAST:
(evas_object_event_callbacks_len, enums.EVAS_CALLBACK_LAST))
if evas_canvas_event_callbacks_len != enums.EVAS_CALLBACK_LAST:
raise SystemError("Number of canvas callbacks changed from %d to %d." %
(evas_canvas_event_callbacks_len, EVAS_CALLBACK_LAST))
(evas_canvas_event_callbacks_len, enums.EVAS_CALLBACK_LAST))
return evas_init()
@ -1162,19 +1376,19 @@ def font_path_global_list():
class EvasLoadError(Exception):
def __init__(self, int code, filename, key):
if code == EVAS_LOAD_ERROR_NONE:
if code == enums.EVAS_LOAD_ERROR_NONE:
msg = "No error on load"
elif code == EVAS_LOAD_ERROR_GENERIC:
elif code == enums.EVAS_LOAD_ERROR_GENERIC:
msg = "A non-specific error occurred"
elif code == EVAS_LOAD_ERROR_DOES_NOT_EXIST:
elif code == enums.EVAS_LOAD_ERROR_DOES_NOT_EXIST:
msg = "File (or file path) does not exist"
elif code == EVAS_LOAD_ERROR_PERMISSION_DENIED:
elif code == enums.EVAS_LOAD_ERROR_PERMISSION_DENIED:
msg = "Permission denied to an existing file (or path)"
elif code == EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED:
elif code == enums.EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED:
msg = "Allocation of resources failure prevented load"
elif code == EVAS_LOAD_ERROR_CORRUPT_FILE:
elif code == enums.EVAS_LOAD_ERROR_CORRUPT_FILE:
msg = "File corrupt (but was detected as a known format)"
elif code == EVAS_LOAD_ERROR_UNKNOWN_FORMAT:
elif code == enums.EVAS_LOAD_ERROR_UNKNOWN_FORMAT:
msg = "File is not in a known format"
self.code = code
self.file = filename
@ -1189,8 +1403,6 @@ include "efl.evas_canvas.pxi"
include "efl.evas_object_events.pxi"
include "efl.evas_object_callbacks.pxi"
include "efl.evas_object.pxi"
# Disable evas smart object for the moment, because PyMethod_New is broken
# in recent Cython versions, at least in Cython 0.21.1/2 using py3.
include "efl.evas_object_smart.pxi"
include "efl.evas_object_image.pxi"
include "efl.evas_object_line.pxi"

View File

@ -684,11 +684,11 @@ cdef class Canvas(Eo):
function(object, *args, **kargs)
"""
self.event_callback_add(EVAS_CALLBACK_CANVAS_FOCUS_IN, func, *a, **k)
self.event_callback_add(enums.EVAS_CALLBACK_CANVAS_FOCUS_IN, func, *a, **k)
def on_canvas_focus_in_del(self, func):
"""Same as event_callback_del(EVAS_CALLBACK_CANVAS_FOCUS_IN, ...)"""
self.event_callback_del(EVAS_CALLBACK_CANVAS_FOCUS_IN, func)
self.event_callback_del(enums.EVAS_CALLBACK_CANVAS_FOCUS_IN, func)
def on_canvas_focus_out_add(self, func, *a, **k):
"""Same as event_callback_add(EVAS_CALLBACK_CANVAS_FOCUS_OUT, ...)
@ -698,11 +698,11 @@ cdef class Canvas(Eo):
function(object, *args, **kargs)
"""
self.event_callback_add(EVAS_CALLBACK_CANVAS_FOCUS_OUT, func, *a, **k)
self.event_callback_add(enums.EVAS_CALLBACK_CANVAS_FOCUS_OUT, func, *a, **k)
def on_canvas_focus_out_del(self, func):
"""Same as event_callback_del(EVAS_CALLBACK_CANVAS_FOCUS_OUT, ...)"""
self.event_callback_del(EVAS_CALLBACK_CANVAS_FOCUS_OUT, func)
self.event_callback_del(enums.EVAS_CALLBACK_CANVAS_FOCUS_OUT, func)
def on_render_flush_pre_add(self, func, *a, **k):
"""Same as event_callback_add(EVAS_CALLBACK_RENDER_FLUSH_PRE, ...)
@ -712,11 +712,11 @@ cdef class Canvas(Eo):
function(object, *args, **kargs)
"""
self.event_callback_add(EVAS_CALLBACK_RENDER_FLUSH_PRE, func, *a, **k)
self.event_callback_add(enums.EVAS_CALLBACK_RENDER_FLUSH_PRE, func, *a, **k)
def on_render_flush_pre_del(self, func):
"""Same as event_callback_del(EVAS_CALLBACK_RENDER_FLUSH_PRE, ...)"""
self.event_callback_del(EVAS_CALLBACK_RENDER_FLUSH_PRE, func)
self.event_callback_del(enums.EVAS_CALLBACK_RENDER_FLUSH_PRE, func)
def on_render_flush_post_add(self, func, *a, **k):
"""Same as event_callback_add(EVAS_CALLBACK_RENDER_FLUSH_POST, ...)
@ -726,11 +726,11 @@ cdef class Canvas(Eo):
function(object, *args, **kargs)
"""
self.event_callback_add(EVAS_CALLBACK_RENDER_FLUSH_POST, func, *a, **k)
self.event_callback_add(enums.EVAS_CALLBACK_RENDER_FLUSH_POST, func, *a, **k)
def on_render_flush_post_del(self, func):
"""Same as event_callback_del(EVAS_CALLBACK_RENDER_FLUSH_POST, ...)"""
self.event_callback_del(EVAS_CALLBACK_RENDER_FLUSH_POST, func)
self.event_callback_del(enums.EVAS_CALLBACK_RENDER_FLUSH_POST, func)
# Event feeding
def feed_mouse_down(self, int b, Evas_Button_Flags flags,

View File

@ -168,39 +168,39 @@ cdef void cb_canvas_viewport_resize(void *data, Evas *e, void *e_inf) with gil:
cdef int evas_canvas_event_callbacks_len
cdef Evas_Event_Cb evas_canvas_event_callbacks[36]
evas_canvas_event_callbacks_len = 36
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MOUSE_IN] = cb_canvas_mouse_in
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MOUSE_OUT] = cb_canvas_mouse_out
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MOUSE_DOWN] = cb_canvas_mouse_down
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MOUSE_UP] = cb_canvas_mouse_up
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MOUSE_MOVE] = cb_canvas_mouse_move
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MOUSE_WHEEL] = cb_canvas_mouse_wheel
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MULTI_DOWN] = cb_canvas_multi_down
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MULTI_UP] = cb_canvas_multi_up
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MULTI_MOVE] = cb_canvas_multi_move
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_FREE] = cb_canvas_free
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_KEY_DOWN] = cb_canvas_key_down
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_KEY_UP] = cb_canvas_key_up
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_FOCUS_IN] = cb_canvas_focus_in
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_FOCUS_OUT] = cb_canvas_focus_out
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_SHOW] = cb_canvas_show
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_HIDE] = cb_canvas_hide
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MOVE] = cb_canvas_move
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_RESIZE] = cb_canvas_resize
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_RESTACK] = cb_canvas_restack
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_DEL] = cb_canvas_del
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_HOLD] = cb_canvas_hold
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_CHANGED_SIZE_HINTS] = cb_canvas_changed_size_hints
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_IMAGE_PRELOADED] = cb_canvas_image_preloaded
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_CANVAS_FOCUS_IN] = cb_canvas_canvas_focus_in
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_CANVAS_FOCUS_OUT] = cb_canvas_canvas_focus_out
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_RENDER_FLUSH_PRE] = cb_canvas_render_flush_pre
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_RENDER_FLUSH_POST] = cb_canvas_render_flush_post
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN] = cb_canvas_canvas_object_focus_in
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT] = cb_canvas_canvas_object_focus_out
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_IMAGE_UNLOADED] = cb_canvas_image_unloaded
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_RENDER_PRE] = cb_canvas_render_pre
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_RENDER_POST] = cb_canvas_render_post
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_IMAGE_RESIZE] = cb_canvas_image_resize
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_DEVICE_CHANGED] = cb_canvas_device_changed
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_AXIS_UPDATE] = cb_canvas_axis_update
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_CANVAS_VIEWPORT_RESIZE] = cb_canvas_viewport_resize
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_MOUSE_IN] = cb_canvas_mouse_in
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_MOUSE_OUT] = cb_canvas_mouse_out
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_MOUSE_DOWN] = cb_canvas_mouse_down
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_MOUSE_UP] = cb_canvas_mouse_up
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_MOUSE_MOVE] = cb_canvas_mouse_move
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_MOUSE_WHEEL] = cb_canvas_mouse_wheel
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_MULTI_DOWN] = cb_canvas_multi_down
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_MULTI_UP] = cb_canvas_multi_up
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_MULTI_MOVE] = cb_canvas_multi_move
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_FREE] = cb_canvas_free
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_KEY_DOWN] = cb_canvas_key_down
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_KEY_UP] = cb_canvas_key_up
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_FOCUS_IN] = cb_canvas_focus_in
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_FOCUS_OUT] = cb_canvas_focus_out
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_SHOW] = cb_canvas_show
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_HIDE] = cb_canvas_hide
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_MOVE] = cb_canvas_move
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_RESIZE] = cb_canvas_resize
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_RESTACK] = cb_canvas_restack
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_DEL] = cb_canvas_del
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_HOLD] = cb_canvas_hold
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_CHANGED_SIZE_HINTS] = cb_canvas_changed_size_hints
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_IMAGE_PRELOADED] = cb_canvas_image_preloaded
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_CANVAS_FOCUS_IN] = cb_canvas_canvas_focus_in
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_CANVAS_FOCUS_OUT] = cb_canvas_canvas_focus_out
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_RENDER_FLUSH_PRE] = cb_canvas_render_flush_pre
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_RENDER_FLUSH_POST] = cb_canvas_render_flush_post
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN] = cb_canvas_canvas_object_focus_in
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT] = cb_canvas_canvas_object_focus_out
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_IMAGE_UNLOADED] = cb_canvas_image_unloaded
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_RENDER_PRE] = cb_canvas_render_pre
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_RENDER_POST] = cb_canvas_render_post
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_IMAGE_RESIZE] = cb_canvas_image_resize
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_DEVICE_CHANGED] = cb_canvas_device_changed
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_AXIS_UPDATE] = cb_canvas_axis_update
evas_canvas_event_callbacks[<int>enums.EVAS_CALLBACK_CANVAS_VIEWPORT_RESIZE] = cb_canvas_viewport_resize

View File

@ -43,7 +43,7 @@ cdef void cb_object_mouse_in(void *data, Evas *e,
cdef EventMouseIn event
event = EventMouseIn()
event._set_obj(e_inf)
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MOUSE_IN)
cb_object_dispatcher(<Object>data, event, enums.EVAS_CALLBACK_MOUSE_IN)
event._unset_obj()
@ -52,7 +52,7 @@ cdef void cb_object_mouse_out(void *data, Evas *e,
cdef EventMouseOut event
event = EventMouseOut()
event._set_obj(e_inf)
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MOUSE_OUT)
cb_object_dispatcher(<Object>data, event, enums.EVAS_CALLBACK_MOUSE_OUT)
event._unset_obj()
@ -61,7 +61,7 @@ cdef void cb_object_mouse_down(void *data, Evas *e,
cdef EventMouseDown event
event = EventMouseDown()
event._set_obj(e_inf)
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MOUSE_DOWN)
cb_object_dispatcher(<Object>data, event, enums.EVAS_CALLBACK_MOUSE_DOWN)
event._unset_obj()
@ -70,7 +70,7 @@ cdef void cb_object_mouse_up(void *data, Evas *e,
cdef EventMouseUp event
event = EventMouseUp()
event._set_obj(e_inf)
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MOUSE_UP)
cb_object_dispatcher(<Object>data, event, enums.EVAS_CALLBACK_MOUSE_UP)
event._unset_obj()
@ -79,7 +79,7 @@ cdef void cb_object_mouse_move(void *data, Evas *e,
cdef EventMouseMove event
event = EventMouseMove()
event._set_obj(e_inf)
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MOUSE_MOVE)
cb_object_dispatcher(<Object>data, event, enums.EVAS_CALLBACK_MOUSE_MOVE)
event._unset_obj()
@ -88,7 +88,7 @@ cdef void cb_object_multi_down(void *data, Evas *e,
cdef EventMultiDown event
event = EventMultiDown()
event._set_obj(e_inf)
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MULTI_DOWN)
cb_object_dispatcher(<Object>data, event, enums.EVAS_CALLBACK_MULTI_DOWN)
event._unset_obj()
cdef void cb_object_multi_up(void *data, Evas *e,
@ -96,7 +96,7 @@ cdef void cb_object_multi_up(void *data, Evas *e,
cdef EventMultiUp event
event = EventMultiUp()
event._set_obj(e_inf)
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MULTI_UP)
cb_object_dispatcher(<Object>data, event, enums.EVAS_CALLBACK_MULTI_UP)
event._unset_obj()
@ -105,7 +105,7 @@ cdef void cb_object_multi_move(void *data, Evas *e,
cdef EventMultiMove event
event = EventMultiMove()
event._set_obj(e_inf)
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MULTI_MOVE)
cb_object_dispatcher(<Object>data, event, enums.EVAS_CALLBACK_MULTI_MOVE)
event._unset_obj()
@ -114,13 +114,13 @@ cdef void cb_object_mouse_wheel(void *data, Evas *e,
cdef EventMouseWheel event
event = EventMouseWheel()
event._set_obj(e_inf)
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MOUSE_WHEEL)
cb_object_dispatcher(<Object>data, event, enums.EVAS_CALLBACK_MOUSE_WHEEL)
event._unset_obj()
cdef void cb_object_free(void *data, Evas *e,
Evas_Object *obj, void *e_inf) with gil:
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_FREE)
cb_object_dispatcher2(<Object>data, enums.EVAS_CALLBACK_FREE)
cdef void cb_object_key_down(void *data, Evas *e,
@ -128,7 +128,7 @@ cdef void cb_object_key_down(void *data, Evas *e,
cdef EventKeyDown event
event = EventKeyDown()
event._set_obj(e_inf)
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_KEY_DOWN)
cb_object_dispatcher(<Object>data, event, enums.EVAS_CALLBACK_KEY_DOWN)
event._unset_obj()
@ -137,48 +137,48 @@ cdef void cb_object_key_up(void *data, Evas *e,
cdef EventKeyUp event
event = EventKeyUp()
event._set_obj(e_inf)
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_KEY_UP)
cb_object_dispatcher(<Object>data, event, enums.EVAS_CALLBACK_KEY_UP)
event._unset_obj()
cdef void cb_object_focus_in(void *data, Evas *e,
Evas_Object *obj, void *e_inf) with gil:
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_FOCUS_IN)
cb_object_dispatcher2(<Object>data, enums.EVAS_CALLBACK_FOCUS_IN)
cdef void cb_object_focus_out(void *data, Evas *e,
Evas_Object *obj, void *e_inf) with gil:
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_FOCUS_OUT)
cb_object_dispatcher2(<Object>data, enums.EVAS_CALLBACK_FOCUS_OUT)
cdef void cb_object_show(void *data, Evas *e,
Evas_Object *obj, void *e_inf) with gil:
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_SHOW)
cb_object_dispatcher2(<Object>data, enums.EVAS_CALLBACK_SHOW)
cdef void cb_object_hide(void *data, Evas *e,
Evas_Object *obj, void *e_inf) with gil:
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_HIDE)
cb_object_dispatcher2(<Object>data, enums.EVAS_CALLBACK_HIDE)
cdef void cb_object_move(void *data, Evas *e,
Evas_Object *obj, void *e_inf) with gil:
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_MOVE)
cb_object_dispatcher2(<Object>data, enums.EVAS_CALLBACK_MOVE)
cdef void cb_object_resize(void *data, Evas *e,
Evas_Object *obj, void *e_inf) with gil:
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_RESIZE)
cb_object_dispatcher2(<Object>data, enums.EVAS_CALLBACK_RESIZE)
cdef void cb_object_restack(void *data, Evas *e,
Evas_Object *obj, void *e_inf) with gil:
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_RESTACK)
cb_object_dispatcher2(<Object>data, enums.EVAS_CALLBACK_RESTACK)
cdef void cb_object_del(void *data, Evas *e,
Evas_Object *obj, void *e_inf) with gil:
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_DEL)
cb_object_dispatcher2(<Object>data, enums.EVAS_CALLBACK_DEL)
cdef void cb_object_hold(void *data, Evas *e,
@ -186,26 +186,26 @@ cdef void cb_object_hold(void *data, Evas *e,
cdef EventHold event
event = EventHold()
event._set_obj(e_inf)
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_HOLD)
cb_object_dispatcher(<Object>data, event, enums.EVAS_CALLBACK_HOLD)
event._unset_obj()
cdef void cb_object_changed_size_hints(void *data, Evas *e,
Evas_Object *obj, void *e_inf) with gil:
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_CHANGED_SIZE_HINTS)
cb_object_dispatcher2(<Object>data, enums.EVAS_CALLBACK_CHANGED_SIZE_HINTS)
cdef void cb_object_image_preloaded(void *data, Evas *e,
Evas_Object *obj, void *e_inf) with gil:
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_IMAGE_PRELOADED)
cb_object_dispatcher2(<Object>data, enums.EVAS_CALLBACK_IMAGE_PRELOADED)
cdef void cb_object_image_resize(void *data, Evas *e,
Evas_Object *obj, void *e_inf) with gil:
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_IMAGE_RESIZE)
cb_object_dispatcher2(<Object>data, enums.EVAS_CALLBACK_IMAGE_RESIZE)
cdef void cb_object_device_changed(void *data, Evas *e,
Evas_Object *obj, void *e_inf) with gil:
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_DEVICE_CHANGED)
cb_object_dispatcher2(<Object>data, enums.EVAS_CALLBACK_DEVICE_CHANGED)
cdef void cb_object_canvas_focus_in(void *data, Evas *e,
Evas_Object *obj, void *e_inf) with gil:
@ -236,7 +236,7 @@ cdef void cb_object_canvas_object_focus_out(void *data, Evas *e,
cdef void cb_object_image_unloaded(void *data, Evas *e,
Evas_Object *obj, void *e_inf) with gil:
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_IMAGE_UNLOADED)
cb_object_dispatcher2(<Object>data, enums.EVAS_CALLBACK_IMAGE_UNLOADED)
cdef void cb_object_canvas_render_pre(void *data, Evas *e,
Evas_Object *obj, void *e_inf) with gil:
@ -258,39 +258,39 @@ cdef void cb_object_viewport_resize(void *data, Evas *e,
cdef int evas_object_event_callbacks_len
cdef Evas_Object_Event_Cb evas_object_event_callbacks[36]
evas_object_event_callbacks_len = 36
evas_object_event_callbacks[<int>EVAS_CALLBACK_MOUSE_IN] = cb_object_mouse_in
evas_object_event_callbacks[<int>EVAS_CALLBACK_MOUSE_OUT] = cb_object_mouse_out
evas_object_event_callbacks[<int>EVAS_CALLBACK_MOUSE_DOWN] = cb_object_mouse_down
evas_object_event_callbacks[<int>EVAS_CALLBACK_MOUSE_UP] = cb_object_mouse_up
evas_object_event_callbacks[<int>EVAS_CALLBACK_MOUSE_MOVE] = cb_object_mouse_move
evas_object_event_callbacks[<int>EVAS_CALLBACK_MOUSE_WHEEL] = cb_object_mouse_wheel
evas_object_event_callbacks[<int>EVAS_CALLBACK_MULTI_DOWN] = cb_object_multi_down
evas_object_event_callbacks[<int>EVAS_CALLBACK_MULTI_UP] = cb_object_multi_up
evas_object_event_callbacks[<int>EVAS_CALLBACK_MULTI_MOVE] = cb_object_multi_move
evas_object_event_callbacks[<int>EVAS_CALLBACK_FREE] = cb_object_free
evas_object_event_callbacks[<int>EVAS_CALLBACK_KEY_DOWN] = cb_object_key_down
evas_object_event_callbacks[<int>EVAS_CALLBACK_KEY_UP] = cb_object_key_up
evas_object_event_callbacks[<int>EVAS_CALLBACK_FOCUS_IN] = cb_object_focus_in
evas_object_event_callbacks[<int>EVAS_CALLBACK_FOCUS_OUT] = cb_object_focus_out
evas_object_event_callbacks[<int>EVAS_CALLBACK_SHOW] = cb_object_show
evas_object_event_callbacks[<int>EVAS_CALLBACK_HIDE] = cb_object_hide
evas_object_event_callbacks[<int>EVAS_CALLBACK_MOVE] = cb_object_move
evas_object_event_callbacks[<int>EVAS_CALLBACK_RESIZE] = cb_object_resize
evas_object_event_callbacks[<int>EVAS_CALLBACK_RESTACK] = cb_object_restack
evas_object_event_callbacks[<int>EVAS_CALLBACK_DEL] = cb_object_del
evas_object_event_callbacks[<int>EVAS_CALLBACK_HOLD] = cb_object_hold
evas_object_event_callbacks[<int>EVAS_CALLBACK_CHANGED_SIZE_HINTS] = cb_object_changed_size_hints
evas_object_event_callbacks[<int>EVAS_CALLBACK_IMAGE_PRELOADED] = cb_object_image_preloaded
evas_object_event_callbacks[<int>EVAS_CALLBACK_CANVAS_FOCUS_IN] = cb_object_canvas_focus_in
evas_object_event_callbacks[<int>EVAS_CALLBACK_CANVAS_FOCUS_OUT] = cb_object_canvas_focus_out
evas_object_event_callbacks[<int>EVAS_CALLBACK_RENDER_FLUSH_PRE] = cb_object_render_flush_pre
evas_object_event_callbacks[<int>EVAS_CALLBACK_RENDER_FLUSH_POST] = cb_object_render_flush_post
evas_object_event_callbacks[<int>EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN] = cb_object_canvas_object_focus_in
evas_object_event_callbacks[<int>EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT] = cb_object_canvas_object_focus_out
evas_object_event_callbacks[<int>EVAS_CALLBACK_IMAGE_UNLOADED] = cb_object_image_unloaded
evas_object_event_callbacks[<int>EVAS_CALLBACK_RENDER_PRE] = cb_object_canvas_render_pre
evas_object_event_callbacks[<int>EVAS_CALLBACK_RENDER_POST] = cb_object_canvas_render_post
evas_object_event_callbacks[<int>EVAS_CALLBACK_IMAGE_RESIZE] = cb_object_image_resize
evas_object_event_callbacks[<int>EVAS_CALLBACK_DEVICE_CHANGED] = cb_object_device_changed
evas_object_event_callbacks[<int>EVAS_CALLBACK_AXIS_UPDATE] = cb_object_axis_update
evas_object_event_callbacks[<int>EVAS_CALLBACK_CANVAS_VIEWPORT_RESIZE] = cb_object_viewport_resize
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_MOUSE_IN] = cb_object_mouse_in
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_MOUSE_OUT] = cb_object_mouse_out
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_MOUSE_DOWN] = cb_object_mouse_down
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_MOUSE_UP] = cb_object_mouse_up
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_MOUSE_MOVE] = cb_object_mouse_move
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_MOUSE_WHEEL] = cb_object_mouse_wheel
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_MULTI_DOWN] = cb_object_multi_down
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_MULTI_UP] = cb_object_multi_up
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_MULTI_MOVE] = cb_object_multi_move
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_FREE] = cb_object_free
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_KEY_DOWN] = cb_object_key_down
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_KEY_UP] = cb_object_key_up
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_FOCUS_IN] = cb_object_focus_in
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_FOCUS_OUT] = cb_object_focus_out
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_SHOW] = cb_object_show
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_HIDE] = cb_object_hide
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_MOVE] = cb_object_move
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_RESIZE] = cb_object_resize
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_RESTACK] = cb_object_restack
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_DEL] = cb_object_del
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_HOLD] = cb_object_hold
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_CHANGED_SIZE_HINTS] = cb_object_changed_size_hints
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_IMAGE_PRELOADED] = cb_object_image_preloaded
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_CANVAS_FOCUS_IN] = cb_object_canvas_focus_in
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_CANVAS_FOCUS_OUT] = cb_object_canvas_focus_out
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_RENDER_FLUSH_PRE] = cb_object_render_flush_pre
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_RENDER_FLUSH_POST] = cb_object_render_flush_post
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN] = cb_object_canvas_object_focus_in
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT] = cb_object_canvas_object_focus_out
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_IMAGE_UNLOADED] = cb_object_image_unloaded
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_RENDER_PRE] = cb_object_canvas_render_pre
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_RENDER_POST] = cb_object_canvas_render_post
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_IMAGE_RESIZE] = cb_object_image_resize
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_DEVICE_CHANGED] = cb_object_device_changed
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_AXIS_UPDATE] = cb_object_axis_update
evas_object_event_callbacks[<int>enums.EVAS_CALLBACK_CANVAS_VIEWPORT_RESIZE] = cb_object_viewport_resize

View File

@ -206,7 +206,7 @@ cdef class Image(Object):
<const char *>filename if filename is not None else NULL,
<const char *>key if key is not None else NULL)
err = evas_object_image_load_error_get(self.obj)
if err != EVAS_LOAD_ERROR_NONE:
if err != enums.EVAS_LOAD_ERROR_NONE:
raise EvasLoadError(err, filename, key)
def file_set(self, filename, key=None):
@ -217,7 +217,7 @@ cdef class Image(Object):
<const char *>filename if filename is not None else NULL,
<const char *>key if key is not None else NULL)
err = evas_object_image_load_error_get(self.obj)
if err != EVAS_LOAD_ERROR_NONE:
if err != enums.EVAS_LOAD_ERROR_NONE:
raise EvasLoadError(err, filename, key)
def file_get(self):
@ -1328,19 +1328,19 @@ cdef class Image(Object):
def on_image_preloaded_add(self, func, *a, **k):
"""Same as event_callback_add(EVAS_CALLBACK_IMAGE_PRELOADED, ...)"""
self.event_callback_add(EVAS_CALLBACK_IMAGE_PRELOADED, func, *a, **k)
self.event_callback_add(enums.EVAS_CALLBACK_IMAGE_PRELOADED, func, *a, **k)
def on_image_preloaded_del(self, func):
"""Same as event_callback_del(EVAS_CALLBACK_IMAGE_PRELOADED, ...)"""
self.event_callback_del(EVAS_CALLBACK_IMAGE_PRELOADED, func)
self.event_callback_del(enums.EVAS_CALLBACK_IMAGE_PRELOADED, func)
def on_image_unloaded_add(self, func, *a, **k):
"""Same as event_callback_add(EVAS_CALLBACK_IMAGE_UNLOADED, ...)"""
self.event_callback_add(EVAS_CALLBACK_IMAGE_UNLOADED, func, *a, **k)
self.event_callback_add(enums.EVAS_CALLBACK_IMAGE_UNLOADED, func, *a, **k)
def on_image_unloaded_del(self, func):
"""Same as event_callback_del(EVAS_CALLBACK_IMAGE_UNLOADED, ...)"""
self.event_callback_del(EVAS_CALLBACK_IMAGE_UNLOADED, func)
self.event_callback_del(enums.EVAS_CALLBACK_IMAGE_UNLOADED, func)
_object_mapping_register("Evas_Image", Image)
@ -1376,7 +1376,7 @@ cdef class FilledImage(Image):
Image.__init__(self, canvas, **kargs)
w, h = self.size_get()
Image.fill_set(self, 0, 0, w, h)
evas_object_event_callback_add(self.obj, EVAS_CALLBACK_RESIZE,
evas_object_event_callback_add(self.obj, enums.EVAS_CALLBACK_RESIZE,
_cb_on_filled_image_resize, NULL)
def fill_set(self, int x, int y, int w, int h):

View File

@ -523,7 +523,7 @@ cdef class Smart(object):
if isinstance(name, unicode): name = PyUnicode_AsUTF8String(name)
cls_def.name = name
cls_def.version = EVAS_SMART_CLASS_VERSION
cls_def.version = enums.EVAS_SMART_CLASS_VERSION
if clipped:
evas_object_smart_clipped_smart_set(cls_def)
@ -704,7 +704,7 @@ cdef class SmartObject(Object):
self.obj = obj
eo_key_data_set(self.obj, "python-eo", <void *>self)
evas_object_event_callback_add(obj, EVAS_CALLBACK_FREE,
evas_object_event_callback_add(obj, enums.EVAS_CALLBACK_FREE,
obj_free_cb, <void *>self)
Py_INCREF(self)

View File

@ -0,0 +1,88 @@
cdef extern from "Ecore.h":
####################################################################
# Define (this are not really correct, but works)
#
cdef enum:
ECORE_EVENT_NONE
ECORE_EVENT_SIGNAL_USER
ECORE_EVENT_SIGNAL_HUP
ECORE_EVENT_SIGNAL_EXIT
ECORE_EVENT_SIGNAL_POWER
ECORE_EVENT_SIGNAL_REALTIME
ECORE_EVENT_MEMORY_STATE
ECORE_EVENT_POWER_STATE
ECORE_EVENT_LOCALE_CHANGED
ECORE_EVENT_HOSTNAME_CHANGED
ECORE_EVENT_SYSTEM_TIMEDATE_CHANGED
ECORE_EVENT_COUNT
ECORE_CALLBACK_CANCEL
ECORE_CALLBACK_RENEW
ECORE_CALLBACK_PASS_ON
ECORE_CALLBACK_DONE
ECORE_EXE_PRIORITY_INHERIT
int ECORE_EXE_EVENT_ADD
int ECORE_EXE_EVENT_DEL
int ECORE_EXE_EVENT_DATA
int ECORE_EXE_EVENT_ERROR
####################################################################
# Enums
#
ctypedef enum Ecore_Fd_Handler_Flags:
ECORE_FD_READ
ECORE_FD_WRITE
ECORE_FD_ERROR
ctypedef enum Ecore_Exe_Flags:
ECORE_EXE_NONE
ECORE_EXE_PIPE_READ
ECORE_EXE_PIPE_WRITE
ECORE_EXE_PIPE_ERROR
ECORE_EXE_PIPE_READ_LINE_BUFFERED
ECORE_EXE_PIPE_ERROR_LINE_BUFFERED
ECORE_EXE_PIPE_AUTO
ECORE_EXE_RESPAWN
ECORE_EXE_USE_SH
ECORE_EXE_NOT_LEADER
ECORE_EXE_TERM_WITH_PARENT
ctypedef enum Ecore_Pos_Map:
ECORE_POS_MAP_LINEAR
ECORE_POS_MAP_ACCELERATE
ECORE_POS_MAP_DECELERATE
ECORE_POS_MAP_SINUSOIDAL
ECORE_POS_MAP_ACCELERATE_FACTOR
ECORE_POS_MAP_DECELERATE_FACTOR
ECORE_POS_MAP_SINUSOIDAL_FACTOR
ECORE_POS_MAP_DIVISOR_INTERP
ECORE_POS_MAP_BOUNCE
ECORE_POS_MAP_SPRING
ECORE_POS_MAP_CUBIC_BEZIER
ctypedef enum Ecore_Animator_Source:
ECORE_ANIMATOR_SOURCE_TIMER
ECORE_ANIMATOR_SOURCE_CUSTOM
ctypedef enum Ecore_Poller_Type:
ECORE_POLLER_CORE
cdef extern from "Ecore_File.h":
ctypedef enum Ecore_File_Event:
ECORE_FILE_EVENT_NONE
ECORE_FILE_EVENT_CREATED_FILE
ECORE_FILE_EVENT_CREATED_DIRECTORY
ECORE_FILE_EVENT_DELETED_FILE
ECORE_FILE_EVENT_DELETED_DIRECTORY
ECORE_FILE_EVENT_DELETED_SELF
ECORE_FILE_EVENT_MODIFIED
ECORE_FILE_EVENT_CLOSED
ctypedef enum Ecore_File_Progress_Return:
ECORE_FILE_PROGRESS_CONTINUE
ECORE_FILE_PROGRESS_ABORT

View File

@ -18,91 +18,13 @@
from efl.eina cimport *
from efl.c_eo cimport Eo as cEo
from efl.eo cimport Eo
from efl.ecore.enums cimport Ecore_Fd_Handler_Flags, Ecore_Exe_Flags, \
Ecore_Pos_Map, Ecore_Animator_Source, Ecore_Poller_Type, \
Ecore_File_Event, Ecore_File_Progress_Return
cdef extern from "Ecore.h":
####################################################################
# Define (this are not really correct, but works)
#
cpdef enum:
ECORE_EVENT_NONE
ECORE_EVENT_SIGNAL_USER
ECORE_EVENT_SIGNAL_HUP
ECORE_EVENT_SIGNAL_EXIT
ECORE_EVENT_SIGNAL_POWER
ECORE_EVENT_SIGNAL_REALTIME
ECORE_EVENT_MEMORY_STATE
ECORE_EVENT_POWER_STATE
ECORE_EVENT_LOCALE_CHANGED
ECORE_EVENT_HOSTNAME_CHANGED
ECORE_EVENT_SYSTEM_TIMEDATE_CHANGED
ECORE_EVENT_COUNT
ECORE_CALLBACK_CANCEL
ECORE_CALLBACK_RENEW
ECORE_CALLBACK_PASS_ON
ECORE_CALLBACK_DONE
ECORE_EXE_PRIORITY_INHERIT
int ECORE_EXE_EVENT_ADD
int ECORE_EXE_EVENT_DEL
int ECORE_EXE_EVENT_DATA
int ECORE_EXE_EVENT_ERROR
####################################################################
# Enums
#
cpdef enum Ecore_Fd_Handler_Flags:
ECORE_FD_READ
ECORE_FD_WRITE
ECORE_FD_ERROR
ctypedef enum Ecore_Fd_Handler_Flags:
pass
cpdef enum Ecore_Exe_Flags:
ECORE_EXE_NONE
ECORE_EXE_PIPE_READ
ECORE_EXE_PIPE_WRITE
ECORE_EXE_PIPE_ERROR
ECORE_EXE_PIPE_READ_LINE_BUFFERED
ECORE_EXE_PIPE_ERROR_LINE_BUFFERED
ECORE_EXE_PIPE_AUTO
ECORE_EXE_RESPAWN
ECORE_EXE_USE_SH
ECORE_EXE_NOT_LEADER
ECORE_EXE_TERM_WITH_PARENT
ctypedef enum Ecore_Exe_Flags:
pass
cpdef enum Ecore_Pos_Map:
ECORE_POS_MAP_LINEAR
ECORE_POS_MAP_ACCELERATE
ECORE_POS_MAP_DECELERATE
ECORE_POS_MAP_SINUSOIDAL
ECORE_POS_MAP_ACCELERATE_FACTOR
ECORE_POS_MAP_DECELERATE_FACTOR
ECORE_POS_MAP_SINUSOIDAL_FACTOR
ECORE_POS_MAP_DIVISOR_INTERP
ECORE_POS_MAP_BOUNCE
ECORE_POS_MAP_SPRING
ECORE_POS_MAP_CUBIC_BEZIER
ctypedef enum Ecore_Pos_Map:
pass
cpdef enum Ecore_Animator_Source:
ECORE_ANIMATOR_SOURCE_TIMER
ECORE_ANIMATOR_SOURCE_CUSTOM
ctypedef enum Ecore_Animator_Source:
pass
cpdef enum Ecore_Poller_Type:
ECORE_POLLER_CORE
ctypedef enum Ecore_Poller_Type: