summaryrefslogtreecommitdiff
path: root/efl/elementary/object_item.pxd
blob: a89aa76ca75a0fd1e62255bf3b9dfa7b066f0e03 (plain)
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
from efl.evas cimport Eina_Bool, const_Eina_List, Evas_Object, Evas_Smart_Cb, \
    Eina_List, const_Eina_List
from libc.string cimport const_char

cdef extern from "Elementary.h":

    ctypedef struct Elm_Object_Item
    ctypedef Elm_Object_Item const_Elm_Object_Item "const Elm_Object_Item"

    ctypedef Evas_Object    *(*Elm_Tooltip_Content_Cb)      (void *data, Evas_Object *obj, Evas_Object *tooltip)
    ctypedef Evas_Object    *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip, void *item)

    Evas_Object *   elm_object_item_widget_get(Elm_Object_Item *it)
    void            elm_object_item_part_content_set(Elm_Object_Item *it, const_char *part, Evas_Object* content)
    void            elm_object_item_content_set(Elm_Object_Item *it, Evas_Object* content)
    Evas_Object *   elm_object_item_part_content_get(Elm_Object_Item *it, const_char *part)
    Evas_Object *   elm_object_item_content_get(Elm_Object_Item *it)
    Evas_Object *   elm_object_item_part_content_unset(Elm_Object_Item *it, const_char *part)
    Evas_Object *   elm_object_item_content_unset(Elm_Object_Item *it)
    void            elm_object_item_part_text_set(Elm_Object_Item *item, const_char *part, const_char *label)
    void            elm_object_item_text_set(Elm_Object_Item *item, const_char *label)
    const_char *    elm_object_item_part_text_get(Elm_Object_Item *item, const_char *part)
    const_char *    elm_object_item_text_get(Elm_Object_Item *item)
    void            elm_object_item_domain_translatable_part_text_set(Elm_Object_Item *it, const_char *part, const_char *domain, const_char *text)
    const_char *    elm_object_item_translatable_part_text_get(const_Elm_Object_Item *it, const_char *part)
    void            elm_object_item_domain_part_text_translatable_set(Elm_Object_Item *it, const_char *part, const_char *domain, Eina_Bool translatable)

    void            elm_object_item_access_info_set(Elm_Object_Item *it, const_char *txt)
    void *          elm_object_item_data_get(Elm_Object_Item *item)
    void            elm_object_item_data_set(Elm_Object_Item *item, void *data)
    void            elm_object_item_signal_emit(Elm_Object_Item *it, const_char *emission, const_char *source)
    void            elm_object_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled)
    Eina_Bool       elm_object_item_disabled_get(Elm_Object_Item *it)
    void            elm_object_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb del_cb)
    void            elm_object_item_del(Elm_Object_Item *item)
    void            elm_object_item_tooltip_text_set(Elm_Object_Item *it, const_char *text)
    Eina_Bool       elm_object_item_tooltip_window_mode_set(Elm_Object_Item *it, Eina_Bool disable)
    Eina_Bool       elm_object_item_tooltip_window_mode_get(Elm_Object_Item *it)
    void            elm_object_item_tooltip_content_cb_set(Elm_Object_Item *it, Elm_Tooltip_Item_Content_Cb func, void *data, Evas_Smart_Cb del_cb)
    void            elm_object_item_tooltip_unset(Elm_Object_Item *it)
    void            elm_object_item_tooltip_style_set(Elm_Object_Item *it, const_char *style)
    const_char *    elm_object_item_tooltip_style_get(Elm_Object_Item *it)
    void            elm_object_item_cursor_set(Elm_Object_Item *it, const_char *cursor)
    const_char *    elm_object_item_cursor_get(Elm_Object_Item *it)
    void            elm_object_item_cursor_unset(Elm_Object_Item *it)
    void            elm_object_item_cursor_style_set(Elm_Object_Item *it, const_char *style)
    const_char *    elm_object_item_cursor_style_get(Elm_Object_Item *it)
    void            elm_object_item_cursor_engine_only_set(Elm_Object_Item *it, Eina_Bool engine_only)
    Eina_Bool       elm_object_item_cursor_engine_only_get(Elm_Object_Item *it)

    Evas_Object *   elm_object_item_access_register(Elm_Object_Item *item)
    void            elm_object_item_access_unregister(Elm_Object_Item *item)
    Evas_Object *   elm_object_item_access_object_get(const_Elm_Object_Item *item)
    void            elm_object_item_access_order_set(Elm_Object_Item *item, Eina_List *objs)
    const_Eina_List *elm_object_item_access_order_get(const_Elm_Object_Item *item)
    void            elm_object_item_access_order_unset(Elm_Object_Item *item)



cdef _object_item_to_python(Elm_Object_Item *it)
cdef Elm_Object_Item * _object_item_from_python(ObjectItem item) except NULL
cdef _object_item_list_to_python(const_Eina_List *lst)
cdef void _object_item_del_cb(void *data, Evas_Object *o, void *event_info) with gil
cdef void _object_item_callback(void *data, Evas_Object *obj, void *event_info) with gil

cdef class ObjectItem(object):
    cdef:
        Elm_Object_Item *item
        object cb_func
        tuple args
        dict kwargs
        readonly dict data
        int _set_obj(self, Elm_Object_Item *item) except 0

    cpdef text_set(self, text)
    cpdef text_get(self)
    cpdef access_info_set(self, txt)
    cpdef tooltip_style_set(self, style=*)
    cpdef tooltip_style_get(self)
    cpdef cursor_set(self, cursor)
    cpdef cursor_get(self)
    cpdef cursor_unset(self)
    cpdef cursor_style_set(self, style=*)
    cpdef cursor_style_get(self)