2014-04-14 13:21:03 -07:00
|
|
|
# Copyright (C) 2007-2014 various contributors (see AUTHORS)
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
#
|
2013-02-13 11:16:02 -08:00
|
|
|
# This file is part of Python-EFL.
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
#
|
2013-02-13 11:16:02 -08:00
|
|
|
# Python-EFL is free software; you can redistribute it and/or
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
2013-12-07 08:54:58 -08:00
|
|
|
# version 3 of the License, or (at your option) any later version.
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
#
|
2013-02-13 11:16:02 -08:00
|
|
|
# Python-EFL is distributed in the hope that it will be useful,
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
# 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
|
2013-02-13 11:16:02 -08:00
|
|
|
# along with this Python-EFL. If not, see <http://www.gnu.org/licenses/>.
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
|
|
|
|
|
|
|
|
cdef int cb_object_dispatcher(Object self, event, int type) except 0:
|
|
|
|
# iterate over copy since users may delete callback from callback
|
2013-11-07 01:35:03 -08:00
|
|
|
lst = tuple(self._event_callbacks[type])
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
for func, args, kargs in lst:
|
|
|
|
try:
|
|
|
|
func(self, event, *args, **kargs)
|
2014-04-15 10:49:06 -07:00
|
|
|
except Exception:
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
traceback.print_exc()
|
|
|
|
return 1
|
|
|
|
|
|
|
|
|
|
|
|
cdef int cb_object_dispatcher2(Object self, int type) except 0:
|
|
|
|
# iterate over copy since users may delete callback from callback
|
2013-11-07 01:35:03 -08:00
|
|
|
lst = tuple(self._event_callbacks[type])
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
for func, args, kargs in lst:
|
|
|
|
try:
|
|
|
|
func(self, *args, **kargs)
|
2014-04-15 10:49:06 -07:00
|
|
|
except Exception:
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
traceback.print_exc()
|
|
|
|
return 1
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_mouse_in(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cdef EventMouseIn event
|
|
|
|
event = EventMouseIn()
|
|
|
|
event._set_obj(e_inf)
|
|
|
|
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MOUSE_IN)
|
|
|
|
event._unset_obj()
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_mouse_out(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cdef EventMouseOut event
|
|
|
|
event = EventMouseOut()
|
|
|
|
event._set_obj(e_inf)
|
|
|
|
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MOUSE_OUT)
|
|
|
|
event._unset_obj()
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_mouse_down(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cdef EventMouseDown event
|
|
|
|
event = EventMouseDown()
|
|
|
|
event._set_obj(e_inf)
|
|
|
|
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MOUSE_DOWN)
|
|
|
|
event._unset_obj()
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_mouse_up(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cdef EventMouseUp event
|
|
|
|
event = EventMouseUp()
|
|
|
|
event._set_obj(e_inf)
|
|
|
|
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MOUSE_UP)
|
|
|
|
event._unset_obj()
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_mouse_move(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cdef EventMouseMove event
|
|
|
|
event = EventMouseMove()
|
|
|
|
event._set_obj(e_inf)
|
|
|
|
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MOUSE_MOVE)
|
|
|
|
event._unset_obj()
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_multi_down(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cdef EventMultiDown event
|
|
|
|
event = EventMultiDown()
|
|
|
|
event._set_obj(e_inf)
|
|
|
|
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MULTI_DOWN)
|
|
|
|
event._unset_obj()
|
|
|
|
|
|
|
|
cdef void cb_object_multi_up(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cdef EventMultiUp event
|
|
|
|
event = EventMultiUp()
|
|
|
|
event._set_obj(e_inf)
|
|
|
|
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MULTI_UP)
|
|
|
|
event._unset_obj()
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_multi_move(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cdef EventMultiMove event
|
|
|
|
event = EventMultiMove()
|
|
|
|
event._set_obj(e_inf)
|
|
|
|
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MULTI_MOVE)
|
|
|
|
event._unset_obj()
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_mouse_wheel(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cdef EventMouseWheel event
|
|
|
|
event = EventMouseWheel()
|
|
|
|
event._set_obj(e_inf)
|
|
|
|
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_MOUSE_WHEEL)
|
|
|
|
event._unset_obj()
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_free(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_FREE)
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_key_down(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cdef EventKeyDown event
|
|
|
|
event = EventKeyDown()
|
|
|
|
event._set_obj(e_inf)
|
|
|
|
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_KEY_DOWN)
|
|
|
|
event._unset_obj()
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_key_up(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cdef EventKeyUp event
|
|
|
|
event = EventKeyUp()
|
|
|
|
event._set_obj(e_inf)
|
|
|
|
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_KEY_UP)
|
|
|
|
event._unset_obj()
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_focus_in(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_FOCUS_IN)
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_focus_out(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_FOCUS_OUT)
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_show(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_SHOW)
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_hide(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_HIDE)
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_move(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_MOVE)
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_resize(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_RESIZE)
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_restack(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_RESTACK)
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_del(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_DEL)
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_hold(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cdef EventHold event
|
|
|
|
event = EventHold()
|
|
|
|
event._set_obj(e_inf)
|
|
|
|
cb_object_dispatcher(<Object>data, event, EVAS_CALLBACK_HOLD)
|
|
|
|
event._unset_obj()
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_changed_size_hints(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_CHANGED_SIZE_HINTS)
|
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_image_preloaded(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_IMAGE_PRELOADED)
|
|
|
|
|
|
|
|
cdef void cb_object_image_resize(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_IMAGE_RESIZE)
|
|
|
|
|
|
|
|
cdef void cb_object_device_changed(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_DEVICE_CHANGED)
|
|
|
|
|
|
|
|
cdef void cb_object_canvas_focus_in(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
2014-04-15 06:17:44 -07:00
|
|
|
print("EVAS_CALLBACK_FOCUS_IN is not supported by object.")
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_canvas_focus_out(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
2014-04-15 06:17:44 -07:00
|
|
|
print("EVAS_CALLBACK_FOCUS_OUT is not supported by object.")
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_render_flush_pre(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
2014-04-15 06:17:44 -07:00
|
|
|
print("EVAS_CALLBACK_RENDER_FLUSH_PRE is not supported by object.")
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
|
|
|
|
|
|
|
|
cdef void cb_object_render_flush_post(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
2014-04-15 06:17:44 -07:00
|
|
|
print("EVAS_CALLBACK_RENDER_FLUSH_POST is not supported by object.")
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
|
|
|
|
cdef void cb_object_canvas_object_focus_in(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
2014-04-15 06:17:44 -07:00
|
|
|
print("EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN is not supported by object.")
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
|
|
|
|
cdef void cb_object_canvas_object_focus_out(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
2014-04-15 06:17:44 -07:00
|
|
|
print("EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT is not supported by object.")
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
|
|
|
|
cdef void cb_object_image_unloaded(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
|
|
|
cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_IMAGE_UNLOADED)
|
|
|
|
|
|
|
|
cdef void cb_object_canvas_render_pre(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
2014-04-15 06:17:44 -07:00
|
|
|
print("EVAS_CALLBACK_RENDER_PRE is not supported by object.")
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
|
|
|
|
cdef void cb_object_canvas_render_post(void *data, Evas *e,
|
|
|
|
Evas_Object *obj, void *e_inf) with gil:
|
2014-04-15 06:17:44 -07:00
|
|
|
print("EVAS_CALLBACK_RENDER_POST is not supported by object.")
|
Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.
Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.
All the docs has been stripped out because we want to use the new sphinx style
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)
The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
import evas
except:
from efl import evas
...like is done in the gtk bindings
Some stuff has been leaved out on purpose, because was old stuff (like the hacked
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.
Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)
I will contine the works in the next weeks and hope someone will help too.
NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
python setup.py install
or
python3 setup.py install
Enjoy
davemds
SVN revision: 83831
2013-02-11 14:32:50 -08:00
|
|
|
|
|
|
|
cdef int evas_object_event_callbacks_len
|
|
|
|
cdef Evas_Object_Event_Cb evas_object_event_callbacks[34]
|
|
|
|
evas_object_event_callbacks_len = 34
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_MOUSE_IN] = cb_object_mouse_in
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_MOUSE_OUT] = cb_object_mouse_out
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_MOUSE_DOWN] = cb_object_mouse_down
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_MOUSE_UP] = cb_object_mouse_up
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_MOUSE_MOVE] = cb_object_mouse_move
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_MOUSE_WHEEL] = cb_object_mouse_wheel
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_MULTI_DOWN] = cb_object_multi_down
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_MULTI_UP] = cb_object_multi_up
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_MULTI_MOVE] = cb_object_multi_move
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_FREE] = cb_object_free
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_KEY_DOWN] = cb_object_key_down
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_KEY_UP] = cb_object_key_up
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_FOCUS_IN] = cb_object_focus_in
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_FOCUS_OUT] = cb_object_focus_out
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_SHOW] = cb_object_show
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_HIDE] = cb_object_hide
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_MOVE] = cb_object_move
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_RESIZE] = cb_object_resize
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_RESTACK] = cb_object_restack
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_DEL] = cb_object_del
|
|
|
|
evas_object_event_callbacks[EVAS_CALLBACK_HOLD] = cb_object_hold
|
|
|
|
evas_object_event_callbacks[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[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[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[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[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[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[EVAS_CALLBACK_DEVICE_CHANGED] = cb_object_device_changed
|