2013-02-14 12:54:53 -08:00
|
|
|
# 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 <http://www.gnu.org/licenses/>.
|
|
|
|
|
2013-09-30 18:56:28 -07:00
|
|
|
#from efl.eina cimport *
|
2013-02-14 12:54:53 -08:00
|
|
|
|
2013-09-30 18:56:28 -07:00
|
|
|
from libc.string cimport const_char
|
|
|
|
from libc.stdlib cimport const_void
|
|
|
|
from efl.eina cimport Eina_Bool
|
2013-02-14 12:54:53 -08:00
|
|
|
|
2013-09-30 18:56:28 -07:00
|
|
|
cdef extern from "Eo.h":
|
2013-02-14 12:54:53 -08:00
|
|
|
####################################################################
|
|
|
|
# Structures
|
|
|
|
#
|
|
|
|
ctypedef struct Eo
|
|
|
|
ctypedef Eo const_Eo "const Eo"
|
|
|
|
|
|
|
|
ctypedef struct Eo_Class
|
|
|
|
ctypedef Eo_Class const_Eo_Class "const Eo_Class"
|
|
|
|
|
|
|
|
ctypedef struct Eo_Event_Description:
|
2013-03-22 23:50:33 -07:00
|
|
|
const_char *name
|
|
|
|
const_char *doc
|
2013-02-14 12:54:53 -08:00
|
|
|
|
|
|
|
ctypedef Eo_Event_Description const_Eo_Event_Description "const Eo_Event_Description"
|
|
|
|
|
|
|
|
####################################################################
|
|
|
|
# Eo Events
|
|
|
|
#
|
|
|
|
cdef const_Eo_Event_Description *EO_EV_DEL
|
|
|
|
|
|
|
|
####################################################################
|
|
|
|
# Other typedefs
|
|
|
|
#
|
|
|
|
ctypedef Eina_Bool (*Eo_Event_Cb)(void *data, Eo *obj, const_Eo_Event_Description *desc, void *event_info)
|
|
|
|
|
|
|
|
ctypedef void (*eo_base_data_free_func)(void *)
|
|
|
|
|
|
|
|
|
|
|
|
####################################################################
|
|
|
|
# Functions
|
|
|
|
#
|
|
|
|
int eo_init()
|
|
|
|
int eo_shutdown()
|
|
|
|
|
|
|
|
Eo *eo_add(const_Eo_Class *klass, Eo *parent, ...)
|
|
|
|
Eo *eo_ref(const_Eo *obj)
|
|
|
|
void eo_unref(const_Eo *obj)
|
|
|
|
int eo_ref_get(const_Eo *obj)
|
|
|
|
void eo_del(const_Eo *obj)
|
|
|
|
|
|
|
|
void eo_wref_add(Eo *obj)
|
|
|
|
|
|
|
|
Eina_Bool eo_do(Eo *obj, ...)
|
2013-03-22 23:50:33 -07:00
|
|
|
void eo_base_data_set(const_char *key, const_void *data, eo_base_data_free_func free_func)
|
|
|
|
void eo_base_data_get(const_char *key, void **data)
|
|
|
|
void eo_base_data_del(const_char *key)
|
2013-02-14 12:54:53 -08:00
|
|
|
|
|
|
|
const_Eo_Class *eo_class_get(const_Eo *obj)
|
2013-03-22 23:50:33 -07:00
|
|
|
const_char *eo_class_name_get(const_Eo_Class *klass)
|
2013-02-14 12:54:53 -08:00
|
|
|
|
2013-10-23 04:34:42 -07:00
|
|
|
Eo *eo_parent_get(Eo **obj)
|
2013-02-14 12:54:53 -08:00
|
|
|
|
|
|
|
void eo_event_callback_add(const_Eo_Event_Description *desc, Eo_Event_Cb cb, const_void *data)
|
|
|
|
void eo_event_callback_del(const_Eo_Event_Description *desc, Eo_Event_Cb cb, const_void *data)
|
|
|
|
|