Use new cython cpdef-enums in evas
cpdef enums are automatically exported to C and to python, no more need for the enums file and the duplicated definition for py. This is a cython 0.21 feature so from now on you will need at least that version. Require some <int> cast here and there, but a totally win in the end.
This commit is contained in:
parent
3f064401a1
commit
f9e8906724
|
@ -1,5 +1,6 @@
|
||||||
*.py[co]
|
*.py[co]
|
||||||
MANIFEST
|
MANIFEST
|
||||||
|
installed_files.txt
|
||||||
|
|
||||||
# Packages
|
# Packages
|
||||||
*.egg
|
*.egg
|
||||||
|
|
2
INSTALL
2
INSTALL
|
@ -5,7 +5,7 @@
|
||||||
* Python 2.6 or higher (http://www.python.org/)
|
* Python 2.6 or higher (http://www.python.org/)
|
||||||
- Tested with Python 2.6 / 2.7 / 3.2 / 3.3 / 3.4
|
- Tested with Python 2.6 / 2.7 / 3.2 / 3.3 / 3.4
|
||||||
|
|
||||||
* Cython 0.19 or higher (http://cython.org/)
|
* Cython 0.21 or higher (http://cython.org/)
|
||||||
- Tested with Cython 0.21.2
|
- Tested with Cython 0.21.2
|
||||||
|
|
||||||
* EFL core library
|
* EFL core library
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
from efl.evas cimport Eina_List, Eina_Bool
|
from efl.evas cimport Eina_List, Eina_Bool
|
||||||
from efl.evas cimport Evas_Object, Evas_Font_Size, Evas_Coord
|
from efl.evas cimport Evas_Object, Evas_Font_Size, Evas_Coord
|
||||||
from efl.evas.enums cimport Evas_Callback_Type
|
from efl.evas cimport Evas_Callback_Type
|
||||||
from enums cimport Elm_Sys_Notify_Closed_Reason, Elm_Sys_Notify_Urgency, \
|
from enums cimport Elm_Sys_Notify_Closed_Reason, Elm_Sys_Notify_Urgency, \
|
||||||
Elm_Process_State
|
Elm_Process_State
|
||||||
|
|
||||||
|
|
|
@ -15,11 +15,9 @@
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>.
|
# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from efl.evas cimport Eina_Bool, Eina_List, \
|
from efl.evas cimport Eina_Bool, Eina_List, Evas_Object, Evas_Smart_Cb, \
|
||||||
Evas_Object, Evas_Smart_Cb, Evas_Coord
|
Evas_Coord, Evas_Callback_Type, Object as evasObject, Canvas as evasCanvas
|
||||||
from efl.evas.enums cimport Evas_Callback_Type
|
|
||||||
from efl.evas cimport Object as evasObject
|
|
||||||
from efl.evas cimport Canvas as evasCanvas
|
|
||||||
from enums cimport Elm_Focus_Direction, Elm_Sel_Format, Elm_Sel_Type, \
|
from enums cimport Elm_Focus_Direction, Elm_Sel_Format, Elm_Sel_Type, \
|
||||||
Elm_Xdnd_Action
|
Elm_Xdnd_Action
|
||||||
|
|
||||||
|
|
|
@ -267,9 +267,11 @@ from libc.stdint cimport uintptr_t
|
||||||
from efl.eo cimport _object_mapping_register
|
from efl.eo cimport _object_mapping_register
|
||||||
from efl.utils.conversions cimport _ctouni, eina_list_objects_to_python_list
|
from efl.utils.conversions cimport _ctouni, eina_list_objects_to_python_list
|
||||||
from efl.utils.deprecated cimport DEPRECATED
|
from efl.utils.deprecated cimport DEPRECATED
|
||||||
from efl.evas cimport Object as evasObject
|
from efl.evas cimport Object as evasObject, \
|
||||||
from efl.evas cimport EventKeyDown, EventKeyUp, EventMouseWheel, \
|
EventKeyDown, EventKeyUp, EventMouseWheel, \
|
||||||
evas_object_smart_callback_add, evas_object_smart_callback_del
|
evas_object_smart_callback_add, evas_object_smart_callback_del, \
|
||||||
|
Evas_Callback_Type, EVAS_CALLBACK_KEY_DOWN, EVAS_CALLBACK_KEY_UP, \
|
||||||
|
EVAS_CALLBACK_MOUSE_WHEEL
|
||||||
|
|
||||||
include "cnp_callbacks.pxi"
|
include "cnp_callbacks.pxi"
|
||||||
include "tooltips.pxi"
|
include "tooltips.pxi"
|
||||||
|
@ -280,7 +282,6 @@ import logging
|
||||||
log = logging.getLogger("elementary")
|
log = logging.getLogger("elementary")
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
cimport efl.evas.enums as evasenums
|
|
||||||
cimport enums
|
cimport enums
|
||||||
|
|
||||||
ELM_FOCUS_PREVIOUS = enums.ELM_FOCUS_PREVIOUS
|
ELM_FOCUS_PREVIOUS = enums.ELM_FOCUS_PREVIOUS
|
||||||
|
@ -297,10 +298,6 @@ 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_NONE = enums.ELM_FOCUS_AUTOSCROLL_MODE_NONE
|
||||||
ELM_FOCUS_AUTOSCROLL_MODE_BRING_IN = enums.ELM_FOCUS_AUTOSCROLL_MODE_BRING_IN
|
ELM_FOCUS_AUTOSCROLL_MODE_BRING_IN = enums.ELM_FOCUS_AUTOSCROLL_MODE_BRING_IN
|
||||||
|
|
||||||
EVAS_CALLBACK_KEY_DOWN = evasenums.EVAS_CALLBACK_KEY_DOWN
|
|
||||||
EVAS_CALLBACK_KEY_UP = evasenums.EVAS_CALLBACK_KEY_UP
|
|
||||||
EVAS_CALLBACK_MOUSE_WHEEL = evasenums.EVAS_CALLBACK_MOUSE_WHEEL
|
|
||||||
|
|
||||||
ELM_SEL_TYPE_PRIMARY = enums.ELM_SEL_TYPE_PRIMARY
|
ELM_SEL_TYPE_PRIMARY = enums.ELM_SEL_TYPE_PRIMARY
|
||||||
ELM_SEL_TYPE_SECONDARY = enums.ELM_SEL_TYPE_SECONDARY
|
ELM_SEL_TYPE_SECONDARY = enums.ELM_SEL_TYPE_SECONDARY
|
||||||
ELM_SEL_TYPE_XDND = enums.ELM_SEL_TYPE_XDND
|
ELM_SEL_TYPE_XDND = enums.ELM_SEL_TYPE_XDND
|
||||||
|
@ -367,17 +364,17 @@ cdef Eina_Bool _event_callback(void *data, Evas_Object *o, \
|
||||||
EventKeyDown down_event
|
EventKeyDown down_event
|
||||||
EventKeyUp up_event
|
EventKeyUp up_event
|
||||||
|
|
||||||
if t == evasenums.EVAS_CALLBACK_KEY_DOWN:
|
if t == <int>EVAS_CALLBACK_KEY_DOWN:
|
||||||
down_event = EventKeyDown()
|
down_event = EventKeyDown()
|
||||||
down_event._set_obj(event_info)
|
down_event._set_obj(event_info)
|
||||||
ret = _event_dispatcher(obj, src_obj, t, down_event)
|
ret = _event_dispatcher(obj, src_obj, t, down_event)
|
||||||
down_event._unset_obj()
|
down_event._unset_obj()
|
||||||
elif t == evasenums.EVAS_CALLBACK_KEY_UP:
|
elif t == <int>EVAS_CALLBACK_KEY_UP:
|
||||||
up_event = EventKeyUp()
|
up_event = EventKeyUp()
|
||||||
up_event._set_obj(event_info)
|
up_event._set_obj(event_info)
|
||||||
ret = _event_dispatcher(obj, src_obj, t, up_event)
|
ret = _event_dispatcher(obj, src_obj, t, up_event)
|
||||||
up_event._unset_obj()
|
up_event._unset_obj()
|
||||||
elif t == evasenums.EVAS_CALLBACK_MOUSE_WHEEL:
|
elif t == <int>EVAS_CALLBACK_MOUSE_WHEEL:
|
||||||
wheel_event = EventMouseWheel()
|
wheel_event = EventMouseWheel()
|
||||||
wheel_event._set_obj(event_info)
|
wheel_event._set_obj(event_info)
|
||||||
ret = _event_dispatcher(obj, src_obj, t, wheel_event)
|
ret = _event_dispatcher(obj, src_obj, t, wheel_event)
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
from efl.evas cimport Eina_Bool, Evas_Object
|
from efl.evas cimport Eina_Bool, Evas_Object, Evas_Load_Error
|
||||||
from efl.evas.enums cimport Evas_Load_Error
|
|
||||||
from enums cimport Elm_Photocam_Zoom_Mode
|
from enums cimport Elm_Photocam_Zoom_Mode
|
||||||
|
|
||||||
cdef extern from "Elementary.h":
|
cdef extern from "Elementary.h":
|
||||||
|
|
|
@ -15,145 +15,12 @@
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>.
|
# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
cimport efl.evas.enums as enums
|
|
||||||
from efl.utils.conversions cimport eina_list_strings_to_python_list
|
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
|
from efl.eina cimport EINA_LOG_DOM_DBG, EINA_LOG_DOM_INFO, EINA_LOG_DOM_WARN
|
||||||
from efl.utils.logger cimport add_logger
|
from efl.utils.logger cimport add_logger
|
||||||
|
|
||||||
cdef int PY_EFL_EVAS_LOG_DOMAIN = add_logger(__name__).eina_log_domain
|
cdef int PY_EFL_EVAS_LOG_DOMAIN = add_logger(__name__).eina_log_domain
|
||||||
|
|
||||||
EVAS_LAYER_MIN = enums.EVAS_LAYER_MIN
|
|
||||||
EVAS_LAYER_MAX = enums.EVAS_LAYER_MAX
|
|
||||||
|
|
||||||
EVAS_HINT_EXPAND = 1.0
|
|
||||||
EVAS_HINT_FILL = -1.0
|
|
||||||
|
|
||||||
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_LAST = enums.EVAS_CALLBACK_LAST
|
|
||||||
|
|
||||||
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_EVENT_FLAG_NONE = enums.EVAS_EVENT_FLAG_NONE
|
|
||||||
EVAS_EVENT_FLAG_ON_HOLD = enums.EVAS_EVENT_FLAG_ON_HOLD
|
|
||||||
|
|
||||||
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_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_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_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_COLOR_SPACE_ARGB = enums.EVAS_COLOR_SPACE_ARGB
|
|
||||||
EVAS_COLOR_SPACE_AHSV = enums.EVAS_COLOR_SPACE_AHSV
|
|
||||||
|
|
||||||
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_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_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_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_INVALID = enums.EVAS_TEXT_INVALID
|
|
||||||
EVAS_TEXT_SPECIAL = enums.EVAS_TEXT_SPECIAL
|
|
||||||
|
|
||||||
EVAS_TEXTBLOCK_TEXT_RAW = enums.EVAS_TEXTBLOCK_TEXT_RAW
|
|
||||||
EVAS_TEXTBLOCK_TEXT_PLAIN = enums.EVAS_TEXTBLOCK_TEXT_PLAIN
|
|
||||||
|
|
||||||
EVAS_OBJECT_POINTER_MODE_AUTOGRAB = enums.EVAS_OBJECT_POINTER_MODE_AUTOGRAB
|
|
||||||
EVAS_OBJECT_POINTER_MODE_NOGRAB = enums.EVAS_OBJECT_POINTER_MODE_NOGRAB
|
|
||||||
|
|
||||||
# FIXME: These were used with the image rotation functions removed earlier.
|
|
||||||
# Are they needed anymore?
|
|
||||||
#
|
|
||||||
# EVAS_IMAGE_ROTATE_NONE = 0
|
|
||||||
# EVAS_IMAGE_ROTATE_90 = 1
|
|
||||||
# EVAS_IMAGE_ROTATE_180 = 2
|
|
||||||
# EVAS_IMAGE_ROTATE_270 = 3
|
|
||||||
|
|
||||||
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_SMART_CLASS_VERSION = enums.EVAS_SMART_CLASS_VERSION
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
EINA_LOG_DOM_INFO(PY_EFL_EVAS_LOG_DOMAIN, "Initializing efl.evas", NULL)
|
EINA_LOG_DOM_INFO(PY_EFL_EVAS_LOG_DOMAIN, "Initializing efl.evas", NULL)
|
||||||
|
@ -323,19 +190,19 @@ def font_path_global_list():
|
||||||
|
|
||||||
class EvasLoadError(Exception):
|
class EvasLoadError(Exception):
|
||||||
def __init__(self, int code, filename, key):
|
def __init__(self, int code, filename, key):
|
||||||
if code == enums.EVAS_LOAD_ERROR_NONE:
|
if code == EVAS_LOAD_ERROR_NONE:
|
||||||
msg = "No error on load"
|
msg = "No error on load"
|
||||||
elif code == enums.EVAS_LOAD_ERROR_GENERIC:
|
elif code == EVAS_LOAD_ERROR_GENERIC:
|
||||||
msg = "A non-specific error occurred"
|
msg = "A non-specific error occurred"
|
||||||
elif code == enums.EVAS_LOAD_ERROR_DOES_NOT_EXIST:
|
elif code == EVAS_LOAD_ERROR_DOES_NOT_EXIST:
|
||||||
msg = "File (or file path) does not exist"
|
msg = "File (or file path) does not exist"
|
||||||
elif code == enums.EVAS_LOAD_ERROR_PERMISSION_DENIED:
|
elif code == EVAS_LOAD_ERROR_PERMISSION_DENIED:
|
||||||
msg = "Permission denied to an existing file (or path)"
|
msg = "Permission denied to an existing file (or path)"
|
||||||
elif code == enums.EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED:
|
elif code == EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED:
|
||||||
msg = "Allocation of resources failure prevented load"
|
msg = "Allocation of resources failure prevented load"
|
||||||
elif code == enums.EVAS_LOAD_ERROR_CORRUPT_FILE:
|
elif code == EVAS_LOAD_ERROR_CORRUPT_FILE:
|
||||||
msg = "File corrupt (but was detected as a known format)"
|
msg = "File corrupt (but was detected as a known format)"
|
||||||
elif code == enums.EVAS_LOAD_ERROR_UNKNOWN_FORMAT:
|
elif code == EVAS_LOAD_ERROR_UNKNOWN_FORMAT:
|
||||||
msg = "File is not in a known format"
|
msg = "File is not in a known format"
|
||||||
self.code = code
|
self.code = code
|
||||||
self.file = filename
|
self.file = filename
|
||||||
|
|
|
@ -162,37 +162,37 @@ cdef void cb_canvas_render_post(void *data, Evas *e, void *e_inf) with gil:
|
||||||
cdef int evas_canvas_event_callbacks_len
|
cdef int evas_canvas_event_callbacks_len
|
||||||
cdef Evas_Event_Cb evas_canvas_event_callbacks[34]
|
cdef Evas_Event_Cb evas_canvas_event_callbacks[34]
|
||||||
evas_canvas_event_callbacks_len = 34
|
evas_canvas_event_callbacks_len = 34
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_MOUSE_IN] = cb_canvas_mouse_in
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MOUSE_IN] = cb_canvas_mouse_in
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_MOUSE_OUT] = cb_canvas_mouse_out
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MOUSE_OUT] = cb_canvas_mouse_out
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_MOUSE_DOWN] = cb_canvas_mouse_down
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MOUSE_DOWN] = cb_canvas_mouse_down
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_MOUSE_UP] = cb_canvas_mouse_up
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MOUSE_UP] = cb_canvas_mouse_up
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_MOUSE_MOVE] = cb_canvas_mouse_move
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MOUSE_MOVE] = cb_canvas_mouse_move
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_MOUSE_WHEEL] = cb_canvas_mouse_wheel
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MOUSE_WHEEL] = cb_canvas_mouse_wheel
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_MULTI_DOWN] = cb_canvas_multi_down
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MULTI_DOWN] = cb_canvas_multi_down
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_MULTI_UP] = cb_canvas_multi_up
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MULTI_UP] = cb_canvas_multi_up
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_MULTI_MOVE] = cb_canvas_multi_move
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MULTI_MOVE] = cb_canvas_multi_move
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_FREE] = cb_canvas_free
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_FREE] = cb_canvas_free
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_KEY_DOWN] = cb_canvas_key_down
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_KEY_DOWN] = cb_canvas_key_down
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_KEY_UP] = cb_canvas_key_up
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_KEY_UP] = cb_canvas_key_up
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_FOCUS_IN] = cb_canvas_focus_in
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_FOCUS_IN] = cb_canvas_focus_in
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_FOCUS_OUT] = cb_canvas_focus_out
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_FOCUS_OUT] = cb_canvas_focus_out
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_SHOW] = cb_canvas_show
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_SHOW] = cb_canvas_show
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_HIDE] = cb_canvas_hide
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_HIDE] = cb_canvas_hide
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_MOVE] = cb_canvas_move
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_MOVE] = cb_canvas_move
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_RESIZE] = cb_canvas_resize
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_RESIZE] = cb_canvas_resize
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_RESTACK] = cb_canvas_restack
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_RESTACK] = cb_canvas_restack
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_DEL] = cb_canvas_del
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_DEL] = cb_canvas_del
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_HOLD] = cb_canvas_hold
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_HOLD] = cb_canvas_hold
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_CHANGED_SIZE_HINTS] = cb_canvas_changed_size_hints
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_CHANGED_SIZE_HINTS] = cb_canvas_changed_size_hints
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_IMAGE_PRELOADED] = cb_canvas_image_preloaded
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_IMAGE_PRELOADED] = cb_canvas_image_preloaded
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_CANVAS_FOCUS_IN] = cb_canvas_canvas_focus_in
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_CANVAS_FOCUS_IN] = cb_canvas_canvas_focus_in
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_CANVAS_FOCUS_OUT] = cb_canvas_canvas_focus_out
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_CANVAS_FOCUS_OUT] = cb_canvas_canvas_focus_out
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_RENDER_FLUSH_PRE] = cb_canvas_render_flush_pre
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_RENDER_FLUSH_PRE] = cb_canvas_render_flush_pre
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_RENDER_FLUSH_POST] = cb_canvas_render_flush_post
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_RENDER_FLUSH_POST] = cb_canvas_render_flush_post
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN] = cb_canvas_canvas_object_focus_in
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN] = cb_canvas_canvas_object_focus_in
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT] = cb_canvas_canvas_object_focus_out
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT] = cb_canvas_canvas_object_focus_out
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_IMAGE_UNLOADED] = cb_canvas_image_unloaded
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_IMAGE_UNLOADED] = cb_canvas_image_unloaded
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_RENDER_PRE] = cb_canvas_render_pre
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_RENDER_PRE] = cb_canvas_render_pre
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_RENDER_POST] = cb_canvas_render_post
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_RENDER_POST] = cb_canvas_render_post
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_IMAGE_RESIZE] = cb_canvas_image_resize
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_IMAGE_RESIZE] = cb_canvas_image_resize
|
||||||
evas_canvas_event_callbacks[EVAS_CALLBACK_DEVICE_CHANGED] = cb_canvas_device_changed
|
evas_canvas_event_callbacks[<int>EVAS_CALLBACK_DEVICE_CHANGED] = cb_canvas_device_changed
|
||||||
|
|
|
@ -36,7 +36,7 @@ cdef int _object_unregister_callbacks(Object obj) except 0:
|
||||||
cb = evas_object_event_callbacks[i]
|
cb = evas_object_event_callbacks[i]
|
||||||
evas_object_event_callback_del(o, i, cb)
|
evas_object_event_callback_del(o, i, cb)
|
||||||
|
|
||||||
evas_object_event_callback_del(o, enums.EVAS_CALLBACK_FREE, obj_free_cb)
|
evas_object_event_callback_del(o, EVAS_CALLBACK_FREE, obj_free_cb)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|
||||||
|
@ -44,7 +44,8 @@ cdef void obj_free_cb(void *data, Evas *e,
|
||||||
Evas_Object *obj, void *event_info) with gil:
|
Evas_Object *obj, void *event_info) with gil:
|
||||||
cdef Object self = <Object>data
|
cdef Object self = <Object>data
|
||||||
|
|
||||||
lst = self._event_callbacks[enums.EVAS_CALLBACK_FREE]
|
lst = self._event_callbacks[<int>EVAS_CALLBACK_FREE]
|
||||||
|
|
||||||
if lst is not None:
|
if lst is not None:
|
||||||
for func, args, kargs in lst:
|
for func, args, kargs in lst:
|
||||||
try:
|
try:
|
||||||
|
@ -195,7 +196,7 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
cdef int _set_obj(self, Evas_Object *obj) except 0:
|
cdef int _set_obj(self, Evas_Object *obj) except 0:
|
||||||
Eo._set_obj(self, obj)
|
Eo._set_obj(self, obj)
|
||||||
evas_object_event_callback_add(obj, enums.EVAS_CALLBACK_FREE,
|
evas_object_event_callback_add(obj, EVAS_CALLBACK_FREE,
|
||||||
obj_free_cb, <void *>self)
|
obj_free_cb, <void *>self)
|
||||||
Py_INCREF(self)
|
Py_INCREF(self)
|
||||||
|
|
||||||
|
@ -1252,7 +1253,7 @@ cdef class Object(Eo):
|
||||||
raise TypeError("func must be callable")
|
raise TypeError("func must be callable")
|
||||||
|
|
||||||
if _object_add_callback_to_list(self, type, func, args, kargs):
|
if _object_add_callback_to_list(self, type, func, args, kargs):
|
||||||
if type != enums.EVAS_CALLBACK_FREE:
|
if <int>type != EVAS_CALLBACK_FREE:
|
||||||
cb = evas_object_event_callbacks[<int>type]
|
cb = evas_object_event_callbacks[<int>type]
|
||||||
evas_object_event_callback_add(self.obj, type, cb, <void*>self)
|
evas_object_event_callback_add(self.obj, type, cb, <void*>self)
|
||||||
|
|
||||||
|
@ -1272,7 +1273,7 @@ cdef class Object(Eo):
|
||||||
"""
|
"""
|
||||||
cdef Evas_Object_Event_Cb cb
|
cdef Evas_Object_Event_Cb cb
|
||||||
if _object_del_callback_from_list(self, type, func):
|
if _object_del_callback_from_list(self, type, func):
|
||||||
if type != enums.EVAS_CALLBACK_FREE:
|
if <int>type != EVAS_CALLBACK_FREE:
|
||||||
cb = evas_object_event_callbacks[<int>type]
|
cb = evas_object_event_callbacks[<int>type]
|
||||||
evas_object_event_callback_del(self.obj, type, cb)
|
evas_object_event_callback_del(self.obj, type, cb)
|
||||||
|
|
||||||
|
@ -1283,11 +1284,11 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, event_info, *args, **kargs)
|
function(object, event_info, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_MOUSE_IN, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_MOUSE_IN, func, *a, **k)
|
||||||
|
|
||||||
def on_mouse_in_del(self, func):
|
def on_mouse_in_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_MOUSE_IN, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_MOUSE_IN, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_MOUSE_IN, func)
|
self.event_callback_del(EVAS_CALLBACK_MOUSE_IN, func)
|
||||||
|
|
||||||
def on_mouse_out_add(self, func, *a, **k):
|
def on_mouse_out_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_MOUSE_OUT, ...)
|
"""Same as event_callback_add(EVAS_CALLBACK_MOUSE_OUT, ...)
|
||||||
|
@ -1296,11 +1297,11 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, event_info, *args, **kargs)
|
function(object, event_info, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_MOUSE_OUT, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_MOUSE_OUT, func, *a, **k)
|
||||||
|
|
||||||
def on_mouse_out_del(self, func):
|
def on_mouse_out_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_MOUSE_OUT, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_MOUSE_OUT, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_MOUSE_OUT, func)
|
self.event_callback_del(EVAS_CALLBACK_MOUSE_OUT, func)
|
||||||
|
|
||||||
def on_mouse_down_add(self, func, *a, **k):
|
def on_mouse_down_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_MOUSE_DOWN, ...)
|
"""Same as event_callback_add(EVAS_CALLBACK_MOUSE_DOWN, ...)
|
||||||
|
@ -1309,11 +1310,11 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, event_info, *args, **kargs)
|
function(object, event_info, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_MOUSE_DOWN, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_MOUSE_DOWN, func, *a, **k)
|
||||||
|
|
||||||
def on_mouse_down_del(self, func):
|
def on_mouse_down_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_MOUSE_DOWN, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_MOUSE_DOWN, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_MOUSE_DOWN, func)
|
self.event_callback_del(EVAS_CALLBACK_MOUSE_DOWN, func)
|
||||||
|
|
||||||
def on_mouse_up_add(self, func, *a, **k):
|
def on_mouse_up_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_MOUSE_UP, ...)
|
"""Same as event_callback_add(EVAS_CALLBACK_MOUSE_UP, ...)
|
||||||
|
@ -1322,11 +1323,11 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, event_info, *args, **kargs)
|
function(object, event_info, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_MOUSE_UP, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_MOUSE_UP, func, *a, **k)
|
||||||
|
|
||||||
def on_mouse_up_del(self, func):
|
def on_mouse_up_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_MOUSE_UP, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_MOUSE_UP, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_MOUSE_UP, func)
|
self.event_callback_del(EVAS_CALLBACK_MOUSE_UP, func)
|
||||||
|
|
||||||
def on_mouse_move_add(self, func, *a, **k):
|
def on_mouse_move_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_MOUSE_MOVE, ...)
|
"""Same as event_callback_add(EVAS_CALLBACK_MOUSE_MOVE, ...)
|
||||||
|
@ -1335,11 +1336,11 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, event_info, *args, **kargs)
|
function(object, event_info, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_MOUSE_MOVE, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_MOUSE_MOVE, func, *a, **k)
|
||||||
|
|
||||||
def on_mouse_move_del(self, func):
|
def on_mouse_move_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_MOUSE_MOVE, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_MOUSE_MOVE, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_MOUSE_MOVE, func)
|
self.event_callback_del(EVAS_CALLBACK_MOUSE_MOVE, func)
|
||||||
|
|
||||||
def on_mouse_wheel_add(self, func, *a, **k):
|
def on_mouse_wheel_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_MOUSE_WHEEL, ...)
|
"""Same as event_callback_add(EVAS_CALLBACK_MOUSE_WHEEL, ...)
|
||||||
|
@ -1348,11 +1349,11 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, event_info, *args, **kargs)
|
function(object, event_info, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_MOUSE_WHEEL, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_MOUSE_WHEEL, func, *a, **k)
|
||||||
|
|
||||||
def on_mouse_wheel_del(self, func):
|
def on_mouse_wheel_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_MOUSE_WHEEL, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_MOUSE_WHEEL, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_MOUSE_WHEEL, func)
|
self.event_callback_del(EVAS_CALLBACK_MOUSE_WHEEL, func)
|
||||||
|
|
||||||
def on_free_add(self, func, *a, **k):
|
def on_free_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_FREE, ...)
|
"""Same as event_callback_add(EVAS_CALLBACK_FREE, ...)
|
||||||
|
@ -1364,11 +1365,11 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, *args, **kargs)
|
function(object, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_FREE, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_FREE, func, *a, **k)
|
||||||
|
|
||||||
def on_free_del(self, func):
|
def on_free_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_FREE, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_FREE, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_FREE, func)
|
self.event_callback_del(EVAS_CALLBACK_FREE, func)
|
||||||
|
|
||||||
def on_key_down_add(self, func, *a, **k):
|
def on_key_down_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_KEY_DOWN, ...)
|
"""Same as event_callback_add(EVAS_CALLBACK_KEY_DOWN, ...)
|
||||||
|
@ -1377,11 +1378,11 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, event_info, *args, **kargs)
|
function(object, event_info, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_KEY_DOWN, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_KEY_DOWN, func, *a, **k)
|
||||||
|
|
||||||
def on_key_down_del(self, func):
|
def on_key_down_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_KEY_DOWN, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_KEY_DOWN, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_KEY_DOWN, func)
|
self.event_callback_del(EVAS_CALLBACK_KEY_DOWN, func)
|
||||||
|
|
||||||
def on_key_up_add(self, func, *a, **k):
|
def on_key_up_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_KEY_UP, ...)
|
"""Same as event_callback_add(EVAS_CALLBACK_KEY_UP, ...)
|
||||||
|
@ -1390,11 +1391,11 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, event_info, *args, **kargs)
|
function(object, event_info, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_KEY_UP, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_KEY_UP, func, *a, **k)
|
||||||
|
|
||||||
def on_key_up_del(self, func):
|
def on_key_up_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_KEY_UP, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_KEY_UP, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_KEY_UP, func)
|
self.event_callback_del(EVAS_CALLBACK_KEY_UP, func)
|
||||||
|
|
||||||
def on_focus_in_add(self, func, *a, **k):
|
def on_focus_in_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_FOCUS_IN, ...)
|
"""Same as event_callback_add(EVAS_CALLBACK_FOCUS_IN, ...)
|
||||||
|
@ -1403,11 +1404,11 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, *args, **kargs)
|
function(object, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_FOCUS_IN, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_FOCUS_IN, func, *a, **k)
|
||||||
|
|
||||||
def on_focus_in_del(self, func):
|
def on_focus_in_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_FOCUS_IN, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_FOCUS_IN, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_FOCUS_IN, func)
|
self.event_callback_del(EVAS_CALLBACK_FOCUS_IN, func)
|
||||||
|
|
||||||
def on_focus_out_add(self, func, *a, **k):
|
def on_focus_out_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_FOCUS_OUT, ...)
|
"""Same as event_callback_add(EVAS_CALLBACK_FOCUS_OUT, ...)
|
||||||
|
@ -1416,11 +1417,11 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, *args, **kargs)
|
function(object, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_FOCUS_OUT, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_FOCUS_OUT, func, *a, **k)
|
||||||
|
|
||||||
def on_focus_out_del(self, func):
|
def on_focus_out_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_FOCUS_OUT, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_FOCUS_OUT, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_FOCUS_OUT, func)
|
self.event_callback_del(EVAS_CALLBACK_FOCUS_OUT, func)
|
||||||
|
|
||||||
def on_show_add(self, func, *a, **k):
|
def on_show_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_SHOW, ...)
|
"""Same as event_callback_add(EVAS_CALLBACK_SHOW, ...)
|
||||||
|
@ -1429,11 +1430,11 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, *args, **kargs)
|
function(object, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_SHOW, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_SHOW, func, *a, **k)
|
||||||
|
|
||||||
def on_show_del(self, func):
|
def on_show_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_SHOW, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_SHOW, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_SHOW, func)
|
self.event_callback_del(EVAS_CALLBACK_SHOW, func)
|
||||||
|
|
||||||
def on_hide_add(self, func, *a, **k):
|
def on_hide_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_HIDE, ...)
|
"""Same as event_callback_add(EVAS_CALLBACK_HIDE, ...)
|
||||||
|
@ -1442,11 +1443,11 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, *args, **kargs)
|
function(object, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_HIDE, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_HIDE, func, *a, **k)
|
||||||
|
|
||||||
def on_hide_del(self, func):
|
def on_hide_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_HIDE, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_HIDE, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_HIDE, func)
|
self.event_callback_del(EVAS_CALLBACK_HIDE, func)
|
||||||
|
|
||||||
def on_move_add(self, func, *a, **k):
|
def on_move_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_MOVE, ...)
|
"""Same as event_callback_add(EVAS_CALLBACK_MOVE, ...)
|
||||||
|
@ -1455,11 +1456,11 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, *args, **kargs)
|
function(object, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_MOVE, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_MOVE, func, *a, **k)
|
||||||
|
|
||||||
def on_move_del(self, func):
|
def on_move_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_MOVE, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_MOVE, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_MOVE, func)
|
self.event_callback_del(EVAS_CALLBACK_MOVE, func)
|
||||||
|
|
||||||
def on_resize_add(self, func, *a, **k):
|
def on_resize_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_RESIZE, ...)
|
"""Same as event_callback_add(EVAS_CALLBACK_RESIZE, ...)
|
||||||
|
@ -1468,11 +1469,11 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, *args, **kargs)
|
function(object, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_RESIZE, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_RESIZE, func, *a, **k)
|
||||||
|
|
||||||
def on_resize_del(self, func):
|
def on_resize_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_RESIZE, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_RESIZE, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_RESIZE, func)
|
self.event_callback_del(EVAS_CALLBACK_RESIZE, func)
|
||||||
|
|
||||||
def on_restack_add(self, func, *a, **k):
|
def on_restack_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_RESTACK, ...)
|
"""Same as event_callback_add(EVAS_CALLBACK_RESTACK, ...)
|
||||||
|
@ -1481,11 +1482,11 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, *args, **kargs)
|
function(object, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_RESTACK, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_RESTACK, func, *a, **k)
|
||||||
|
|
||||||
def on_restack_del(self, func):
|
def on_restack_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_RESTACK, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_RESTACK, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_RESTACK, func)
|
self.event_callback_del(EVAS_CALLBACK_RESTACK, func)
|
||||||
|
|
||||||
def on_del_add(self, func, *a, **k):
|
def on_del_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_DEL, ...)
|
"""Same as event_callback_add(EVAS_CALLBACK_DEL, ...)
|
||||||
|
@ -1497,27 +1498,27 @@ cdef class Object(Eo):
|
||||||
|
|
||||||
function(object, *args, **kargs)
|
function(object, *args, **kargs)
|
||||||
"""
|
"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_DEL, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_DEL, func, *a, **k)
|
||||||
|
|
||||||
def on_del_del(self, func):
|
def on_del_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_DEL, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_DEL, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_DEL, func)
|
self.event_callback_del(EVAS_CALLBACK_DEL, func)
|
||||||
|
|
||||||
def on_hold_add(self, func, *a, **k):
|
def on_hold_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_HOLD, ...)"""
|
"""Same as event_callback_add(EVAS_CALLBACK_HOLD, ...)"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_HOLD, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_HOLD, func, *a, **k)
|
||||||
|
|
||||||
def on_hold_del(self, func):
|
def on_hold_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_HOLD, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_HOLD, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_HOLD, func)
|
self.event_callback_del(EVAS_CALLBACK_HOLD, func)
|
||||||
|
|
||||||
def on_changed_size_hints_add(self, func, *a, **k):
|
def on_changed_size_hints_add(self, func, *a, **k):
|
||||||
"""Same as event_callback_add(EVAS_CALLBACK_CHANGED_SIZE_HINTS, ...)"""
|
"""Same as event_callback_add(EVAS_CALLBACK_CHANGED_SIZE_HINTS, ...)"""
|
||||||
self.event_callback_add(enums.EVAS_CALLBACK_CHANGED_SIZE_HINTS, func, *a, **k)
|
self.event_callback_add(EVAS_CALLBACK_CHANGED_SIZE_HINTS, func, *a, **k)
|
||||||
|
|
||||||
def on_changed_size_hints_del(self, func):
|
def on_changed_size_hints_del(self, func):
|
||||||
"""Same as event_callback_del(EVAS_CALLBACK_CHANGED_SIZE_HINTS, ...)"""
|
"""Same as event_callback_del(EVAS_CALLBACK_CHANGED_SIZE_HINTS, ...)"""
|
||||||
self.event_callback_del(enums.EVAS_CALLBACK_CHANGED_SIZE_HINTS, func)
|
self.event_callback_del(EVAS_CALLBACK_CHANGED_SIZE_HINTS, func)
|
||||||
|
|
||||||
property pass_events:
|
property pass_events:
|
||||||
"""Whenever object should ignore and pass events.
|
"""Whenever object should ignore and pass events.
|
||||||
|
|
|
@ -249,37 +249,37 @@ cdef void cb_object_canvas_render_post(void *data, Evas *e,
|
||||||
cdef int evas_object_event_callbacks_len
|
cdef int evas_object_event_callbacks_len
|
||||||
cdef Evas_Object_Event_Cb evas_object_event_callbacks[34]
|
cdef Evas_Object_Event_Cb evas_object_event_callbacks[34]
|
||||||
evas_object_event_callbacks_len = 34
|
evas_object_event_callbacks_len = 34
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_MOUSE_IN] = cb_object_mouse_in
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_MOUSE_IN] = cb_object_mouse_in
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_MOUSE_OUT] = cb_object_mouse_out
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_MOUSE_OUT] = cb_object_mouse_out
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_MOUSE_DOWN] = cb_object_mouse_down
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_MOUSE_DOWN] = cb_object_mouse_down
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_MOUSE_UP] = cb_object_mouse_up
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_MOUSE_UP] = cb_object_mouse_up
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_MOUSE_MOVE] = cb_object_mouse_move
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_MOUSE_MOVE] = cb_object_mouse_move
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_MOUSE_WHEEL] = cb_object_mouse_wheel
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_MOUSE_WHEEL] = cb_object_mouse_wheel
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_MULTI_DOWN] = cb_object_multi_down
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_MULTI_DOWN] = cb_object_multi_down
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_MULTI_UP] = cb_object_multi_up
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_MULTI_UP] = cb_object_multi_up
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_MULTI_MOVE] = cb_object_multi_move
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_MULTI_MOVE] = cb_object_multi_move
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_FREE] = cb_object_free
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_FREE] = cb_object_free
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_KEY_DOWN] = cb_object_key_down
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_KEY_DOWN] = cb_object_key_down
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_KEY_UP] = cb_object_key_up
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_KEY_UP] = cb_object_key_up
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_FOCUS_IN] = cb_object_focus_in
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_FOCUS_IN] = cb_object_focus_in
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_FOCUS_OUT] = cb_object_focus_out
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_FOCUS_OUT] = cb_object_focus_out
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_SHOW] = cb_object_show
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_SHOW] = cb_object_show
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_HIDE] = cb_object_hide
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_HIDE] = cb_object_hide
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_MOVE] = cb_object_move
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_MOVE] = cb_object_move
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_RESIZE] = cb_object_resize
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_RESIZE] = cb_object_resize
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_RESTACK] = cb_object_restack
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_RESTACK] = cb_object_restack
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_DEL] = cb_object_del
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_DEL] = cb_object_del
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_HOLD] = cb_object_hold
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_HOLD] = cb_object_hold
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_CHANGED_SIZE_HINTS] = cb_object_changed_size_hints
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_CHANGED_SIZE_HINTS] = cb_object_changed_size_hints
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_IMAGE_PRELOADED] = cb_object_image_preloaded
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_IMAGE_PRELOADED] = cb_object_image_preloaded
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_CANVAS_FOCUS_IN] = cb_object_canvas_focus_in
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_CANVAS_FOCUS_IN] = cb_object_canvas_focus_in
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_CANVAS_FOCUS_OUT] = cb_object_canvas_focus_out
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_CANVAS_FOCUS_OUT] = cb_object_canvas_focus_out
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_RENDER_FLUSH_PRE] = cb_object_render_flush_pre
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_RENDER_FLUSH_PRE] = cb_object_render_flush_pre
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_RENDER_FLUSH_POST] = cb_object_render_flush_post
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_RENDER_FLUSH_POST] = cb_object_render_flush_post
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN] = cb_object_canvas_object_focus_in
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN] = cb_object_canvas_object_focus_in
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT] = cb_object_canvas_object_focus_out
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT] = cb_object_canvas_object_focus_out
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_IMAGE_UNLOADED] = cb_object_image_unloaded
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_IMAGE_UNLOADED] = cb_object_image_unloaded
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_RENDER_PRE] = cb_object_canvas_render_pre
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_RENDER_PRE] = cb_object_canvas_render_pre
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_RENDER_POST] = cb_object_canvas_render_post
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_RENDER_POST] = cb_object_canvas_render_post
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_IMAGE_RESIZE] = cb_object_image_resize
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_IMAGE_RESIZE] = cb_object_image_resize
|
||||||
evas_object_event_callbacks[EVAS_CALLBACK_DEVICE_CHANGED] = cb_object_device_changed
|
evas_object_event_callbacks[<int>EVAS_CALLBACK_DEVICE_CHANGED] = cb_object_device_changed
|
||||||
|
|
|
@ -58,15 +58,6 @@
|
||||||
|
|
||||||
from libc.stdlib cimport malloc
|
from libc.stdlib cimport malloc
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
cdef class TextgridCell(object):
|
cdef class TextgridCell(object):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,286 +0,0 @@
|
||||||
# Copyright (C) 2007-2015 various contributors (see AUTHORS)
|
|
||||||
#
|
|
||||||
# This file is part of Python-EFL.
|
|
||||||
#
|
|
||||||
# Python-EFL is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU Lesser General Public
|
|
||||||
# License as published by the Free Software Foundation; either
|
|
||||||
# version 3 of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# Python-EFL is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# Lesser General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
|
||||||
# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
cdef extern from "Evas.h":
|
|
||||||
ctypedef enum:
|
|
||||||
EVAS_LAYER_MIN # bottom-most layer number
|
|
||||||
EVAS_LAYER_MAX # top-most layer number
|
|
||||||
|
|
||||||
EVAS_COLOR_SPACE_ARGB # Not used for anything
|
|
||||||
EVAS_COLOR_SPACE_AHSV # Not used for anything
|
|
||||||
EVAS_TEXT_INVALID # Not used for anything
|
|
||||||
EVAS_TEXT_SPECIAL # Not used for anything
|
|
||||||
|
|
||||||
EVAS_HINT_EXPAND # Use with evas_object_size_hint_weight_set(),
|
|
||||||
# evas_object_size_hint_weight_get(),
|
|
||||||
# evas_object_size_hint_expand_set(),
|
|
||||||
# evas_object_size_hint_expand_get()
|
|
||||||
EVAS_HINT_FILL # Use with evas_object_size_hint_align_set(),
|
|
||||||
# evas_object_size_hint_align_get(),
|
|
||||||
# evas_object_size_hint_fill_set(),
|
|
||||||
# evas_object_size_hint_fill_get()
|
|
||||||
|
|
||||||
EVAS_SMART_CLASS_VERSION
|
|
||||||
|
|
||||||
ctypedef enum Evas_BiDi_Direction:
|
|
||||||
EVAS_BIDI_DIRECTION_NATURAL
|
|
||||||
EVAS_BIDI_DIRECTION_NEUTRAL
|
|
||||||
EVAS_BIDI_DIRECTION_LTR
|
|
||||||
EVAS_BIDI_DIRECTION_RTL
|
|
||||||
|
|
||||||
ctypedef enum Evas_Callback_Type:
|
|
||||||
# The types of events triggering a callback
|
|
||||||
#
|
|
||||||
# The following events are only for use with Evas objects, with
|
|
||||||
# evas_object_event_callback_add():
|
|
||||||
EVAS_CALLBACK_MOUSE_IN # Mouse In Event
|
|
||||||
EVAS_CALLBACK_MOUSE_OUT # Mouse Out Event
|
|
||||||
EVAS_CALLBACK_MOUSE_DOWN # Mouse Button Down Event
|
|
||||||
EVAS_CALLBACK_MOUSE_UP # Mouse Button Up Event
|
|
||||||
EVAS_CALLBACK_MOUSE_MOVE # Mouse Move Event
|
|
||||||
EVAS_CALLBACK_MOUSE_WHEEL # Mouse Wheel Event
|
|
||||||
EVAS_CALLBACK_MULTI_DOWN # Multi-touch Down Event
|
|
||||||
EVAS_CALLBACK_MULTI_UP # Multi-touch Up Event
|
|
||||||
EVAS_CALLBACK_MULTI_MOVE # Multi-touch Move Event
|
|
||||||
EVAS_CALLBACK_FREE # Object Being Freed (Called after Del)
|
|
||||||
EVAS_CALLBACK_KEY_DOWN # Key Press Event
|
|
||||||
EVAS_CALLBACK_KEY_UP # Key Release Event
|
|
||||||
EVAS_CALLBACK_FOCUS_IN # Focus In Event
|
|
||||||
EVAS_CALLBACK_FOCUS_OUT # Focus Out Event
|
|
||||||
EVAS_CALLBACK_SHOW # Show Event
|
|
||||||
EVAS_CALLBACK_HIDE # Hide Event
|
|
||||||
EVAS_CALLBACK_MOVE # Move Event
|
|
||||||
EVAS_CALLBACK_RESIZE # Resize Event
|
|
||||||
EVAS_CALLBACK_RESTACK # Restack Event
|
|
||||||
EVAS_CALLBACK_DEL # Object Being Deleted (called before Free)
|
|
||||||
EVAS_CALLBACK_HOLD # Events go on/off hold
|
|
||||||
EVAS_CALLBACK_CHANGED_SIZE_HINTS # Size hints changed event
|
|
||||||
EVAS_CALLBACK_IMAGE_PRELOADED # Image has been preloaded
|
|
||||||
|
|
||||||
# The following events are only for use with Evas canvases, with
|
|
||||||
# evas_event_callback_add():
|
|
||||||
EVAS_CALLBACK_CANVAS_FOCUS_IN # Canvas got focus as a whole
|
|
||||||
EVAS_CALLBACK_CANVAS_FOCUS_OUT # Canvas lost focus as a whole
|
|
||||||
EVAS_CALLBACK_RENDER_FLUSH_PRE # Called just before rendering is updated on the canvas target
|
|
||||||
EVAS_CALLBACK_RENDER_FLUSH_POST # Called just after rendering is updated on the canvas target
|
|
||||||
EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN # Canvas object got focus
|
|
||||||
EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT # Canvas object lost focus
|
|
||||||
|
|
||||||
# More Evas object event types - see evas_object_event_callback_add():
|
|
||||||
EVAS_CALLBACK_IMAGE_UNLOADED # Image data has been unloaded (by some mechanism in Evas that throw out original image data)
|
|
||||||
|
|
||||||
EVAS_CALLBACK_RENDER_PRE # Called just before rendering starts on the canvas target @since 1.2
|
|
||||||
EVAS_CALLBACK_RENDER_POST # Called just after rendering stops on the canvas target @since 1.2
|
|
||||||
|
|
||||||
EVAS_CALLBACK_IMAGE_RESIZE # Image size is changed @since 1.8
|
|
||||||
EVAS_CALLBACK_DEVICE_CHANGED # Devices added, removed or changed on canvas @since 1.8
|
|
||||||
EVAS_CALLBACK_LAST # kept as last element/sentinel -- not really an event
|
|
||||||
|
|
||||||
ctypedef enum Evas_Button_Flags:
|
|
||||||
# Flags for Mouse Button events
|
|
||||||
EVAS_BUTTON_NONE # No extra mouse button data
|
|
||||||
EVAS_BUTTON_DOUBLE_CLICK # This mouse button press was the 2nd press of a double click
|
|
||||||
EVAS_BUTTON_TRIPLE_CLICK # This mouse button press was the 3rd press of a triple click
|
|
||||||
|
|
||||||
ctypedef enum Evas_Event_Flags:
|
|
||||||
# Flags for Events
|
|
||||||
EVAS_EVENT_FLAG_NONE # No fancy flags set
|
|
||||||
EVAS_EVENT_FLAG_ON_HOLD # This event is being delivered but should be put "on hold" until the on hold flag is unset. the event should be used for informational purposes and maybe some indications visually, but not actually perform anything
|
|
||||||
EVAS_EVENT_FLAG_ON_SCROLL # This event flag indicates the event occurs while scrolling; for example, DOWN event occurs during scrolling; the event should be used for informational purposes and maybe some indications visually, but not actually perform anything
|
|
||||||
|
|
||||||
ctypedef enum Evas_Touch_Point_State:
|
|
||||||
EVAS_TOUCH_POINT_DOWN # Touch point is pressed down
|
|
||||||
EVAS_TOUCH_POINT_UP # Touch point is released
|
|
||||||
EVAS_TOUCH_POINT_MOVE # Touch point is moved
|
|
||||||
EVAS_TOUCH_POINT_STILL # Touch point is not moved after pressed
|
|
||||||
EVAS_TOUCH_POINT_CANCEL # Touch point is cancelled
|
|
||||||
|
|
||||||
ctypedef enum Evas_Font_Hinting_Flags:
|
|
||||||
# Flags for Font Hinting
|
|
||||||
EVAS_FONT_HINTING_NONE # No font hinting
|
|
||||||
EVAS_FONT_HINTING_AUTO # Automatic font hinting
|
|
||||||
EVAS_FONT_HINTING_BYTECODE # Bytecode font hinting
|
|
||||||
|
|
||||||
ctypedef enum Evas_Colorspace:
|
|
||||||
# Colorspaces for pixel data supported by Evas
|
|
||||||
EVAS_COLORSPACE_ARGB8888 # ARGB 32 bits per pixel, high-byte is Alpha, accessed 1 32bit word at a time
|
|
||||||
# these are not currently supported - but planned for the future
|
|
||||||
EVAS_COLORSPACE_YCBCR422P601_PL # YCbCr 4:2:2 Planar, ITU.BT-601 specifications. The data pointed to is just an array of row pointer, pointing to the Y rows, then the Cb, then Cr rows
|
|
||||||
EVAS_COLORSPACE_YCBCR422P709_PL # YCbCr 4:2:2 Planar, ITU.BT-709 specifications. The data pointed to is just an array of row pointer, pointing to the Y rows, then the Cb, then Cr rows
|
|
||||||
EVAS_COLORSPACE_RGB565_A5P # 16bit rgb565 + Alpha plane at end - 5 bits of the 8 being used per alpha byte
|
|
||||||
EVAS_COLORSPACE_GRY8 # 8bit grayscale
|
|
||||||
EVAS_COLORSPACE_YCBCR422601_PL # YCbCr 4:2:2, ITU.BT-601 specifications. The data pointed to is just an array of row pointer, pointing to line of Y,Cb,Y,Cr bytes
|
|
||||||
EVAS_COLORSPACE_YCBCR420NV12601_PL # YCbCr 4:2:0, ITU.BT-601 specification. The data pointed to is just an array of row pointer, pointing to the Y rows, then the Cb,Cr rows.
|
|
||||||
EVAS_COLORSPACE_YCBCR420TM12601_PL # YCbCr 4:2:0, ITU.BT-601 specification. The data pointed to is just an array of tiled row pointer, pointing to the Y rows, then the Cb,Cr rows.
|
|
||||||
|
|
||||||
ctypedef enum Evas_Object_Table_Homogeneous_Mode:
|
|
||||||
# Table cell pack mode.
|
|
||||||
EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE
|
|
||||||
EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE
|
|
||||||
EVAS_OBJECT_TABLE_HOMOGENEOUS_ITEM
|
|
||||||
|
|
||||||
ctypedef enum Evas_Aspect_Control:
|
|
||||||
# Aspect types/policies for scaling size hints, used for evas_object_size_hint_aspect_set()
|
|
||||||
EVAS_ASPECT_CONTROL_NONE # Preference on scaling unset
|
|
||||||
EVAS_ASPECT_CONTROL_NEITHER # Same effect as unset preference on scaling
|
|
||||||
EVAS_ASPECT_CONTROL_HORIZONTAL # Use all horizontal container space to place an object, using the given aspect
|
|
||||||
EVAS_ASPECT_CONTROL_VERTICAL # Use all vertical container space to place an object, using the given aspect
|
|
||||||
EVAS_ASPECT_CONTROL_BOTH # Use all horizontal @b and vertical container spaces to place an object (never growing it out of those bounds), using the given aspect
|
|
||||||
|
|
||||||
ctypedef enum Evas_Display_Mode:
|
|
||||||
# object's display mode type related with compress/expand or etc mode
|
|
||||||
EVAS_DISPLAY_MODE_NONE # Default mode
|
|
||||||
EVAS_DISPLAY_MODE_COMPRESS # Use this mode want to give compress display mode hint to object
|
|
||||||
EVAS_DISPLAY_MODE_EXPAND # Use this mode want to give expand display mode hint to object
|
|
||||||
EVAS_DISPLAY_MODE_DONT_CHANGE # Use this mode when object should not change display mode
|
|
||||||
|
|
||||||
ctypedef enum Evas_Load_Error:
|
|
||||||
# Evas image load error codes one can get - see evas_load_error_str() too.
|
|
||||||
EVAS_LOAD_ERROR_NONE # No error on load
|
|
||||||
EVAS_LOAD_ERROR_GENERIC # A non-specific error occurred
|
|
||||||
EVAS_LOAD_ERROR_DOES_NOT_EXIST # File (or file path) does not exist
|
|
||||||
EVAS_LOAD_ERROR_PERMISSION_DENIED # Permission denied to an existing file (or path)
|
|
||||||
EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED # Allocation of resources failure prevented load
|
|
||||||
EVAS_LOAD_ERROR_CORRUPT_FILE # File corrupt (but was detected as a known format)
|
|
||||||
EVAS_LOAD_ERROR_UNKNOWN_FORMAT # File is not a known format
|
|
||||||
|
|
||||||
ctypedef enum Evas_Alloc_Error:
|
|
||||||
# Possible allocation errors returned by evas_alloc_error()
|
|
||||||
EVAS_ALLOC_ERROR_NONE # No allocation error
|
|
||||||
EVAS_ALLOC_ERROR_FATAL # Allocation failed despite attempts to free up memory
|
|
||||||
EVAS_ALLOC_ERROR_RECOVERED # Allocation succeeded, but extra memory had to be found by freeing up speculative resources
|
|
||||||
|
|
||||||
ctypedef enum Evas_Fill_Spread:
|
|
||||||
# Fill types used for evas_object_image_fill_spread_set()
|
|
||||||
EVAS_TEXTURE_REFLECT # image fill tiling mode - tiling reflects
|
|
||||||
EVAS_TEXTURE_REPEAT # tiling repeats
|
|
||||||
EVAS_TEXTURE_RESTRICT # tiling clamps - range offset ignored
|
|
||||||
EVAS_TEXTURE_RESTRICT_REFLECT # tiling clamps and any range offset reflects
|
|
||||||
EVAS_TEXTURE_RESTRICT_REPEAT # tiling clamps and any range offset repeats
|
|
||||||
EVAS_TEXTURE_PAD # tiling extends with end values
|
|
||||||
|
|
||||||
ctypedef enum Evas_Pixel_Import_Pixel_Format:
|
|
||||||
# Pixel format for import call. See evas_object_image_pixels_import()
|
|
||||||
EVAS_PIXEL_FORMAT_NONE # No pixel format
|
|
||||||
EVAS_PIXEL_FORMAT_ARGB32 # ARGB 32bit pixel format with A in the high byte per 32bit pixel word
|
|
||||||
EVAS_PIXEL_FORMAT_YUV420P_601 # YUV 420 Planar format with CCIR 601 color encoding with contiguous planes in the order Y, U and V
|
|
||||||
|
|
||||||
ctypedef enum Evas_Native_Surface_Type:
|
|
||||||
EVAS_NATIVE_SURFACE_NONE
|
|
||||||
EVAS_NATIVE_SURFACE_X11
|
|
||||||
EVAS_NATIVE_SURFACE_OPENGL
|
|
||||||
|
|
||||||
ctypedef enum Evas_Render_Op:
|
|
||||||
# How the object should be rendered to output.
|
|
||||||
EVAS_RENDER_BLEND # default op: d = d*(1-sa) + s
|
|
||||||
EVAS_RENDER_BLEND_REL # d = d*(1 - sa) + s*da
|
|
||||||
EVAS_RENDER_COPY # d = s
|
|
||||||
EVAS_RENDER_COPY_REL # d = s*da
|
|
||||||
EVAS_RENDER_ADD # d = d + s
|
|
||||||
EVAS_RENDER_ADD_REL # d = d + s*da
|
|
||||||
EVAS_RENDER_SUB # d = d - s
|
|
||||||
EVAS_RENDER_SUB_REL # d = d - s*da
|
|
||||||
EVAS_RENDER_TINT # d = d*s + d*(1 - sa) + s*(1 - da)
|
|
||||||
EVAS_RENDER_TINT_REL # d = d*(1 - sa + s)
|
|
||||||
EVAS_RENDER_MASK # d = d*sa
|
|
||||||
EVAS_RENDER_MUL # d = d*s
|
|
||||||
|
|
||||||
ctypedef enum Evas_Border_Fill_Mode:
|
|
||||||
# How an image's center region (the complement to the border region) should be rendered by Evas
|
|
||||||
EVAS_BORDER_FILL_NONE # Image's center region is @b not to be rendered
|
|
||||||
EVAS_BORDER_FILL_DEFAULT # Image's center region is to be @b blended with objects underneath it, if it has transparency. This is the default behavior for image objects
|
|
||||||
EVAS_BORDER_FILL_SOLID # Image's center region is to be made solid, even if it has transparency on it
|
|
||||||
|
|
||||||
ctypedef enum Evas_Image_Scale_Hint:
|
|
||||||
# How an image's data is to be treated by Evas, with regard to scaling cache
|
|
||||||
EVAS_IMAGE_SCALE_HINT_NONE # No scale hint at all
|
|
||||||
EVAS_IMAGE_SCALE_HINT_DYNAMIC # Image is being re-scaled over time, thus turning scaling cache @b off for its data
|
|
||||||
EVAS_IMAGE_SCALE_HINT_STATIC # Image is not being re-scaled over time, thus turning scaling cache @b on for its data
|
|
||||||
|
|
||||||
ctypedef enum Evas_Image_Animated_Loop_Hint:
|
|
||||||
EVAS_IMAGE_ANIMATED_HINT_NONE
|
|
||||||
EVAS_IMAGE_ANIMATED_HINT_LOOP # Image's animation mode is loop like 1->2->3->1->2->3
|
|
||||||
EVAS_IMAGE_ANIMATED_HINT_PINGPONG # Image's animation mode is pingpong like 1->2->3->2->1-> ...
|
|
||||||
|
|
||||||
ctypedef enum Evas_Engine_Render_Mode:
|
|
||||||
EVAS_RENDER_MODE_BLOCKING
|
|
||||||
EVAS_RENDER_MODE_NONBLOCKING
|
|
||||||
|
|
||||||
ctypedef enum Evas_Image_Content_Hint:
|
|
||||||
# How an image's data is to be treated by Evas, for optimization
|
|
||||||
EVAS_IMAGE_CONTENT_HINT_NONE # No hint at all
|
|
||||||
EVAS_IMAGE_CONTENT_HINT_DYNAMIC # The contents will change over time
|
|
||||||
EVAS_IMAGE_CONTENT_HINT_STATIC # The contents won't change over time
|
|
||||||
|
|
||||||
ctypedef enum Evas_Device_Class:
|
|
||||||
EVAS_DEVICE_CLASS_NONE # Not a device @since 1.8
|
|
||||||
EVAS_DEVICE_CLASS_SEAT # The user/seat (the user themselves) @since 1.8
|
|
||||||
EVAS_DEVICE_CLASS_KEYBOARD # A regular keyboard, numberpad or attached buttons @since 1.8
|
|
||||||
EVAS_DEVICE_CLASS_MOUSE # A mouse, trackball or touchpad relative motion device @since 1.8
|
|
||||||
EVAS_DEVICE_CLASS_TOUCH # A touchscreen with fingers or stylus @since 1.8
|
|
||||||
EVAS_DEVICE_CLASS_PEN # A special pen device @since 1.8
|
|
||||||
EVAS_DEVICE_CLASS_POINTER # A laser pointer, wii-style or "minority report" pointing device @since 1.8
|
|
||||||
EVAS_DEVICE_CLASS_GAMEPAD # A gamepad controller or joystick @since 1.8
|
|
||||||
|
|
||||||
ctypedef enum Evas_Object_Pointer_Mode:
|
|
||||||
# How the mouse pointer should be handled by Evas.
|
|
||||||
EVAS_OBJECT_POINTER_MODE_AUTOGRAB # default, X11-like
|
|
||||||
EVAS_OBJECT_POINTER_MODE_NOGRAB # pointer always bound to the object right below it
|
|
||||||
EVAS_OBJECT_POINTER_MODE_NOGRAB_NO_REPEAT_UPDOWN # useful on object with "repeat events" enabled, where mouse/touch up and down events WONT be repeated to objects and these objects wont be auto-grabbed. @since 1.2
|
|
||||||
|
|
||||||
ctypedef enum Evas_Text_Style_Type:
|
|
||||||
# Types of styles to be applied on text objects. The @c EVAS_TEXT_STYLE_SHADOW_DIRECTION_* ones are to be ORed together with others imposing shadow, to change shadow's direction
|
|
||||||
EVAS_TEXT_STYLE_PLAIN # plain, standard text
|
|
||||||
EVAS_TEXT_STYLE_SHADOW # text with shadow underneath
|
|
||||||
EVAS_TEXT_STYLE_OUTLINE # text with an outline
|
|
||||||
EVAS_TEXT_STYLE_SOFT_OUTLINE # text with a soft outline
|
|
||||||
EVAS_TEXT_STYLE_GLOW # text with a glow effect
|
|
||||||
EVAS_TEXT_STYLE_OUTLINE_SHADOW # text with both outline and shadow effects
|
|
||||||
EVAS_TEXT_STYLE_FAR_SHADOW # text with (far) shadow underneath
|
|
||||||
EVAS_TEXT_STYLE_OUTLINE_SOFT_SHADOW # text with outline and soft shadow effects combined
|
|
||||||
EVAS_TEXT_STYLE_SOFT_SHADOW # text with (soft) shadow underneath
|
|
||||||
EVAS_TEXT_STYLE_FAR_SOFT_SHADOW # text with (far soft) shadow underneath
|
|
||||||
|
|
||||||
# OR these to modify shadow direction (3 bits needed)
|
|
||||||
EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_RIGHT # shadow growing to bottom right
|
|
||||||
EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM # shadow growing to the bottom
|
|
||||||
EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_LEFT # shadow growing to bottom left
|
|
||||||
EVAS_TEXT_STYLE_SHADOW_DIRECTION_LEFT # shadow growing to the left
|
|
||||||
EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP_LEFT # shadow growing to top left
|
|
||||||
EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP # shadow growing to the top
|
|
||||||
EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP_RIGHT # shadow growing to top right
|
|
||||||
EVAS_TEXT_STYLE_SHADOW_DIRECTION_RIGHT # shadow growing to the right
|
|
||||||
|
|
||||||
ctypedef enum Evas_Textblock_Text_Type:
|
|
||||||
EVAS_TEXTBLOCK_TEXT_RAW
|
|
||||||
EVAS_TEXTBLOCK_TEXT_PLAIN
|
|
||||||
EVAS_TEXTBLOCK_TEXT_MARKUP
|
|
||||||
|
|
||||||
ctypedef enum Evas_Textblock_Cursor_Type:
|
|
||||||
EVAS_TEXTBLOCK_CURSOR_UNDER
|
|
||||||
EVAS_TEXTBLOCK_CURSOR_BEFORE
|
|
||||||
|
|
||||||
ctypedef enum Evas_Textgrid_Palette:
|
|
||||||
EVAS_TEXTGRID_PALETTE_NONE # No palette is used
|
|
||||||
EVAS_TEXTGRID_PALETTE_STANDARD # standard palette (around 16 colors)
|
|
||||||
EVAS_TEXTGRID_PALETTE_EXTENDED # extended palette (at max 256 colors)
|
|
||||||
EVAS_TEXTGRID_PALETTE_LAST # ignore it
|
|
||||||
|
|
||||||
ctypedef enum Evas_Textgrid_Font_Style:
|
|
||||||
EVAS_TEXTGRID_FONT_STYLE_NORMAL # Normal style
|
|
||||||
EVAS_TEXTGRID_FONT_STYLE_BOLD # Bold style
|
|
||||||
EVAS_TEXTGRID_FONT_STYLE_ITALIC # Oblique style
|
|
|
@ -18,16 +18,10 @@
|
||||||
from efl.eina cimport *
|
from efl.eina cimport *
|
||||||
from efl.eo cimport Eo
|
from efl.eo cimport Eo
|
||||||
from efl.c_eo cimport Eo as cEo, Eo_Class
|
from efl.c_eo cimport Eo as cEo, Eo_Class
|
||||||
from efl.evas.enums cimport Evas_Event_Flags, Evas_Button_Flags, \
|
|
||||||
Evas_Font_Hinting_Flags, Evas_Aspect_Control, Evas_Render_Op, \
|
|
||||||
Evas_Callback_Type, Evas_Object_Pointer_Mode, Evas_Colorspace, \
|
|
||||||
Evas_Text_Style_Type, Evas_Textblock_Text_Type, \
|
|
||||||
Evas_Textgrid_Palette, Evas_Textgrid_Font_Style, \
|
|
||||||
Evas_Fill_Spread, Evas_Image_Scale_Hint, Evas_Image_Content_Hint, \
|
|
||||||
Evas_Image_Animated_Loop_Hint, Evas_Object_Table_Homogeneous_Mode, \
|
|
||||||
Evas_Display_Mode
|
|
||||||
|
|
||||||
cdef extern from "Evas.h":
|
cdef extern from "Evas.h":
|
||||||
|
|
||||||
####################################################################
|
####################################################################
|
||||||
# Basic Types
|
# Basic Types
|
||||||
#
|
#
|
||||||
|
@ -36,6 +30,303 @@ cdef extern from "Evas.h":
|
||||||
ctypedef int Evas_Font_Size
|
ctypedef int Evas_Font_Size
|
||||||
ctypedef unsigned long long Evas_Modifier_Mask
|
ctypedef unsigned long long Evas_Modifier_Mask
|
||||||
|
|
||||||
|
####################################################################
|
||||||
|
# #define (this are not really correct, but works)
|
||||||
|
#
|
||||||
|
cpdef enum:
|
||||||
|
EVAS_LAYER_MIN
|
||||||
|
EVAS_LAYER_MAX
|
||||||
|
|
||||||
|
EVAS_COLOR_SPACE_ARGB
|
||||||
|
EVAS_COLOR_SPACE_AHSV
|
||||||
|
|
||||||
|
EVAS_TEXT_INVALID
|
||||||
|
EVAS_TEXT_SPECIAL
|
||||||
|
|
||||||
|
EVAS_HINT_EXPAND # ERROR expand to 1, should be 1.0
|
||||||
|
EVAS_HINT_FILL # ERROR expand to -1, should be -1.0
|
||||||
|
|
||||||
|
EVAS_SMART_CLASS_VERSION
|
||||||
|
|
||||||
|
####################################################################
|
||||||
|
# Enums
|
||||||
|
#
|
||||||
|
cpdef enum Evas_Button_Flags:
|
||||||
|
EVAS_BUTTON_NONE
|
||||||
|
EVAS_BUTTON_DOUBLE_CLICK
|
||||||
|
EVAS_BUTTON_TRIPLE_CLICK
|
||||||
|
ctypedef enum Evas_Button_Flags:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_BiDi_Direction:
|
||||||
|
EVAS_BIDI_DIRECTION_NATURAL
|
||||||
|
EVAS_BIDI_DIRECTION_NEUTRAL
|
||||||
|
EVAS_BIDI_DIRECTION_LTR
|
||||||
|
EVAS_BIDI_DIRECTION_RTL
|
||||||
|
ctypedef enum Evas_BiDi_Direction:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Callback_Type:
|
||||||
|
EVAS_CALLBACK_MOUSE_IN
|
||||||
|
EVAS_CALLBACK_MOUSE_OUT
|
||||||
|
EVAS_CALLBACK_MOUSE_DOWN
|
||||||
|
EVAS_CALLBACK_MOUSE_UP
|
||||||
|
EVAS_CALLBACK_MOUSE_MOVE
|
||||||
|
EVAS_CALLBACK_MOUSE_WHEEL
|
||||||
|
EVAS_CALLBACK_MULTI_DOWN
|
||||||
|
EVAS_CALLBACK_MULTI_UP
|
||||||
|
EVAS_CALLBACK_MULTI_MOVE
|
||||||
|
EVAS_CALLBACK_FREE
|
||||||
|
EVAS_CALLBACK_KEY_DOWN
|
||||||
|
EVAS_CALLBACK_KEY_UP
|
||||||
|
EVAS_CALLBACK_FOCUS_IN
|
||||||
|
EVAS_CALLBACK_FOCUS_OUT
|
||||||
|
EVAS_CALLBACK_SHOW
|
||||||
|
EVAS_CALLBACK_HIDE
|
||||||
|
EVAS_CALLBACK_MOVE
|
||||||
|
EVAS_CALLBACK_RESIZE
|
||||||
|
EVAS_CALLBACK_RESTACK
|
||||||
|
EVAS_CALLBACK_DEL
|
||||||
|
EVAS_CALLBACK_HOLD
|
||||||
|
EVAS_CALLBACK_CHANGED_SIZE_HINTS
|
||||||
|
EVAS_CALLBACK_IMAGE_PRELOADED
|
||||||
|
EVAS_CALLBACK_CANVAS_FOCUS_IN
|
||||||
|
EVAS_CALLBACK_CANVAS_FOCUS_OUT
|
||||||
|
EVAS_CALLBACK_RENDER_FLUSH_PRE
|
||||||
|
EVAS_CALLBACK_RENDER_FLUSH_POST
|
||||||
|
EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN
|
||||||
|
EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT
|
||||||
|
EVAS_CALLBACK_IMAGE_UNLOADED
|
||||||
|
EVAS_CALLBACK_RENDER_PRE
|
||||||
|
EVAS_CALLBACK_RENDER_POST
|
||||||
|
EVAS_CALLBACK_IMAGE_RESIZE
|
||||||
|
EVAS_CALLBACK_DEVICE_CHANGED
|
||||||
|
EVAS_CALLBACK_AXIS_UPDATE
|
||||||
|
EVAS_CALLBACK_LAST
|
||||||
|
ctypedef enum Evas_Callback_Type:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Event_Flags:
|
||||||
|
EVAS_EVENT_FLAG_NONE
|
||||||
|
EVAS_EVENT_FLAG_ON_HOLD
|
||||||
|
EVAS_EVENT_FLAG_ON_SCROLL
|
||||||
|
ctypedef enum Evas_Event_Flags:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Touch_Point_State:
|
||||||
|
EVAS_TOUCH_POINT_DOWN
|
||||||
|
EVAS_TOUCH_POINT_UP
|
||||||
|
EVAS_TOUCH_POINT_MOVE
|
||||||
|
EVAS_TOUCH_POINT_STILL
|
||||||
|
EVAS_TOUCH_POINT_CANCEL
|
||||||
|
ctypedef enum Evas_Touch_Point_State:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Font_Hinting_Flags:
|
||||||
|
EVAS_FONT_HINTING_NONE
|
||||||
|
EVAS_FONT_HINTING_AUTO
|
||||||
|
EVAS_FONT_HINTING_BYTECODE
|
||||||
|
ctypedef enum Evas_Font_Hinting_Flags:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Colorspace:
|
||||||
|
EVAS_COLORSPACE_ARGB8888
|
||||||
|
EVAS_COLORSPACE_YCBCR422P601_PL
|
||||||
|
EVAS_COLORSPACE_YCBCR422P709_PL
|
||||||
|
EVAS_COLORSPACE_RGB565_A5P
|
||||||
|
EVAS_COLORSPACE_GRY8
|
||||||
|
EVAS_COLORSPACE_YCBCR422601_PL
|
||||||
|
EVAS_COLORSPACE_YCBCR420NV12601_PL
|
||||||
|
EVAS_COLORSPACE_YCBCR420TM12601_PL
|
||||||
|
ctypedef enum Evas_Colorspace:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Object_Table_Homogeneous_Mode:
|
||||||
|
EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE
|
||||||
|
EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE
|
||||||
|
EVAS_OBJECT_TABLE_HOMOGENEOUS_ITEM
|
||||||
|
ctypedef enum Evas_Object_Table_Homogeneous_Mode:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Aspect_Control:
|
||||||
|
EVAS_ASPECT_CONTROL_NONE
|
||||||
|
EVAS_ASPECT_CONTROL_NEITHER
|
||||||
|
EVAS_ASPECT_CONTROL_HORIZONTAL
|
||||||
|
EVAS_ASPECT_CONTROL_VERTICAL
|
||||||
|
EVAS_ASPECT_CONTROL_BOTH
|
||||||
|
ctypedef enum Evas_Aspect_Control:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Display_Mode:
|
||||||
|
EVAS_DISPLAY_MODE_NONE
|
||||||
|
EVAS_DISPLAY_MODE_COMPRESS
|
||||||
|
EVAS_DISPLAY_MODE_EXPAND
|
||||||
|
EVAS_DISPLAY_MODE_DONT_CHANGE
|
||||||
|
ctypedef enum Evas_Display_Mode:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Load_Error:
|
||||||
|
EVAS_LOAD_ERROR_NONE
|
||||||
|
EVAS_LOAD_ERROR_GENERIC
|
||||||
|
EVAS_LOAD_ERROR_DOES_NOT_EXIST
|
||||||
|
EVAS_LOAD_ERROR_PERMISSION_DENIED
|
||||||
|
EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED
|
||||||
|
EVAS_LOAD_ERROR_CORRUPT_FILE
|
||||||
|
EVAS_LOAD_ERROR_UNKNOWN_FORMAT
|
||||||
|
ctypedef enum Evas_Load_Error:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Alloc_Error:
|
||||||
|
EVAS_ALLOC_ERROR_NONE
|
||||||
|
EVAS_ALLOC_ERROR_FATAL
|
||||||
|
EVAS_ALLOC_ERROR_RECOVERED
|
||||||
|
ctypedef enum Evas_Alloc_Error:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Fill_Spread:
|
||||||
|
EVAS_TEXTURE_REFLECT
|
||||||
|
EVAS_TEXTURE_REPEAT
|
||||||
|
EVAS_TEXTURE_RESTRICT
|
||||||
|
EVAS_TEXTURE_RESTRICT_REFLECT
|
||||||
|
EVAS_TEXTURE_RESTRICT_REPEAT
|
||||||
|
EVAS_TEXTURE_PAD
|
||||||
|
ctypedef enum Evas_Fill_Spread:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Pixel_Import_Pixel_Format:
|
||||||
|
EVAS_PIXEL_FORMAT_NONE
|
||||||
|
EVAS_PIXEL_FORMAT_ARGB32
|
||||||
|
EVAS_PIXEL_FORMAT_YUV420P_601
|
||||||
|
ctypedef enum Evas_Pixel_Import_Pixel_Format:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Native_Surface_Type:
|
||||||
|
EVAS_NATIVE_SURFACE_NONE
|
||||||
|
EVAS_NATIVE_SURFACE_X11
|
||||||
|
EVAS_NATIVE_SURFACE_OPENGL
|
||||||
|
ctypedef enum Evas_Native_Surface_Type:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Render_Op:
|
||||||
|
EVAS_RENDER_BLEND
|
||||||
|
EVAS_RENDER_BLEND_REL
|
||||||
|
EVAS_RENDER_COPY
|
||||||
|
EVAS_RENDER_COPY_REL
|
||||||
|
EVAS_RENDER_ADD
|
||||||
|
EVAS_RENDER_ADD_REL
|
||||||
|
EVAS_RENDER_SUB
|
||||||
|
EVAS_RENDER_SUB_REL
|
||||||
|
EVAS_RENDER_TINT
|
||||||
|
EVAS_RENDER_TINT_REL
|
||||||
|
EVAS_RENDER_MASK
|
||||||
|
EVAS_RENDER_MUL
|
||||||
|
ctypedef enum Evas_Render_Op:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Border_Fill_Mode:
|
||||||
|
EVAS_BORDER_FILL_NONE
|
||||||
|
EVAS_BORDER_FILL_DEFAULT
|
||||||
|
EVAS_BORDER_FILL_SOLID
|
||||||
|
ctypedef enum Evas_Border_Fill_Mode:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Image_Scale_Hint:
|
||||||
|
EVAS_IMAGE_SCALE_HINT_NONE
|
||||||
|
EVAS_IMAGE_SCALE_HINT_DYNAMIC
|
||||||
|
EVAS_IMAGE_SCALE_HINT_STATIC
|
||||||
|
ctypedef enum Evas_Image_Scale_Hint:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Image_Animated_Loop_Hint:
|
||||||
|
EVAS_IMAGE_ANIMATED_HINT_NONE
|
||||||
|
EVAS_IMAGE_ANIMATED_HINT_LOOP
|
||||||
|
EVAS_IMAGE_ANIMATED_HINT_PINGPONG
|
||||||
|
ctypedef enum Evas_Image_Animated_Loop_Hint:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Engine_Render_Mode:
|
||||||
|
EVAS_RENDER_MODE_BLOCKING
|
||||||
|
EVAS_RENDER_MODE_NONBLOCKING
|
||||||
|
ctypedef enum Evas_Engine_Render_Mode:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Image_Content_Hint:
|
||||||
|
EVAS_IMAGE_CONTENT_HINT_NONE
|
||||||
|
EVAS_IMAGE_CONTENT_HINT_DYNAMIC
|
||||||
|
EVAS_IMAGE_CONTENT_HINT_STATIC
|
||||||
|
ctypedef enum Evas_Image_Content_Hint:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Device_Class:
|
||||||
|
EVAS_DEVICE_CLASS_NONE
|
||||||
|
EVAS_DEVICE_CLASS_SEAT
|
||||||
|
EVAS_DEVICE_CLASS_KEYBOARD
|
||||||
|
EVAS_DEVICE_CLASS_MOUSE
|
||||||
|
EVAS_DEVICE_CLASS_TOUCH
|
||||||
|
EVAS_DEVICE_CLASS_PEN
|
||||||
|
EVAS_DEVICE_CLASS_POINTER
|
||||||
|
EVAS_DEVICE_CLASS_GAMEPAD
|
||||||
|
ctypedef enum Evas_Device_Class:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Object_Pointer_Mode:
|
||||||
|
EVAS_OBJECT_POINTER_MODE_AUTOGRAB
|
||||||
|
EVAS_OBJECT_POINTER_MODE_NOGRAB
|
||||||
|
EVAS_OBJECT_POINTER_MODE_NOGRAB_NO_REPEAT_UPDOWN
|
||||||
|
ctypedef enum Evas_Object_Pointer_Mode:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Text_Style_Type:
|
||||||
|
EVAS_TEXT_STYLE_PLAIN
|
||||||
|
EVAS_TEXT_STYLE_SHADOW
|
||||||
|
EVAS_TEXT_STYLE_OUTLINE
|
||||||
|
EVAS_TEXT_STYLE_SOFT_OUTLINE
|
||||||
|
EVAS_TEXT_STYLE_GLOW
|
||||||
|
EVAS_TEXT_STYLE_OUTLINE_SHADOW
|
||||||
|
EVAS_TEXT_STYLE_FAR_SHADOW
|
||||||
|
EVAS_TEXT_STYLE_OUTLINE_SOFT_SHADOW
|
||||||
|
EVAS_TEXT_STYLE_SOFT_SHADOW
|
||||||
|
EVAS_TEXT_STYLE_FAR_SOFT_SHADOW
|
||||||
|
EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_RIGHT
|
||||||
|
EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM
|
||||||
|
EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_LEFT
|
||||||
|
EVAS_TEXT_STYLE_SHADOW_DIRECTION_LEFT
|
||||||
|
EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP_LEFT
|
||||||
|
EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP
|
||||||
|
EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP_RIGHT
|
||||||
|
EVAS_TEXT_STYLE_SHADOW_DIRECTION_RIGHT
|
||||||
|
ctypedef enum Evas_Text_Style_Type:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Textblock_Text_Type:
|
||||||
|
EVAS_TEXTBLOCK_TEXT_RAW
|
||||||
|
EVAS_TEXTBLOCK_TEXT_PLAIN
|
||||||
|
EVAS_TEXTBLOCK_TEXT_MARKUP
|
||||||
|
ctypedef enum Evas_Textblock_Text_Type:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Textblock_Cursor_Type:
|
||||||
|
EVAS_TEXTBLOCK_CURSOR_UNDER
|
||||||
|
EVAS_TEXTBLOCK_CURSOR_BEFORE
|
||||||
|
ctypedef enum Evas_Textblock_Cursor_Type:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Textgrid_Palette:
|
||||||
|
EVAS_TEXTGRID_PALETTE_NONE
|
||||||
|
EVAS_TEXTGRID_PALETTE_STANDARD
|
||||||
|
EVAS_TEXTGRID_PALETTE_EXTENDED
|
||||||
|
EVAS_TEXTGRID_PALETTE_LAST
|
||||||
|
ctypedef enum Evas_Textgrid_Palette:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cpdef enum Evas_Textgrid_Font_Style:
|
||||||
|
EVAS_TEXTGRID_FONT_STYLE_NORMAL
|
||||||
|
EVAS_TEXTGRID_FONT_STYLE_BOLD
|
||||||
|
EVAS_TEXTGRID_FONT_STYLE_ITALIC
|
||||||
|
ctypedef enum Evas_Textgrid_Font_Style:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
####################################################################
|
####################################################################
|
||||||
# Structures
|
# Structures
|
||||||
#
|
#
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -17,7 +17,7 @@ RELEASE = "%d.%d.%d" % (vers[0], vers[1], vers[2])
|
||||||
VERSION = "%d.%d" % (vers[0], vers[1] if vers[2] < 99 else vers[1] + 1)
|
VERSION = "%d.%d" % (vers[0], vers[1] if vers[2] < 99 else vers[1] + 1)
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
CYTHON_MIN_VERSION = "0.19"
|
CYTHON_MIN_VERSION = "0.21"
|
||||||
# CYTHON_BLACKLIST = ("0.21.1", "0.21.2") # only used if py3
|
# CYTHON_BLACKLIST = ("0.21.1", "0.21.2") # only used if py3
|
||||||
EFL_MIN_VER = RELEASE
|
EFL_MIN_VER = RELEASE
|
||||||
ELM_MIN_VER = RELEASE
|
ELM_MIN_VER = RELEASE
|
||||||
|
|
Loading…
Reference in New Issue