summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_menu_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_menu_eo.c')
-rw-r--r--src/lib/elementary/elm_menu_eo.c132
1 files changed, 132 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_menu_eo.c b/src/lib/elementary/elm_menu_eo.c
new file mode 100644
index 0000000..e044040
--- /dev/null
+++ b/src/lib/elementary/elm_menu_eo.c
@@ -0,0 +1,132 @@
1EWAPI const Efl_Event_Description _ELM_MENU_EVENT_DISMISSED =
2 EFL_EVENT_DESCRIPTION("dismissed");
3EWAPI const Efl_Event_Description _ELM_MENU_EVENT_ELM_ACTION_BLOCK_MENU =
4 EFL_EVENT_DESCRIPTION("elm,action,block_menu");
5EWAPI const Efl_Event_Description _ELM_MENU_EVENT_ELM_ACTION_UNBLOCK_MENU =
6 EFL_EVENT_DESCRIPTION("elm,action,unblock_menu");
7
8Elm_Widget_Item *_elm_menu_selected_item_get(const Eo *obj, Elm_Menu_Data *pd);
9
10EOAPI EFL_FUNC_BODY_CONST(elm_obj_menu_selected_item_get, Elm_Widget_Item *, NULL);
11
12Elm_Widget_Item *_elm_menu_first_item_get(const Eo *obj, Elm_Menu_Data *pd);
13
14EOAPI EFL_FUNC_BODY_CONST(elm_obj_menu_first_item_get, Elm_Widget_Item *, NULL);
15
16Elm_Widget_Item *_elm_menu_last_item_get(const Eo *obj, Elm_Menu_Data *pd);
17
18EOAPI EFL_FUNC_BODY_CONST(elm_obj_menu_last_item_get, Elm_Widget_Item *, NULL);
19
20const Eina_List *_elm_menu_items_get(const Eo *obj, Elm_Menu_Data *pd);
21
22EOAPI EFL_FUNC_BODY_CONST(elm_obj_menu_items_get, const Eina_List *, NULL);
23
24void _elm_menu_relative_move(Eo *obj, Elm_Menu_Data *pd, int x, int y);
25
26EOAPI EFL_VOID_FUNC_BODYV(elm_obj_menu_relative_move, EFL_FUNC_CALL(x, y), int x, int y);
27
28Elm_Widget_Item *_elm_menu_item_add(Eo *obj, Elm_Menu_Data *pd, Elm_Widget_Item *parent, const char *icon, const char *label, Evas_Smart_Cb func, const void *data);
29
30EOAPI EFL_FUNC_BODYV(elm_obj_menu_item_add, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(parent, icon, label, func, data), Elm_Widget_Item *parent, const char *icon, const char *label, Evas_Smart_Cb func, const void *data);
31
32void _elm_menu_open(Eo *obj, Elm_Menu_Data *pd);
33
34EOAPI EFL_VOID_FUNC_BODY(elm_obj_menu_open);
35
36void _elm_menu_close(Eo *obj, Elm_Menu_Data *pd);
37
38EOAPI EFL_VOID_FUNC_BODY(elm_obj_menu_close);
39
40Elm_Widget_Item *_elm_menu_item_separator_add(Eo *obj, Elm_Menu_Data *pd, Elm_Widget_Item *parent);
41
42EOAPI EFL_FUNC_BODYV(elm_obj_menu_item_separator_add, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(parent), Elm_Widget_Item *parent);
43
44Efl_Object *_elm_menu_efl_object_constructor(Eo *obj, Elm_Menu_Data *pd);
45
46
47void _elm_menu_efl_object_destructor(Eo *obj, Elm_Menu_Data *pd);
48
49
50void _elm_menu_efl_gfx_entity_visible_set(Eo *obj, Elm_Menu_Data *pd, Eina_Bool v);
51
52
53void _elm_menu_efl_ui_widget_widget_parent_set(Eo *obj, Elm_Menu_Data *pd, Efl_Ui_Widget *parent);
54
55
56Efl_Ui_Widget *_elm_menu_efl_ui_widget_widget_parent_get(const Eo *obj, Elm_Menu_Data *pd);
57
58
59Eina_Error _elm_menu_efl_ui_widget_theme_apply(Eo *obj, Elm_Menu_Data *pd);
60
61
62void _elm_menu_efl_ui_l10n_translation_update(Eo *obj, Elm_Menu_Data *pd);
63
64
65Efl_Ui_Focus_Manager *_elm_menu_efl_ui_widget_focus_manager_focus_manager_create(Eo *obj, Elm_Menu_Data *pd, Efl_Ui_Focus_Object *root);
66
67
68Eina_List *_elm_menu_efl_access_object_access_children_get(const Eo *obj, Elm_Menu_Data *pd);
69
70
71int _elm_menu_efl_access_selection_selected_children_count_get(const Eo *obj, Elm_Menu_Data *pd);
72
73
74Efl_Object *_elm_menu_efl_access_selection_selected_child_get(const Eo *obj, Elm_Menu_Data *pd, int selected_child_index);
75
76
77Efl_Object *_elm_menu_efl_object_provider_find(const Eo *obj, Elm_Menu_Data *pd, const Efl_Class *klass);
78
79
80static Eina_Bool
81_elm_menu_class_initializer(Efl_Class *klass)
82{
83 const Efl_Object_Ops *opsp = NULL;
84
85 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
86
87#ifndef ELM_MENU_EXTRA_OPS
88#define ELM_MENU_EXTRA_OPS
89#endif
90
91 EFL_OPS_DEFINE(ops,
92 EFL_OBJECT_OP_FUNC(elm_obj_menu_selected_item_get, _elm_menu_selected_item_get),
93 EFL_OBJECT_OP_FUNC(elm_obj_menu_first_item_get, _elm_menu_first_item_get),
94 EFL_OBJECT_OP_FUNC(elm_obj_menu_last_item_get, _elm_menu_last_item_get),
95 EFL_OBJECT_OP_FUNC(elm_obj_menu_items_get, _elm_menu_items_get),
96 EFL_OBJECT_OP_FUNC(elm_obj_menu_relative_move, _elm_menu_relative_move),
97 EFL_OBJECT_OP_FUNC(elm_obj_menu_item_add, _elm_menu_item_add),
98 EFL_OBJECT_OP_FUNC(elm_obj_menu_open, _elm_menu_open),
99 EFL_OBJECT_OP_FUNC(elm_obj_menu_close, _elm_menu_close),
100 EFL_OBJECT_OP_FUNC(elm_obj_menu_item_separator_add, _elm_menu_item_separator_add),
101 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_menu_efl_object_constructor),
102 EFL_OBJECT_OP_FUNC(efl_destructor, _elm_menu_efl_object_destructor),
103 EFL_OBJECT_OP_FUNC(efl_gfx_entity_visible_set, _elm_menu_efl_gfx_entity_visible_set),
104 EFL_OBJECT_OP_FUNC(efl_ui_widget_parent_set, _elm_menu_efl_ui_widget_widget_parent_set),
105 EFL_OBJECT_OP_FUNC(efl_ui_widget_parent_get, _elm_menu_efl_ui_widget_widget_parent_get),
106 EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_menu_efl_ui_widget_theme_apply),
107 EFL_OBJECT_OP_FUNC(efl_ui_l10n_translation_update, _elm_menu_efl_ui_l10n_translation_update),
108 EFL_OBJECT_OP_FUNC(efl_ui_widget_focus_manager_create, _elm_menu_efl_ui_widget_focus_manager_focus_manager_create),
109 EFL_OBJECT_OP_FUNC(efl_access_object_access_children_get, _elm_menu_efl_access_object_access_children_get),
110 EFL_OBJECT_OP_FUNC(efl_access_selection_selected_children_count_get, _elm_menu_efl_access_selection_selected_children_count_get),
111 EFL_OBJECT_OP_FUNC(efl_access_selection_selected_child_get, _elm_menu_efl_access_selection_selected_child_get),
112 EFL_OBJECT_OP_FUNC(efl_provider_find, _elm_menu_efl_object_provider_find),
113 ELM_MENU_EXTRA_OPS
114 );
115 opsp = &ops;
116
117 return efl_class_functions_set(klass, opsp, ropsp);
118}
119
120static const Efl_Class_Description _elm_menu_class_desc = {
121 EO_VERSION,
122 "Elm.Menu",
123 EFL_CLASS_TYPE_REGULAR,
124 sizeof(Elm_Menu_Data),
125 _elm_menu_class_initializer,
126 _elm_menu_class_constructor,
127 NULL
128};
129
130EFL_DEFINE_CLASS(elm_menu_class_get, &_elm_menu_class_desc, EFL_UI_WIDGET_CLASS, EFL_UI_CLICKABLE_INTERFACE, EFL_ACCESS_SELECTION_INTERFACE, EFL_UI_WIDGET_FOCUS_MANAGER_MIXIN, EFL_UI_LEGACY_INTERFACE, NULL);
131
132#include "elm_menu_eo.legacy.c"