summaryrefslogtreecommitdiff
path: root/include/efl.c_eo.pxd
blob: 0454489859a8c3befc3d8bad48c6a6839982b135 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
######################################################################
# Python Open Dynamics Engine Wrapper
# Copyright (C) 2004 PyODE developers (see file AUTHORS)
# All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of EITHER:
#   (1) 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. The text of the GNU Lesser
#       General Public License is included with this library in the
#       file LICENSE.
#   (2) The BSD-style license that is included with this library in
#       the file LICENSE-BSD.
#
# This library 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 files
# LICENSE and LICENSE-BSD for more details. 
######################################################################

from efl cimport *

cdef extern from "Eo.h":
    ####################################################################
    # Basic Types
    #


    ####################################################################
    # Enumerations
    #


    ####################################################################
    # 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:
        const_char_ptr name
        const_char_ptr doc

    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, ...)
    void eo_base_data_set(const_char_ptr key, const_void *data, eo_base_data_free_func free_func)
    void eo_base_data_get(const_char_ptr key, void **data)
    void eo_base_data_del(const_char_ptr key)

    const_Eo_Class *eo_class_get(const_Eo *obj)
    const_char_ptr eo_class_name_get(const_Eo_Class *klass)

    Eo *eo_parent_get(const_Eo *obj)

    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)