2015-01-02 11:03:53 -08:00
|
|
|
# Copyright (C) 2007-2015 various contributors (see AUTHORS)
|
2013-02-14 12:54:53 -08:00
|
|
|
#
|
|
|
|
# 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
|
2013-12-07 08:54:58 -08:00
|
|
|
# version 3 of the License, or (at your option) any later version.
|
2013-02-14 12:54:53 -08:00
|
|
|
#
|
|
|
|
# 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/>.
|
|
|
|
|
2015-03-09 10:36:42 -07:00
|
|
|
from efl.eina cimport Eina_Iterator
|
2013-09-29 21:26:35 -07:00
|
|
|
from efl.c_eo cimport Eo as cEo
|
|
|
|
|
2013-10-24 12:58:09 -07:00
|
|
|
cdef:
|
|
|
|
class Eo(object):
|
|
|
|
cdef:
|
|
|
|
cEo *obj
|
|
|
|
readonly dict data
|
2013-02-14 12:54:53 -08:00
|
|
|
|
2013-11-09 22:47:21 -08:00
|
|
|
int _set_obj(self, cEo *obj) except 0
|
|
|
|
int _set_properties_from_keyword_args(self, dict kwargs) except 0
|
2013-10-24 12:58:09 -07:00
|
|
|
#_add_obj(self, Eo_Class *klass, cEo *parent)
|
2013-02-14 12:54:53 -08:00
|
|
|
|
2015-03-09 10:36:42 -07:00
|
|
|
class EoIterator:
|
|
|
|
cdef Eina_Iterator *itr
|
|
|
|
@staticmethod
|
|
|
|
cdef inline create(Eina_Iterator *itr):
|
|
|
|
cdef EoIterator obj = EoIterator.__new__(EoIterator)
|
|
|
|
obj.itr = itr
|
|
|
|
return obj
|
|
|
|
|
2013-02-14 12:54:53 -08:00
|
|
|
|
2013-10-24 12:58:09 -07:00
|
|
|
int PY_REFCOUNT(object o)
|
2013-02-14 12:54:53 -08:00
|
|
|
|
2013-10-24 12:58:09 -07:00
|
|
|
void _object_mapping_register(char *name, object cls) except *
|
|
|
|
void _object_mapping_unregister(char *name)
|
2013-02-14 12:54:53 -08:00
|
|
|
|
2013-11-24 07:56:08 -08:00
|
|
|
void _register_decorated_callbacks(Eo obj)
|
2014-08-16 03:33:29 -07:00
|
|
|
|
|
|
|
cdef api:
|
|
|
|
object object_from_instance(cEo *obj)
|
|
|
|
cEo *instance_from_object(object o)
|