# Copyright (C) 2007-2013 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 2.1 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 .
cdef int cb_canvas_dispatcher(Canvas self, event, int type) except 0:
# iterate over copy since users may delete callback from callback
lst = tuple(self._callbacks[type])
for func, args, kargs in lst:
try:
func(self, event, *args, **kargs)
except Exception, e:
traceback.print_exc()
return 1
cdef int cb_canvas_dispatcher2(Canvas self, int type) except 0:
# iterate over copy since users may delete callback from callback
lst = tuple(self._callbacks[type])
for func, args, kargs in lst:
try:
func(self, *args, **kargs)
except Exception, e:
traceback.print_exc()
return 1
cdef void cb_canvas_mouse_in(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_MOUSE_IN is not supported by canvas."
cdef void cb_canvas_mouse_out(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_MOUSE_OUT is not supported by canvas."
cdef void cb_canvas_mouse_down(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_MOUSE_DOWN is not supported by canvas."
cdef void cb_canvas_mouse_up(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_MOUSE_UP is not supported by canvas."
cdef void cb_canvas_mouse_move(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_MOUSE_MOVE is not supported by canvas."
cdef void cb_canvas_multi_down(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_MULTI_DOWN is not supported by canvas."
cdef void cb_canvas_multi_up(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_MULTI_UP is not supported by canvas."
cdef void cb_canvas_multi_move(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_MULTI_MOVE is not supported by canvas."
cdef void cb_canvas_mouse_wheel(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_MOUSE_WHEEL is not supported by canvas."
cdef void cb_canvas_free(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_FREE is not supported by canvas."
cdef void cb_canvas_key_down(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_KEY_DOWN is not supported by canvas."
cdef void cb_canvas_key_up(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_KEY_UP is not supported by canvas."
cdef void cb_canvas_focus_in(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_FOCUS_IN is not supported by canvas."
cdef void cb_canvas_focus_out(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_FOCUS_OUT is not supported by canvas."
cdef void cb_canvas_show(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_SHOW is not supported by canvas."
cdef void cb_canvas_hide(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_HIDE is not supported by canvas."
cdef void cb_canvas_move(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_MOVE is not supported by canvas."
cdef void cb_canvas_resize(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_RESIZE is not supported by canvas."
cdef void cb_canvas_restack(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_RESTACK is not supported by canvas."
cdef void cb_canvas_del(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_DEL is not supported by canvas."
cdef void cb_canvas_hold(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_HOLD is not supported by canvas."
cdef void cb_canvas_changed_size_hints(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_CHANGED_SIZE_HINTS is not supported by canvas."
cdef void cb_canvas_image_preloaded(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_IMAGE_PRELOADED is not supported by canvas."
cdef void cb_canvas_image_resize(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_IMAGE_RESIZE is not supported by canvas."
cdef void cb_canvas_device_changed(void *data, Evas *e, void *e_inf) with gil:
print "EVAS_CALLBACK_DEVICE_CHANGED is not supported by canvas."
cdef void cb_canvas_canvas_focus_in(void *data, Evas *e, void *e_inf) with gil:
cb_canvas_dispatcher2(