Switch enums to use the old system we had previously

This allows us to support Cython 0.23+
This commit is contained in:
Kai Huuhko 2016-08-16 09:54:59 +03:00
parent 4bd421562d
commit b2af779d7d
93 changed files with 3087 additions and 2268 deletions

View File

@ -257,6 +257,80 @@ from cpython cimport Py_INCREF, Py_DECREF
import traceback
import atexit
cimport 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:
@ -288,15 +362,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

@ -81,7 +81,7 @@ cdef class EventHandler(object):
raise TypeError("Parameter 'func' must be callable")
event_cls = _event_type_mapping.get(type, None)
if event_cls is None:
raise ValueError("Unknow Ecore_Event type %d" % type)
raise ValueError("Unknown Ecore_Event type %d" % type)
self.type = type
self.event_cls = event_cls
self.func = func
@ -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
@ -648,10 +648,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):
@ -662,7 +662,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))
@ -684,10 +684,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):
@ -698,7 +698,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))
@ -720,10 +720,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):
@ -734,7 +734,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))
@ -756,10 +756,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):
@ -770,7 +770,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))
@ -899,7 +899,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):
@ -908,7 +908,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):
@ -917,7 +917,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):
@ -926,4 +926,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)
@ -204,15 +204,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

@ -127,7 +127,7 @@ that headers such as "If-Modified-Since" are used.
.. data:: ECORE_CON_URL_TIME_NONE
Do not place time restrictions on the HTTP requests.
Do not place time restrictions on the HTTP requests.
.. data:: ECORE_CON_URL_TIME_IFMODSINCE
@ -173,6 +173,32 @@ import atexit
from efl.ecore cimport _event_mapping_register, _event_mapping_get, \
ecore_event_handler_add, ecore_event_handler_del
cimport efl.ecore_con.enums as enums
ECORE_CON_LOCAL_USER = enums.ECORE_CON_LOCAL_USER
ECORE_CON_LOCAL_SYSTEM = enums.ECORE_CON_LOCAL_SYSTEM
ECORE_CON_LOCAL_ABSTRACT = enums.ECORE_CON_LOCAL_ABSTRACT
ECORE_CON_REMOTE_TCP = enums.ECORE_CON_REMOTE_TCP
ECORE_CON_REMOTE_MCAST = enums.ECORE_CON_REMOTE_MCAST
ECORE_CON_REMOTE_UDP = enums.ECORE_CON_REMOTE_UDP
ECORE_CON_REMOTE_BROADCAST = enums.ECORE_CON_REMOTE_BROADCAST
ECORE_CON_REMOTE_NODELAY = enums.ECORE_CON_REMOTE_NODELAY
ECORE_CON_REMOTE_CORK = enums.ECORE_CON_REMOTE_CORK
ECORE_CON_USE_SSL2 = enums.ECORE_CON_USE_SSL2
ECORE_CON_USE_SSL3 = enums.ECORE_CON_USE_SSL3
ECORE_CON_USE_TLS = enums.ECORE_CON_USE_TLS
ECORE_CON_USE_MIXED = enums.ECORE_CON_USE_MIXED
ECORE_CON_LOAD_CERT = enums.ECORE_CON_LOAD_CERT
ECORE_CON_NO_PROXY = enums.ECORE_CON_NO_PROXY
ECORE_CON_SOCKET_ACTIVATE = enums.ECORE_CON_SOCKET_ACTIVATE
ECORE_CON_URL_TIME_NONE = enums.ECORE_CON_URL_TIME_NONE
ECORE_CON_URL_TIME_IFMODSINCE = enums.ECORE_CON_URL_TIME_IFMODSINCE
ECORE_CON_URL_TIME_IFUNMODSINCE = enums.ECORE_CON_URL_TIME_IFUNMODSINCE
ECORE_CON_URL_HTTP_VERSION_1_0 = enums.ECORE_CON_URL_HTTP_VERSION_1_0
ECORE_CON_URL_HTTP_VERSION_1_1 = enums.ECORE_CON_URL_HTTP_VERSION_1_1
cdef int _con_events_registered = 0

View File

@ -55,27 +55,27 @@ Ecore_Event_Modifier
.. data:: ECORE_EVENT_MODIFIER_SHIFT
.. data:: ECORE_EVENT_MODIFIER_CTRL
.. data:: ECORE_EVENT_MODIFIER_CTRL
.. data:: ECORE_EVENT_MODIFIER_ALT
.. data:: ECORE_EVENT_MODIFIER_ALT
.. data:: ECORE_EVENT_MODIFIER_WIN
.. data:: ECORE_EVENT_MODIFIER_WIN
.. data:: ECORE_EVENT_MODIFIER_SCROLL
.. data:: ECORE_EVENT_MODIFIER_SCROLL
.. data:: ECORE_EVENT_MODIFIER_NUM
.. data:: ECORE_EVENT_MODIFIER_NUM
.. data:: ECORE_EVENT_MODIFIER_CAPS
.. data:: ECORE_EVENT_MODIFIER_CAPS
.. data:: ECORE_EVENT_LOCK_SCROLL
.. data:: ECORE_EVENT_LOCK_SCROLL
.. data:: ECORE_EVENT_LOCK_NUM
.. data:: ECORE_EVENT_LOCK_NUM
.. data:: ECORE_EVENT_LOCK_CAPS
.. data:: ECORE_EVENT_LOCK_CAPS
.. data:: ECORE_EVENT_LOCK_SHIFT
.. data:: ECORE_EVENT_LOCK_SHIFT
.. data:: ECORE_EVENT_MODIFIER_ALTGR
.. data:: ECORE_EVENT_MODIFIER_ALTGR
Classes and Functions
@ -87,6 +87,7 @@ Classes and Functions
import atexit
import traceback
cimport efl.ecore_input.enums as enums
def init():
""" Initialize the Ecore Input library

View File

@ -20,6 +20,21 @@ from efl.utils.conversions cimport _ctouni
from efl.ecore cimport _event_mapping_register, _event_mapping_get
ECORE_EVENT_MODIFIER_SHIFT = enums.ECORE_EVENT_MODIFIER_SHIFT
ECORE_EVENT_MODIFIER_CTRL = enums.ECORE_EVENT_MODIFIER_CTRL
ECORE_EVENT_MODIFIER_ALT = enums.ECORE_EVENT_MODIFIER_ALT
ECORE_EVENT_MODIFIER_WIN = enums.ECORE_EVENT_MODIFIER_WIN
ECORE_EVENT_MODIFIER_SCROLL = enums.ECORE_EVENT_MODIFIER_SCROLL
ECORE_EVENT_MODIFIER_NUM = enums.ECORE_EVENT_MODIFIER_NUM
ECORE_EVENT_MODIFIER_CAPS = enums.ECORE_EVENT_MODIFIER_CAPS
ECORE_EVENT_LOCK_SCROLL = enums.ECORE_EVENT_LOCK_SCROLL
ECORE_EVENT_LOCK_NUM = enums.ECORE_EVENT_LOCK_NUM
ECORE_EVENT_LOCK_CAPS = enums.ECORE_EVENT_LOCK_CAPS
ECORE_EVENT_LOCK_SHIFT = enums.ECORE_EVENT_LOCK_SHIFT
ECORE_EVENT_MODIFIER_ALTGR = enums.ECORE_EVENT_MODIFIER_ALTGR
cdef int _input_events_registered = 0
cdef int _ecore_input_events_register() except 0:
@ -93,7 +108,7 @@ cdef class EventKey(Event):
:ivar str keyname: The key name
:ivar str key: The key symbol
:ivar str string:
:ivar int compose: Final string corresponding to the key symbol composed
:ivar int compose: Final string corresponding to the key symbol composed
:ivar int timestamp: Time when the event occurred.
:ivar int modifiers: :ref:`Ecore_Event_Modifier` The OR combination of modifiers key
:ivar bool same_screen: Same screen flag
@ -132,16 +147,16 @@ cdef class EventPoint:
cdef class EventMulti:
"""
:ivar int device: 0 if normal mouse, 1+ for other mouse-devices (eg multi-touch - other fingers)
:ivar double radius: radius of press point - radius_x and y if its an ellipse (radius is the average of the 2)
:ivar double radius_x:
:ivar double radius_y:
:ivar double pressure: 1.0 == normal, > 1.0 == more, 0.0 == none
:ivar double angle: relative to perpendicular (0.0 == perpendicular), in degrees
:ivar double x: with sub-pixel precision, if available
:ivar double y: with sub-pixel precision, if available
:ivar double root_x: with sub-pixel precision, if available
:ivar double root_y: with sub-pixel precision, if available
:ivar int device: 0 if normal mouse, 1+ for other mouse-devices (eg multi-touch - other fingers)
:ivar double radius: radius of press point - radius_x and y if its an ellipse (radius is the average of the 2)
:ivar double radius_x:
:ivar double radius_y:
:ivar double pressure: 1.0 == normal, > 1.0 == more, 0.0 == none
:ivar double angle: relative to perpendicular (0.0 == perpendicular), in degrees
:ivar double x: with sub-pixel precision, if available
:ivar double y: with sub-pixel precision, if available
:ivar double root_x: with sub-pixel precision, if available
:ivar double root_y: with sub-pixel precision, if available
"""
def __init__(self, int device, double radius, double radius_x, double radius_y,
double pressure, double angle, double x, double y,
@ -173,9 +188,9 @@ cdef class EventMouseButton(Event):
:ivar int buttons: The button that was used
:ivar bool double_click: Double click event
:ivar bool triple_click: Triple click event
:ivar bool same_screen: Same screen flag
:ivar int x: x coordinate relative to window where event happened
:ivar int y: y coordinate relative to window where event happened
:ivar bool same_screen: Same screen flag
:ivar int x: x coordinate relative to window where event happened
:ivar int y: y coordinate relative to window where event happened
:ivar EventPoint root: :class:`EventPoint` Coordinates relative to root window
"""
@ -211,9 +226,9 @@ cdef class EventMouseMove(Event):
:ivar int timestamp: Time when the event occurred
:ivar int modifiers: :ref:`Ecore_Event_Modifier` The OR combination of modifiers key
:ivar bool same_screen: Same screen flag
:ivar int x: x coordinate relative to window where event happened
:ivar int y: y coordinate relative to window where event happened
:ivar bool same_screen: Same screen flag
:ivar int x: x coordinate relative to window where event happened
:ivar int y: y coordinate relative to window where event happened
:ivar EventPoint root: Coordinates relative to root window
"""
@ -246,8 +261,8 @@ cdef class EventMouseIO(Event):
:ivar int timestamp: Time when the event occurred
:ivar int modifiers: :ref:`Ecore_Event_Modifier` The OR combination of modifiers key
:ivar int x: x coordinate relative to window where event happened
:ivar int y: y coordinate relative to window where event happened
:ivar int x: x coordinate relative to window where event happened
:ivar int y: y coordinate relative to window where event happened
"""
cdef int _set_obj(self, void *o) except 0:
@ -271,12 +286,12 @@ cdef class EventMouseWheel(Event):
:ivar int timestamp: Time when the event occurred
:ivar int modifiers: :ref:`Ecore_Event_Modifier` The OR combination of modifiers key
:ivar bool same_screen: Same screen flag
:ivar int direction: Orientation of the wheel (horizontal/vertical)
:ivar int z: Value of the wheel event (+1/-1)
:ivar int x: x coordinate relative to window where event happened
:ivar int y: y coordinate relative to window where event happened
:ivar EventPoint root: Coordinates relative to root window.
:ivar bool same_screen: Same screen flag
:ivar int direction: Orientation of the wheel (horizontal/vertical)
:ivar int z: Value of the wheel event (+1/-1)
:ivar int x: x coordinate relative to window where event happened
:ivar int y: y coordinate relative to window where event happened
:ivar EventPoint root: Coordinates relative to root window.
"""
cdef int _set_obj(self, void *o) except 0:

View File

@ -45,6 +45,135 @@ import traceback
import warnings
import atexit
cimport efl.edje.enums as enums
EDJE_MESSAGE_NONE = enums.EDJE_MESSAGE_NONE
EDJE_MESSAGE_SIGNAL = enums.EDJE_MESSAGE_SIGNAL
EDJE_MESSAGE_STRING = enums.EDJE_MESSAGE_STRING
EDJE_MESSAGE_INT = enums.EDJE_MESSAGE_INT
EDJE_MESSAGE_FLOAT = enums.EDJE_MESSAGE_FLOAT
EDJE_MESSAGE_STRING_SET = enums.EDJE_MESSAGE_STRING_SET
EDJE_MESSAGE_INT_SET = enums.EDJE_MESSAGE_INT_SET
EDJE_MESSAGE_FLOAT_SET = enums.EDJE_MESSAGE_FLOAT_SET
EDJE_MESSAGE_STRING_INT = enums.EDJE_MESSAGE_STRING_INT
EDJE_MESSAGE_STRING_FLOAT = enums.EDJE_MESSAGE_STRING_FLOAT
EDJE_MESSAGE_STRING_INT_SET = enums.EDJE_MESSAGE_STRING_INT_SET
EDJE_MESSAGE_STRING_FLOAT_SET = enums.EDJE_MESSAGE_STRING_FLOAT_SET
EDJE_ASPECT_CONTROL_NONE = enums.EDJE_ASPECT_CONTROL_NONE
EDJE_ASPECT_CONTROL_NEITHER = enums.EDJE_ASPECT_CONTROL_NEITHER
EDJE_ASPECT_CONTROL_HORIZONTAL = enums.EDJE_ASPECT_CONTROL_HORIZONTAL
EDJE_ASPECT_CONTROL_VERTICAL = enums.EDJE_ASPECT_CONTROL_VERTICAL
EDJE_ASPECT_CONTROL_BOTH = enums.EDJE_ASPECT_CONTROL_BOTH
EDJE_DRAG_DIR_NONE = enums.EDJE_DRAG_DIR_NONE
EDJE_DRAG_DIR_X = enums.EDJE_DRAG_DIR_X
EDJE_DRAG_DIR_Y = enums.EDJE_DRAG_DIR_Y
EDJE_DRAG_DIR_XY = enums.EDJE_DRAG_DIR_XY
EDJE_LOAD_ERROR_NONE = enums.EDJE_LOAD_ERROR_NONE
EDJE_LOAD_ERROR_GENERIC = enums.EDJE_LOAD_ERROR_GENERIC
EDJE_LOAD_ERROR_DOES_NOT_EXIST = enums.EDJE_LOAD_ERROR_DOES_NOT_EXIST
EDJE_LOAD_ERROR_PERMISSION_DENIED = enums.EDJE_LOAD_ERROR_PERMISSION_DENIED
EDJE_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED = enums.EDJE_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED
EDJE_LOAD_ERROR_CORRUPT_FILE = enums.EDJE_LOAD_ERROR_CORRUPT_FILE
EDJE_LOAD_ERROR_UNKNOWN_FORMAT = enums.EDJE_LOAD_ERROR_UNKNOWN_FORMAT
EDJE_LOAD_ERROR_INCOMPATIBLE_FILE = enums.EDJE_LOAD_ERROR_INCOMPATIBLE_FILE
EDJE_LOAD_ERROR_UNKNOWN_COLLECTION = enums.EDJE_LOAD_ERROR_UNKNOWN_COLLECTION
EDJE_LOAD_ERROR_RECURSIVE_REFERENCE = enums.EDJE_LOAD_ERROR_RECURSIVE_REFERENCE
EDJE_PART_TYPE_NONE = enums.EDJE_PART_TYPE_NONE
EDJE_PART_TYPE_RECTANGLE = enums.EDJE_PART_TYPE_RECTANGLE
EDJE_PART_TYPE_TEXT = enums.EDJE_PART_TYPE_TEXT
EDJE_PART_TYPE_IMAGE = enums.EDJE_PART_TYPE_IMAGE
EDJE_PART_TYPE_SWALLOW = enums.EDJE_PART_TYPE_SWALLOW
EDJE_PART_TYPE_TEXTBLOCK = enums.EDJE_PART_TYPE_TEXTBLOCK
EDJE_PART_TYPE_GRADIENT = enums.EDJE_PART_TYPE_GRADIENT
EDJE_PART_TYPE_GROUP = enums.EDJE_PART_TYPE_GROUP
EDJE_PART_TYPE_BOX = enums.EDJE_PART_TYPE_BOX
EDJE_PART_TYPE_TABLE = enums.EDJE_PART_TYPE_TABLE
EDJE_PART_TYPE_EXTERNAL = enums.EDJE_PART_TYPE_EXTERNAL
EDJE_PART_TYPE_SPACER = enums.EDJE_PART_TYPE_SPACER
EDJE_PART_TYPE_MESH_NODE = enums.EDJE_PART_TYPE_MESH_NODE
EDJE_PART_TYPE_LIGHT = enums.EDJE_PART_TYPE_LIGHT
EDJE_PART_TYPE_CAMERA = enums.EDJE_PART_TYPE_CAMERA
EDJE_PART_TYPE_LAST = enums.EDJE_PART_TYPE_LAST
EDJE_TEXT_EFFECT_NONE = enums.EDJE_TEXT_EFFECT_NONE
EDJE_TEXT_EFFECT_PLAIN = enums.EDJE_TEXT_EFFECT_PLAIN
EDJE_TEXT_EFFECT_OUTLINE = enums.EDJE_TEXT_EFFECT_OUTLINE
EDJE_TEXT_EFFECT_SOFT_OUTLINE = enums.EDJE_TEXT_EFFECT_SOFT_OUTLINE
EDJE_TEXT_EFFECT_SHADOW = enums.EDJE_TEXT_EFFECT_SHADOW
EDJE_TEXT_EFFECT_SOFT_SHADOW = enums.EDJE_TEXT_EFFECT_SOFT_SHADOW
EDJE_TEXT_EFFECT_OUTLINE_SHADOW = enums.EDJE_TEXT_EFFECT_OUTLINE_SHADOW
EDJE_TEXT_EFFECT_OUTLINE_SOFT_SHADOW = enums.EDJE_TEXT_EFFECT_OUTLINE_SOFT_SHADOW
EDJE_TEXT_EFFECT_FAR_SHADOW = enums.EDJE_TEXT_EFFECT_FAR_SHADOW
EDJE_TEXT_EFFECT_FAR_SOFT_SHADOW = enums.EDJE_TEXT_EFFECT_FAR_SOFT_SHADOW
EDJE_TEXT_EFFECT_GLOW = enums.EDJE_TEXT_EFFECT_GLOW
EDJE_TEXT_EFFECT_LAST = enums.EDJE_TEXT_EFFECT_LAST
EDJE_TEXT_EFFECT_SHADOW_DIRECTION_BOTTOM_RIGHT = enums.EDJE_TEXT_EFFECT_SHADOW_DIRECTION_BOTTOM_RIGHT
EDJE_TEXT_EFFECT_SHADOW_DIRECTION_BOTTOM = enums.EDJE_TEXT_EFFECT_SHADOW_DIRECTION_BOTTOM
EDJE_TEXT_EFFECT_SHADOW_DIRECTION_BOTTOM_LEFT = enums.EDJE_TEXT_EFFECT_SHADOW_DIRECTION_BOTTOM_LEFT
EDJE_TEXT_EFFECT_SHADOW_DIRECTION_LEFT = enums.EDJE_TEXT_EFFECT_SHADOW_DIRECTION_LEFT
EDJE_TEXT_EFFECT_SHADOW_DIRECTION_TOP_LEFT = enums.EDJE_TEXT_EFFECT_SHADOW_DIRECTION_TOP_LEFT
EDJE_TEXT_EFFECT_SHADOW_DIRECTION_TOP = enums.EDJE_TEXT_EFFECT_SHADOW_DIRECTION_TOP
EDJE_TEXT_EFFECT_SHADOW_DIRECTION_TOP_RIGHT = enums.EDJE_TEXT_EFFECT_SHADOW_DIRECTION_TOP_RIGHT
EDJE_TEXT_EFFECT_SHADOW_DIRECTION_RIGHT = enums.EDJE_TEXT_EFFECT_SHADOW_DIRECTION_RIGHT
EDJE_ACTION_TYPE_NONE = enums.EDJE_ACTION_TYPE_NONE
EDJE_ACTION_TYPE_STATE_SET = enums.EDJE_ACTION_TYPE_STATE_SET
EDJE_ACTION_TYPE_ACTION_STOP = enums.EDJE_ACTION_TYPE_ACTION_STOP
EDJE_ACTION_TYPE_SIGNAL_EMIT = enums.EDJE_ACTION_TYPE_SIGNAL_EMIT
EDJE_ACTION_TYPE_DRAG_VAL_SET = enums.EDJE_ACTION_TYPE_DRAG_VAL_SET
EDJE_ACTION_TYPE_DRAG_VAL_STEP = enums.EDJE_ACTION_TYPE_DRAG_VAL_STEP
EDJE_ACTION_TYPE_DRAG_VAL_PAGE = enums.EDJE_ACTION_TYPE_DRAG_VAL_PAGE
EDJE_ACTION_TYPE_SCRIPT = enums.EDJE_ACTION_TYPE_SCRIPT
EDJE_ACTION_TYPE_FOCUS_SET = enums.EDJE_ACTION_TYPE_FOCUS_SET
EDJE_ACTION_TYPE_RESERVED00 = enums.EDJE_ACTION_TYPE_RESERVED00
EDJE_ACTION_TYPE_FOCUS_OBJECT = enums.EDJE_ACTION_TYPE_FOCUS_OBJECT
EDJE_ACTION_TYPE_PARAM_COPY = enums.EDJE_ACTION_TYPE_PARAM_COPY
EDJE_ACTION_TYPE_PARAM_SET = enums.EDJE_ACTION_TYPE_PARAM_SET
EDJE_ACTION_TYPE_SOUND_SAMPLE = enums.EDJE_ACTION_TYPE_SOUND_SAMPLE
EDJE_ACTION_TYPE_SOUND_TONE = enums.EDJE_ACTION_TYPE_SOUND_TONE
EDJE_ACTION_TYPE_PHYSICS_IMPULSE = enums.EDJE_ACTION_TYPE_PHYSICS_IMPULSE
EDJE_ACTION_TYPE_PHYSICS_TORQUE_IMPULSE = enums.EDJE_ACTION_TYPE_PHYSICS_TORQUE_IMPULSE
EDJE_ACTION_TYPE_PHYSICS_FORCE = enums.EDJE_ACTION_TYPE_PHYSICS_FORCE
EDJE_ACTION_TYPE_PHYSICS_TORQUE = enums.EDJE_ACTION_TYPE_PHYSICS_TORQUE
EDJE_ACTION_TYPE_PHYSICS_FORCES_CLEAR = enums.EDJE_ACTION_TYPE_PHYSICS_FORCES_CLEAR
EDJE_ACTION_TYPE_PHYSICS_VEL_SET = enums.EDJE_ACTION_TYPE_PHYSICS_VEL_SET
EDJE_ACTION_TYPE_PHYSICS_ANG_VEL_SET = enums.EDJE_ACTION_TYPE_PHYSICS_ANG_VEL_SET
EDJE_ACTION_TYPE_PHYSICS_STOP = enums.EDJE_ACTION_TYPE_PHYSICS_STOP
EDJE_ACTION_TYPE_PHYSICS_ROT_SET = enums.EDJE_ACTION_TYPE_PHYSICS_ROT_SET
EDJE_ACTION_TYPE_VIBRATION_SAMPLE = enums.EDJE_ACTION_TYPE_VIBRATION_SAMPLE
EDJE_ACTION_TYPE_LAST = enums.EDJE_ACTION_TYPE_LAST
EDJE_TWEEN_MODE_NONE = enums.EDJE_TWEEN_MODE_NONE
EDJE_TWEEN_MODE_LINEAR = enums.EDJE_TWEEN_MODE_LINEAR
EDJE_TWEEN_MODE_SINUSOIDAL = enums.EDJE_TWEEN_MODE_SINUSOIDAL
EDJE_TWEEN_MODE_ACCELERATE = enums.EDJE_TWEEN_MODE_ACCELERATE
EDJE_TWEEN_MODE_DECELERATE = enums.EDJE_TWEEN_MODE_DECELERATE
EDJE_TWEEN_MODE_ACCELERATE_FACTOR = enums.EDJE_TWEEN_MODE_ACCELERATE_FACTOR
EDJE_TWEEN_MODE_DECELERATE_FACTOR = enums.EDJE_TWEEN_MODE_DECELERATE_FACTOR
EDJE_TWEEN_MODE_SINUSOIDAL_FACTOR = enums.EDJE_TWEEN_MODE_SINUSOIDAL_FACTOR
EDJE_TWEEN_MODE_DIVISOR_INTERP = enums.EDJE_TWEEN_MODE_DIVISOR_INTERP
EDJE_TWEEN_MODE_BOUNCE = enums.EDJE_TWEEN_MODE_BOUNCE
EDJE_TWEEN_MODE_SPRING = enums.EDJE_TWEEN_MODE_SPRING
EDJE_TWEEN_MODE_CUBIC_BEZIER = enums.EDJE_TWEEN_MODE_CUBIC_BEZIER
EDJE_TWEEN_MODE_LAST = enums.EDJE_TWEEN_MODE_LAST
EDJE_TWEEN_MODE_MASK = enums.EDJE_TWEEN_MODE_MASK
EDJE_TWEEN_MODE_OPT_FROM_CURRENT = enums.EDJE_TWEEN_MODE_OPT_FROM_CURRENT
EDJE_EXTERNAL_PARAM_TYPE_INT = enums.EDJE_EXTERNAL_PARAM_TYPE_INT
EDJE_EXTERNAL_PARAM_TYPE_DOUBLE = enums.EDJE_EXTERNAL_PARAM_TYPE_DOUBLE
EDJE_EXTERNAL_PARAM_TYPE_STRING = enums.EDJE_EXTERNAL_PARAM_TYPE_STRING
EDJE_EXTERNAL_PARAM_TYPE_BOOL = enums.EDJE_EXTERNAL_PARAM_TYPE_BOOL
EDJE_EXTERNAL_PARAM_TYPE_CHOICE = enums.EDJE_EXTERNAL_PARAM_TYPE_CHOICE
EDJE_EXTERNAL_PARAM_TYPE_MAX = enums.EDJE_EXTERNAL_PARAM_TYPE_MAX
EDJE_INPUT_HINT_NONE = enums.EDJE_INPUT_HINT_NONE
EDJE_INPUT_HINT_AUTO_COMPLETE = enums.EDJE_INPUT_HINT_AUTO_COMPLETE
EDJE_INPUT_HINT_SENSITIVE_DATA = enums.EDJE_INPUT_HINT_SENSITIVE_DATA
def init():
cdef int r = edje_init()

View File

@ -60,15 +60,15 @@ cdef class ExternalParam:
def __get__(self):
if self.obj == NULL:
raise ValueError("Object uninitialized")
if self.obj.type == <int>EDJE_EXTERNAL_PARAM_TYPE_INT:
if self.obj.type == <int>enums.EDJE_EXTERNAL_PARAM_TYPE_INT:
return self.obj.i
elif self.obj.type == <int>EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
elif self.obj.type == <int>enums.EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
return self.obj.d
elif self.obj.type == <int>EDJE_EXTERNAL_PARAM_TYPE_STRING or \
self.obj.type == <int>EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
elif self.obj.type == <int>enums.EDJE_EXTERNAL_PARAM_TYPE_STRING or \
self.obj.type == <int>enums.EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
if self.obj.s != NULL:
return self.obj.s
elif self.obj.type == <int>EDJE_EXTERNAL_PARAM_TYPE_BOOL:
elif self.obj.type == <int>enums.EDJE_EXTERNAL_PARAM_TYPE_BOOL:
return bool(self.obj.i)
@ -308,15 +308,15 @@ cdef class ExternalParamInfoChoice(ExternalParamInfo):
cdef ExternalParamInfo ExternalParamInfo_from_ptr(type, Edje_External_Param_Info *ptr):
cdef ExternalParamInfo p
if ptr.type == <int>EDJE_EXTERNAL_PARAM_TYPE_INT:
if ptr.type == <int>enums.EDJE_EXTERNAL_PARAM_TYPE_INT:
p = ExternalParamInfoInt()
elif ptr.type == <int>EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
elif ptr.type == <int>enums.EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
p = ExternalParamInfoDouble()
elif ptr.type == <int>EDJE_EXTERNAL_PARAM_TYPE_STRING:
elif ptr.type == <int>enums.EDJE_EXTERNAL_PARAM_TYPE_STRING:
p = ExternalParamInfoString()
elif ptr.type == <int>EDJE_EXTERNAL_PARAM_TYPE_BOOL:
elif ptr.type == <int>enums.EDJE_EXTERNAL_PARAM_TYPE_BOOL:
p = ExternalParamInfoBool()
elif ptr.type == <int>EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
elif ptr.type == <int>enums.EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
p = ExternalParamInfoChoice()
else:
msg = "Don't know how to convert parameter %s of type %s" % \

View File

@ -345,29 +345,29 @@ cdef Message MessageStringFloatSet_from_ptr(void *msg):
cdef Message Message_from_type(Edje_Message_Type type, int id, void *msg):
cdef Message m
if type == <int>EDJE_MESSAGE_NONE:
if type == <int>enums.EDJE_MESSAGE_NONE:
return None
elif type == <int>EDJE_MESSAGE_SIGNAL:
elif type == <int>enums.EDJE_MESSAGE_SIGNAL:
m = MessageSignal()
elif type == <int>EDJE_MESSAGE_STRING:
elif type == <int>enums.EDJE_MESSAGE_STRING:
m = MessageString_from_ptr(msg)
elif type == <int>EDJE_MESSAGE_INT:
elif type == <int>enums.EDJE_MESSAGE_INT:
m = MessageInt_from_ptr(msg)
elif type == <int>EDJE_MESSAGE_FLOAT:
elif type == <int>enums.EDJE_MESSAGE_FLOAT:
m = MessageFloat_from_ptr(msg)
elif type == <int>EDJE_MESSAGE_STRING_SET:
elif type == <int>enums.EDJE_MESSAGE_STRING_SET:
m = MessageStringSet_from_ptr(msg)
elif type == <int>EDJE_MESSAGE_INT_SET:
elif type == <int>enums.EDJE_MESSAGE_INT_SET:
m = MessageIntSet_from_ptr(msg)
elif type == <int>EDJE_MESSAGE_FLOAT_SET:
elif type == <int>enums.EDJE_MESSAGE_FLOAT_SET:
m = MessageFloatSet_from_ptr(msg)
elif type == <int>EDJE_MESSAGE_STRING_INT:
elif type == <int>enums.EDJE_MESSAGE_STRING_INT:
m = MessageStringInt_from_ptr(msg)
elif type == <int>EDJE_MESSAGE_STRING_FLOAT:
elif type == <int>enums.EDJE_MESSAGE_STRING_FLOAT:
m = MessageStringFloat_from_ptr(msg)
elif type == <int>EDJE_MESSAGE_STRING_INT_SET :
elif type == <int>enums.EDJE_MESSAGE_STRING_INT_SET :
m = MessageStringIntSet_from_ptr(msg)
elif type == <int>EDJE_MESSAGE_STRING_FLOAT_SET :
elif type == <int>enums.EDJE_MESSAGE_STRING_FLOAT_SET :
m = MessageStringFloatSet_from_ptr(msg)
m._type = type

View File

@ -60,23 +60,23 @@ cdef void signal_cb(void *data, Evas_Object *obj,
class EdjeLoadError(Exception):
def __init__(self, int code, char *file, char *group):
if code == EDJE_LOAD_ERROR_NONE:
if code == enums.EDJE_LOAD_ERROR_NONE:
msg = "No error"
elif code == EDJE_LOAD_ERROR_GENERIC:
elif code == enums.EDJE_LOAD_ERROR_GENERIC:
msg = "Generic error"
elif code == EDJE_LOAD_ERROR_DOES_NOT_EXIST:
elif code == enums.EDJE_LOAD_ERROR_DOES_NOT_EXIST:
msg = "Does not exist"
elif code == EDJE_LOAD_ERROR_PERMISSION_DENIED:
elif code == enums.EDJE_LOAD_ERROR_PERMISSION_DENIED:
msg = "Permission denied"
elif code == EDJE_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED:
elif code == enums.EDJE_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED:
msg = "Resource allocation failed"
elif code == EDJE_LOAD_ERROR_CORRUPT_FILE:
elif code == enums.EDJE_LOAD_ERROR_CORRUPT_FILE:
msg = "Corrupt file"
elif code == EDJE_LOAD_ERROR_UNKNOWN_FORMAT:
elif code == enums.EDJE_LOAD_ERROR_UNKNOWN_FORMAT:
msg = "Unknown format"
elif code == EDJE_LOAD_ERROR_INCOMPATIBLE_FILE:
elif code == enums.EDJE_LOAD_ERROR_INCOMPATIBLE_FILE:
msg = "Incompatible file"
elif code == EDJE_LOAD_ERROR_UNKNOWN_COLLECTION:
elif code == enums.EDJE_LOAD_ERROR_UNKNOWN_COLLECTION:
msg = "Unknown collection"
self.code = code
@ -400,7 +400,7 @@ cdef class Edje(Object):
text_class = PyUnicode_AsUTF8String(text_class)
edje_object_text_class_del(self.obj,
<const char *>text_class if text_class is not None else NULL)
def size_class_set(self, size_class, int minw, int minh, int maxw, int maxh):
"""Sets the object size class.
@ -419,7 +419,7 @@ cdef class Edje(Object):
:rtype: bool
.. versionadded:: 1.17
"""
if isinstance(size_class, unicode):
size_class = PyUnicode_AsUTF8String(size_class)
@ -852,13 +852,13 @@ cdef class Edje(Object):
p.name = c_param
if isinstance(value, bool): # bool is int, so keep it before!
p.type = EDJE_EXTERNAL_PARAM_TYPE_BOOL
p.type = enums.EDJE_EXTERNAL_PARAM_TYPE_BOOL
p.i = value
elif isinstance(value, int):
p.type = EDJE_EXTERNAL_PARAM_TYPE_INT
p.type = enums.EDJE_EXTERNAL_PARAM_TYPE_INT
p.i = value
elif isinstance(value, float):
p.type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE
p.type = enums.EDJE_EXTERNAL_PARAM_TYPE_DOUBLE
p.d = value
elif isinstance(value, (str, unicode)):
# may be STRING or CHOICE
@ -904,19 +904,19 @@ cdef class Edje(Object):
p.name = c_param
p.type = edje_object_part_external_param_type_get(self.obj, c_part, c_param)
if p.type >= <int>EDJE_EXTERNAL_PARAM_TYPE_MAX:
if p.type >= <int>enums.EDJE_EXTERNAL_PARAM_TYPE_MAX:
return None
if not edje_object_part_external_param_get(self.obj, c_part, &p):
return None
if p.type == <int>EDJE_EXTERNAL_PARAM_TYPE_BOOL:
if p.type == <int>enums.EDJE_EXTERNAL_PARAM_TYPE_BOOL:
return bool(p.i)
elif p.type == <int>EDJE_EXTERNAL_PARAM_TYPE_INT:
elif p.type == <int>enums.EDJE_EXTERNAL_PARAM_TYPE_INT:
return p.i
elif p.type == <int>EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
elif p.type == <int>enums.EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
return p.d
elif p.type == <int>EDJE_EXTERNAL_PARAM_TYPE_STRING or \
p.type == <int>EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
elif p.type == <int>enums.EDJE_EXTERNAL_PARAM_TYPE_STRING or \
p.type == <int>enums.EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
return _ctouni(p.s)
def part_box_append(self, part, Object obj):
@ -1199,18 +1199,18 @@ cdef class Edje(Object):
cdef void message_send_int(self, int id, int data):
cdef Edje_Message_Int m
m.val = data
edje_object_message_send(self.obj, EDJE_MESSAGE_INT, id, <void*>&m)
edje_object_message_send(self.obj, enums.EDJE_MESSAGE_INT, id, <void*>&m)
cdef void message_send_float(self, int id, float data):
cdef Edje_Message_Float m
m.val = data
edje_object_message_send(self.obj, EDJE_MESSAGE_FLOAT, id, <void*>&m)
edje_object_message_send(self.obj, enums.EDJE_MESSAGE_FLOAT, id, <void*>&m)
cdef void message_send_str(self, int id, data):
cdef Edje_Message_String m
if isinstance(data, unicode): data = PyUnicode_AsUTF8String(data)
m.str = <char *>data if data is not None else NULL
edje_object_message_send(self.obj, EDJE_MESSAGE_STRING, id, <void*>&m)
edje_object_message_send(self.obj, enums.EDJE_MESSAGE_STRING, id, <void*>&m)
cdef void message_send_str_set(self, int id, data):
cdef int count, i
@ -1226,7 +1226,7 @@ cdef class Edje(Object):
m.str[i] = s
i += 1
edje_object_message_send(self.obj, EDJE_MESSAGE_STRING_SET, id,
edje_object_message_send(self.obj, enums.EDJE_MESSAGE_STRING_SET, id,
<void*>m)
PyMem_Free(m)
@ -1235,7 +1235,7 @@ cdef class Edje(Object):
if isinstance(s, unicode): s = PyUnicode_AsUTF8String(s)
m.str = <char *>s if s is not None else NULL
m.val = i
edje_object_message_send(self.obj, EDJE_MESSAGE_STRING_INT, id,
edje_object_message_send(self.obj, enums.EDJE_MESSAGE_STRING_INT, id,
<void*>&m)
cdef void message_send_str_float(self, int id, s, float f):
@ -1243,7 +1243,7 @@ cdef class Edje(Object):
if isinstance(s, unicode): s = PyUnicode_AsUTF8String(s)
m.str = <char *>s if s is not None else NULL
m.val = f
edje_object_message_send(self.obj, EDJE_MESSAGE_STRING_FLOAT, id,
edje_object_message_send(self.obj, enums.EDJE_MESSAGE_STRING_FLOAT, id,
<void*>&m)
cdef void message_send_str_int_set(self, int id, s, data):
@ -1262,7 +1262,7 @@ cdef class Edje(Object):
m.val[i] = f
i += 1
edje_object_message_send(self.obj, EDJE_MESSAGE_STRING_INT_SET, id,
edje_object_message_send(self.obj, enums.EDJE_MESSAGE_STRING_INT_SET, id,
<void*>m)
PyMem_Free(m)
@ -1283,7 +1283,7 @@ cdef class Edje(Object):
m.val[i] = f
i += 1
edje_object_message_send(self.obj, EDJE_MESSAGE_STRING_FLOAT_SET, id,
edje_object_message_send(self.obj, enums.EDJE_MESSAGE_STRING_FLOAT_SET, id,
<void*>m)
PyMem_Free(m)
@ -1301,7 +1301,7 @@ cdef class Edje(Object):
m.val[i] = f
i += 1
edje_object_message_send(self.obj, EDJE_MESSAGE_INT_SET, id,
edje_object_message_send(self.obj, enums.EDJE_MESSAGE_INT_SET, id,
<void*>m)
PyMem_Free(m)
@ -1319,7 +1319,7 @@ cdef class Edje(Object):
m.val[i] = f
i += 1
edje_object_message_send(self.obj, EDJE_MESSAGE_FLOAT_SET, id,
edje_object_message_send(self.obj, enums.EDJE_MESSAGE_FLOAT_SET, id,
<void*>m)
PyMem_Free(m)

View File

@ -26,6 +26,12 @@ from efl.evas cimport Canvas
from efl.edje cimport Edje_Part_Type, Edje, ExternalParam_from_ptr
from efl.edje import EDJE_PART_TYPE_EXTERNAL
cimport efl.edje_edit.enums as enums
EDJE_EDIT_IMAGE_COMP_RAW = enums.EDJE_EDIT_IMAGE_COMP_RAW
EDJE_EDIT_IMAGE_COMP_USER = enums.EDJE_EDIT_IMAGE_COMP_USER
EDJE_EDIT_IMAGE_COMP_COMP = enums.EDJE_EDIT_IMAGE_COMP_COMP
EDJE_EDIT_IMAGE_COMP_LOSSY = enums.EDJE_EDIT_IMAGE_COMP_LOSSY
cdef class EdjeEdit(Edje):

View File

@ -39,9 +39,615 @@ import traceback
import atexit
include "elementary_cdef.pxi"
cimport efl.elementary.enums as enums
EDJE_CHANNEL_EFFECT = enums.EDJE_CHANNEL_EFFECT
EDJE_CHANNEL_BACKGROUND = enums.EDJE_CHANNEL_BACKGROUND
EDJE_CHANNEL_MUSIC = enums.EDJE_CHANNEL_MUSIC
EDJE_CHANNEL_FOREGROUND = enums.EDJE_CHANNEL_FOREGROUND
EDJE_CHANNEL_INTERFACE = enums.EDJE_CHANNEL_INTERFACE
EDJE_CHANNEL_INPUT = enums.EDJE_CHANNEL_INPUT
EDJE_CHANNEL_ALERT = enums.EDJE_CHANNEL_ALERT
EDJE_CHANNEL_ALL = enums.EDJE_CHANNEL_ALL
ELM_EVENT_CONFIG_ALL_CHANGED = enums.ELM_EVENT_CONFIG_ALL_CHANGED
ELM_EVENT_POLICY_CHANGED = enums.ELM_EVENT_POLICY_CHANGED
ELM_EVENT_PROCESS_BACKGROUND = enums.ELM_EVENT_PROCESS_BACKGROUND
ELM_EVENT_PROCESS_FOREGROUND = enums.ELM_EVENT_PROCESS_FOREGROUND
ELM_ECORE_EVENT_ETHUMB_CONNECT = enums.ELM_ECORE_EVENT_ETHUMB_CONNECT
ELM_EVENT_SYS_NOTIFY_NOTIFICATION_CLOSED = enums.ELM_EVENT_SYS_NOTIFY_NOTIFICATION_CLOSED
ELM_EVENT_SYS_NOTIFY_ACTION_INVOKED = enums.ELM_EVENT_SYS_NOTIFY_ACTION_INVOKED
ELM_EVENT_SYSTRAY_READY = enums.ELM_EVENT_SYSTRAY_READY
ELM_FOCUS_PREVIOUS = enums.ELM_FOCUS_PREVIOUS
ELM_FOCUS_NEXT = enums.ELM_FOCUS_NEXT
ELM_FOCUS_UP = enums.ELM_FOCUS_UP
ELM_FOCUS_DOWN = enums.ELM_FOCUS_DOWN
ELM_FOCUS_RIGHT = enums.ELM_FOCUS_RIGHT
ELM_FOCUS_LEFT = enums.ELM_FOCUS_LEFT
ELM_FOCUS_MOVE_POLICY_CLICK = enums.ELM_FOCUS_MOVE_POLICY_CLICK
ELM_FOCUS_MOVE_POLICY_IN = enums.ELM_FOCUS_MOVE_POLICY_IN
ELM_FOCUS_MOVE_POLICY_KEY_ONLY = enums.ELM_FOCUS_MOVE_POLICY_KEY_ONLY
ELM_FOCUS_REGION_SHOW_WIDGET = enums.ELM_FOCUS_REGION_SHOW_WIDGET
ELM_FOCUS_REGION_SHOW_ITEM = enums.ELM_FOCUS_REGION_SHOW_ITEM
ELM_FOCUS_AUTOSCROLL_MODE_SHOW = enums.ELM_FOCUS_AUTOSCROLL_MODE_SHOW
ELM_FOCUS_AUTOSCROLL_MODE_NONE = enums.ELM_FOCUS_AUTOSCROLL_MODE_NONE
ELM_FOCUS_AUTOSCROLL_MODE_BRING_IN = enums.ELM_FOCUS_AUTOSCROLL_MODE_BRING_IN
ELM_SEL_TYPE_PRIMARY = enums.ELM_SEL_TYPE_PRIMARY
ELM_SEL_TYPE_SECONDARY = enums.ELM_SEL_TYPE_SECONDARY
ELM_SEL_TYPE_XDND = enums.ELM_SEL_TYPE_XDND
ELM_SEL_TYPE_CLIPBOARD = enums.ELM_SEL_TYPE_CLIPBOARD
ELM_SEL_FORMAT_TARGETS = enums.ELM_SEL_FORMAT_TARGETS
ELM_SEL_FORMAT_NONE = enums.ELM_SEL_FORMAT_NONE
ELM_SEL_FORMAT_TEXT = enums.ELM_SEL_FORMAT_TEXT
ELM_SEL_FORMAT_MARKUP = enums.ELM_SEL_FORMAT_MARKUP
ELM_SEL_FORMAT_IMAGE = enums.ELM_SEL_FORMAT_IMAGE
ELM_SEL_FORMAT_VCARD = enums.ELM_SEL_FORMAT_VCARD
ELM_SEL_FORMAT_HTML = enums.ELM_SEL_FORMAT_HTML
ELM_XDND_ACTION_UNKNOWN = enums.ELM_XDND_ACTION_UNKNOWN
ELM_XDND_ACTION_COPY = enums.ELM_XDND_ACTION_COPY
ELM_XDND_ACTION_MOVE = enums.ELM_XDND_ACTION_MOVE
ELM_XDND_ACTION_PRIVATE = enums.ELM_XDND_ACTION_PRIVATE
ELM_XDND_ACTION_ASK = enums.ELM_XDND_ACTION_ASK
ELM_XDND_ACTION_LIST = enums.ELM_XDND_ACTION_LIST
ELM_XDND_ACTION_LINK = enums.ELM_XDND_ACTION_LINK
ELM_XDND_ACTION_DESCRIPTION = enums.ELM_XDND_ACTION_DESCRIPTION
ELM_TOOLTIP_ORIENT_NONE = enums.ELM_TOOLTIP_ORIENT_NONE
ELM_TOOLTIP_ORIENT_TOP_LEFT = enums.ELM_TOOLTIP_ORIENT_TOP_LEFT
ELM_TOOLTIP_ORIENT_TOP = enums.ELM_TOOLTIP_ORIENT_TOP
ELM_TOOLTIP_ORIENT_TOP_RIGHT = enums.ELM_TOOLTIP_ORIENT_TOP_RIGHT
ELM_TOOLTIP_ORIENT_LEFT = enums.ELM_TOOLTIP_ORIENT_LEFT
ELM_TOOLTIP_ORIENT_CENTER = enums.ELM_TOOLTIP_ORIENT_CENTER
ELM_TOOLTIP_ORIENT_RIGHT = enums.ELM_TOOLTIP_ORIENT_RIGHT
ELM_TOOLTIP_ORIENT_BOTTOM_LEFT = enums.ELM_TOOLTIP_ORIENT_BOTTOM_LEFT
ELM_TOOLTIP_ORIENT_BOTTOM = enums.ELM_TOOLTIP_ORIENT_BOTTOM
ELM_TOOLTIP_ORIENT_BOTTOM_RIGHT = enums.ELM_TOOLTIP_ORIENT_BOTTOM_RIGHT
ELM_TOOLTIP_ORIENT_LAST = enums.ELM_TOOLTIP_ORIENT_LAST
ELM_POLICY_QUIT = enums.ELM_POLICY_QUIT
ELM_POLICY_EXIT = enums.ELM_POLICY_EXIT
ELM_POLICY_THROTTLE = enums.ELM_POLICY_THROTTLE
ELM_POLICY_LAST = enums.ELM_POLICY_LAST
ELM_POLICY_QUIT_NONE = enums.ELM_POLICY_QUIT_NONE
ELM_POLICY_QUIT_LAST_WINDOW_CLOSED = enums.ELM_POLICY_QUIT_LAST_WINDOW_CLOSED
ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN = enums.ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN
ELM_POLICY_EXIT_NONE = enums.ELM_POLICY_EXIT_NONE
ELM_POLICY_EXIT_WINDOWS_DEL = enums.ELM_POLICY_EXIT_WINDOWS_DEL
ELM_POLICY_THROTTLE_CONFIG = enums.ELM_POLICY_THROTTLE_CONFIG
ELM_POLICY_THROTTLE_HIDDEN_ALWAYS = enums.ELM_POLICY_THROTTLE_HIDDEN_ALWAYS
ELM_POLICY_THROTTLE_NEVER = enums.ELM_POLICY_THROTTLE_NEVER
ELM_SYS_NOTIFY_URGENCY_LOW = enums.ELM_SYS_NOTIFY_URGENCY_LOW
ELM_SYS_NOTIFY_URGENCY_NORMAL = enums.ELM_SYS_NOTIFY_URGENCY_NORMAL
ELM_SYS_NOTIFY_URGENCY_CRITICAL = enums.ELM_SYS_NOTIFY_URGENCY_CRITICAL
ELM_GLOB_MATCH_NO_ESCAPE = enums.ELM_GLOB_MATCH_NO_ESCAPE
ELM_GLOB_MATCH_PATH = enums.ELM_GLOB_MATCH_PATH
ELM_GLOB_MATCH_PERIOD = enums.ELM_GLOB_MATCH_PERIOD
ELM_GLOB_MATCH_NOCASE = enums.ELM_GLOB_MATCH_NOCASE
ELM_PROCESS_STATE_FOREGROUND = enums.ELM_PROCESS_STATE_FOREGROUND
ELM_PROCESS_STATE_BACKGROUND = enums.ELM_PROCESS_STATE_BACKGROUND
ELM_SYS_NOTIFY_URGENCY_LOW = enums.ELM_SYS_NOTIFY_URGENCY_LOW
ELM_SYS_NOTIFY_URGENCY_NORMAL = enums.ELM_SYS_NOTIFY_URGENCY_NORMAL
ELM_SYS_NOTIFY_URGENCY_CRITICAL = enums.ELM_SYS_NOTIFY_URGENCY_CRITICAL
ELM_ACTIONSLIDER_NONE = enums.ELM_ACTIONSLIDER_NONE
ELM_ACTIONSLIDER_LEFT = enums.ELM_ACTIONSLIDER_LEFT
ELM_ACTIONSLIDER_CENTER = enums.ELM_ACTIONSLIDER_CENTER
ELM_ACTIONSLIDER_RIGHT = enums.ELM_ACTIONSLIDER_RIGHT
ELM_ACTIONSLIDER_ALL = enums.ELM_ACTIONSLIDER_ALL
ELM_BG_OPTION_CENTER = enums.ELM_BG_OPTION_CENTER
ELM_BG_OPTION_SCALE = enums.ELM_BG_OPTION_SCALE
ELM_BG_OPTION_STRETCH = enums.ELM_BG_OPTION_STRETCH
ELM_BG_OPTION_TILE = enums.ELM_BG_OPTION_TILE
ELM_BG_OPTION_LAST = enums.ELM_BG_OPTION_LAST
ELM_BUBBLE_POS_TOP_LEFT = enums.ELM_BUBBLE_POS_TOP_LEFT
ELM_BUBBLE_POS_TOP_RIGHT = enums.ELM_BUBBLE_POS_TOP_RIGHT
ELM_BUBBLE_POS_BOTTOM_LEFT = enums.ELM_BUBBLE_POS_BOTTOM_LEFT
ELM_BUBBLE_POS_BOTTOM_RIGHT = enums.ELM_BUBBLE_POS_BOTTOM_RIGHT
ELM_CALENDAR_UNIQUE = enums.ELM_CALENDAR_UNIQUE
ELM_CALENDAR_DAILY = enums.ELM_CALENDAR_DAILY
ELM_CALENDAR_WEEKLY = enums.ELM_CALENDAR_WEEKLY
ELM_CALENDAR_MONTHLY = enums.ELM_CALENDAR_MONTHLY
ELM_CALENDAR_ANNUALLY = enums.ELM_CALENDAR_ANNUALLY
ELM_CALENDAR_LAST_DAY_OF_MONTH = enums.ELM_CALENDAR_LAST_DAY_OF_MONTH
ELM_CALENDAR_SELECT_MODE_DEFAULT = enums.ELM_CALENDAR_SELECT_MODE_DEFAULT
ELM_CALENDAR_SELECT_MODE_ALWAYS = enums.ELM_CALENDAR_SELECT_MODE_ALWAYS
ELM_CALENDAR_SELECT_MODE_NONE = enums.ELM_CALENDAR_SELECT_MODE_NONE
ELM_CALENDAR_SELECT_MODE_ONDEMAND = enums.ELM_CALENDAR_SELECT_MODE_ONDEMAND
ELM_CALENDAR_SELECTABLE_NONE = enums.ELM_CALENDAR_SELECTABLE_NONE
ELM_CALENDAR_SELECTABLE_YEAR = enums.ELM_CALENDAR_SELECTABLE_YEAR
ELM_CALENDAR_SELECTABLE_MONTH = enums.ELM_CALENDAR_SELECTABLE_MONTH
ELM_CALENDAR_SELECTABLE_DAY = enums.ELM_CALENDAR_SELECTABLE_DAY
ELM_DAY_SUNDAY = enums.ELM_DAY_SUNDAY
ELM_DAY_MONDAY = enums.ELM_DAY_MONDAY
ELM_DAY_TUESDAY = enums.ELM_DAY_TUESDAY
ELM_DAY_WEDNESDAY = enums.ELM_DAY_WEDNESDAY
ELM_DAY_THURSDAY = enums.ELM_DAY_THURSDAY
ELM_DAY_FRIDAY = enums.ELM_DAY_FRIDAY
ELM_DAY_SATURDAY = enums.ELM_DAY_SATURDAY
ELM_DAY_LAST = enums.ELM_DAY_LAST
ELM_CLOCK_EDIT_DEFAULT = enums.ELM_CLOCK_EDIT_DEFAULT
ELM_CLOCK_EDIT_HOUR_DECIMAL = enums.ELM_CLOCK_EDIT_HOUR_DECIMAL
ELM_CLOCK_EDIT_HOUR_UNIT = enums.ELM_CLOCK_EDIT_HOUR_UNIT
ELM_CLOCK_EDIT_MIN_DECIMAL = enums.ELM_CLOCK_EDIT_MIN_DECIMAL
ELM_CLOCK_EDIT_MIN_UNIT = enums.ELM_CLOCK_EDIT_MIN_UNIT
ELM_CLOCK_EDIT_SEC_DECIMAL = enums.ELM_CLOCK_EDIT_SEC_DECIMAL
ELM_CLOCK_EDIT_SEC_UNIT = enums.ELM_CLOCK_EDIT_SEC_UNIT
ELM_CLOCK_EDIT_ALL = enums.ELM_CLOCK_EDIT_ALL
ELM_COLORSELECTOR_PALETTE = enums.ELM_COLORSELECTOR_PALETTE
ELM_COLORSELECTOR_COMPONENTS = enums.ELM_COLORSELECTOR_COMPONENTS
ELM_COLORSELECTOR_BOTH = enums.ELM_COLORSELECTOR_BOTH
ELM_SOFTCURSOR_MODE_AUTO = enums.ELM_SOFTCURSOR_MODE_AUTO
ELM_SOFTCURSOR_MODE_ON = enums.ELM_SOFTCURSOR_MODE_ON
ELM_SOFTCURSOR_MODE_OFF = enums.ELM_SOFTCURSOR_MODE_OFF
ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT = enums.ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT
ELM_SLIDER_INDICATOR_VISIBLE_MODE_ALWAYS = enums.ELM_SLIDER_INDICATOR_VISIBLE_MODE_ALWAYS
ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS = enums.ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS
ELM_SLIDER_INDICATOR_VISIBLE_MODE_NONE = enums.ELM_SLIDER_INDICATOR_VISIBLE_MODE_NONE
ELM_CTXPOPUP_DIRECTION_DOWN = enums.ELM_CTXPOPUP_DIRECTION_DOWN
ELM_CTXPOPUP_DIRECTION_RIGHT = enums.ELM_CTXPOPUP_DIRECTION_RIGHT
ELM_CTXPOPUP_DIRECTION_LEFT = enums.ELM_CTXPOPUP_DIRECTION_LEFT
ELM_CTXPOPUP_DIRECTION_UP = enums.ELM_CTXPOPUP_DIRECTION_UP
ELM_CTXPOPUP_DIRECTION_UNKNOWN = enums.ELM_CTXPOPUP_DIRECTION_UNKNOWN
ELM_DATETIME_YEAR = enums.ELM_DATETIME_YEAR
ELM_DATETIME_MONTH = enums.ELM_DATETIME_MONTH
ELM_DATETIME_DATE = enums.ELM_DATETIME_DATE
ELM_DATETIME_HOUR = enums.ELM_DATETIME_HOUR
ELM_DATETIME_MINUTE = enums.ELM_DATETIME_MINUTE
ELM_DATETIME_AMPM = enums.ELM_DATETIME_AMPM
ELM_DAYSELECTOR_SUN = enums.ELM_DAYSELECTOR_SUN
ELM_DAYSELECTOR_MON = enums.ELM_DAYSELECTOR_MON
ELM_DAYSELECTOR_TUE = enums.ELM_DAYSELECTOR_TUE
ELM_DAYSELECTOR_WED = enums.ELM_DAYSELECTOR_WED
ELM_DAYSELECTOR_THU = enums.ELM_DAYSELECTOR_THU
ELM_DAYSELECTOR_FRI = enums.ELM_DAYSELECTOR_FRI
ELM_DAYSELECTOR_SAT = enums.ELM_DAYSELECTOR_SAT
ELM_DAYSELECTOR_MAX = enums.ELM_DAYSELECTOR_MAX
ELM_AUTOCAPITAL_TYPE_NONE = enums.ELM_AUTOCAPITAL_TYPE_NONE
ELM_AUTOCAPITAL_TYPE_WORD = enums.ELM_AUTOCAPITAL_TYPE_WORD
ELM_AUTOCAPITAL_TYPE_SENTENCE = enums.ELM_AUTOCAPITAL_TYPE_SENTENCE
ELM_AUTOCAPITAL_TYPE_ALLCHARACTER = enums.ELM_AUTOCAPITAL_TYPE_ALLCHARACTER
ELM_CNP_MODE_MARKUP = enums.ELM_CNP_MODE_MARKUP
ELM_CNP_MODE_NO_IMAGE = enums.ELM_CNP_MODE_NO_IMAGE
ELM_CNP_MODE_PLAINTEXT = enums.ELM_CNP_MODE_PLAINTEXT
ELM_INPUT_HINT_NONE = enums.ELM_INPUT_HINT_NONE
ELM_INPUT_HINT_AUTO_COMPLETE = enums.ELM_INPUT_HINT_AUTO_COMPLETE
ELM_INPUT_HINT_SENSITIVE_DATA = enums.ELM_INPUT_HINT_SENSITIVE_DATA
ELM_INPUT_PANEL_LANG_AUTOMATIC = enums.ELM_INPUT_PANEL_LANG_AUTOMATIC
ELM_INPUT_PANEL_LANG_ALPHABET = enums.ELM_INPUT_PANEL_LANG_ALPHABET
ELM_INPUT_PANEL_LAYOUT_NORMAL = enums.ELM_INPUT_PANEL_LAYOUT_NORMAL
ELM_INPUT_PANEL_LAYOUT_NUMBER = enums.ELM_INPUT_PANEL_LAYOUT_NUMBER
ELM_INPUT_PANEL_LAYOUT_EMAIL = enums.ELM_INPUT_PANEL_LAYOUT_EMAIL
ELM_INPUT_PANEL_LAYOUT_URL = enums.ELM_INPUT_PANEL_LAYOUT_URL
ELM_INPUT_PANEL_LAYOUT_PHONENUMBER = enums.ELM_INPUT_PANEL_LAYOUT_PHONENUMBER
ELM_INPUT_PANEL_LAYOUT_IP = enums.ELM_INPUT_PANEL_LAYOUT_IP
ELM_INPUT_PANEL_LAYOUT_MONTH = enums.ELM_INPUT_PANEL_LAYOUT_MONTH
ELM_INPUT_PANEL_LAYOUT_NUMBERONLY = enums.ELM_INPUT_PANEL_LAYOUT_NUMBERONLY
ELM_INPUT_PANEL_LAYOUT_INVALID = enums.ELM_INPUT_PANEL_LAYOUT_INVALID
ELM_INPUT_PANEL_LAYOUT_HEX = enums.ELM_INPUT_PANEL_LAYOUT_HEX
ELM_INPUT_PANEL_LAYOUT_TERMINAL = enums.ELM_INPUT_PANEL_LAYOUT_TERMINAL
ELM_INPUT_PANEL_LAYOUT_PASSWORD = enums.ELM_INPUT_PANEL_LAYOUT_PASSWORD
ELM_INPUT_PANEL_LAYOUT_DATETIME = enums.ELM_INPUT_PANEL_LAYOUT_DATETIME
ELM_INPUT_PANEL_LAYOUT_EMOTICON = enums.ELM_INPUT_PANEL_LAYOUT_EMOTICON
ELM_INPUT_PANEL_LAYOUT_NORMAL_VARIATION_NORMAL = enums.ELM_INPUT_PANEL_LAYOUT_NORMAL_VARIATION_NORMAL
ELM_INPUT_PANEL_LAYOUT_NORMAL_VARIATION_FILENAME = enums.ELM_INPUT_PANEL_LAYOUT_NORMAL_VARIATION_FILENAME
ELM_INPUT_PANEL_LAYOUT_NORMAL_VARIATION_PERSON_NAME = enums.ELM_INPUT_PANEL_LAYOUT_NORMAL_VARIATION_PERSON_NAME
ELM_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL = enums.ELM_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL
ELM_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_SIGNED = enums.ELM_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_SIGNED
ELM_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL = enums.ELM_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL
ELM_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_SIGNED_AND_DECIMAL = enums.ELM_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_SIGNED_AND_DECIMAL
ELM_INPUT_PANEL_LAYOUT_PASSWORD_VARIATION_NORMAL = enums.ELM_INPUT_PANEL_LAYOUT_PASSWORD_VARIATION_NORMAL
ELM_INPUT_PANEL_LAYOUT_PASSWORD_VARIATION_NUMBERONLY = enums.ELM_INPUT_PANEL_LAYOUT_PASSWORD_VARIATION_NUMBERONLY
ELM_INPUT_PANEL_RETURN_KEY_TYPE_DEFAULT = enums.ELM_INPUT_PANEL_RETURN_KEY_TYPE_DEFAULT
ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE = enums.ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE
ELM_INPUT_PANEL_RETURN_KEY_TYPE_GO = enums.ELM_INPUT_PANEL_RETURN_KEY_TYPE_GO
ELM_INPUT_PANEL_RETURN_KEY_TYPE_JOIN = enums.ELM_INPUT_PANEL_RETURN_KEY_TYPE_JOIN
ELM_INPUT_PANEL_RETURN_KEY_TYPE_LOGIN = enums.ELM_INPUT_PANEL_RETURN_KEY_TYPE_LOGIN
ELM_INPUT_PANEL_RETURN_KEY_TYPE_NEXT = enums.ELM_INPUT_PANEL_RETURN_KEY_TYPE_NEXT
ELM_INPUT_PANEL_RETURN_KEY_TYPE_SEARCH = enums.ELM_INPUT_PANEL_RETURN_KEY_TYPE_SEARCH
ELM_INPUT_PANEL_RETURN_KEY_TYPE_SEND = enums.ELM_INPUT_PANEL_RETURN_KEY_TYPE_SEND
ELM_INPUT_PANEL_RETURN_KEY_TYPE_SIGNIN = enums.ELM_INPUT_PANEL_RETURN_KEY_TYPE_SIGNIN
ELM_TEXT_FORMAT_PLAIN_UTF8 = enums.ELM_TEXT_FORMAT_PLAIN_UTF8
ELM_TEXT_FORMAT_MARKUP_UTF8 = enums.ELM_TEXT_FORMAT_MARKUP_UTF8