summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_panel_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_panel_eo.c')
-rw-r--r--src/lib/elementary/elm_panel_eo.c210
1 files changed, 210 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_panel_eo.c b/src/lib/elementary/elm_panel_eo.c
new file mode 100644
index 0000000..d54be07
--- /dev/null
+++ b/src/lib/elementary/elm_panel_eo.c
@@ -0,0 +1,210 @@
1EWAPI const Efl_Event_Description _ELM_PANEL_EVENT_TOGGLED =
2 EFL_EVENT_DESCRIPTION("toggled");
3
4void _elm_panel_orient_set(Eo *obj, Elm_Panel_Data *pd, Elm_Panel_Orient orient);
5
6EOAPI EFL_VOID_FUNC_BODYV(elm_obj_panel_orient_set, EFL_FUNC_CALL(orient), Elm_Panel_Orient orient);
7
8Elm_Panel_Orient _elm_panel_orient_get(const Eo *obj, Elm_Panel_Data *pd);
9
10EOAPI EFL_FUNC_BODY_CONST(elm_obj_panel_orient_get, Elm_Panel_Orient, 2 /* Elm.Panel.Orient.left */);
11
12void _elm_panel_hidden_set(Eo *obj, Elm_Panel_Data *pd, Eina_Bool hidden);
13
14
15static Eina_Error
16__eolian_elm_panel_hidden_set_reflect(Eo *obj, Eina_Value val)
17{
18 Eina_Error r = 0; Eina_Bool cval;
19 if (!eina_value_bool_convert(&val, &cval))
20 {
21 r = EINA_ERROR_VALUE_FAILED;
22 goto end;
23 }
24 elm_obj_panel_hidden_set(obj, cval);
25 end:
26 eina_value_flush(&val);
27 return r;
28}
29
30EOAPI EFL_VOID_FUNC_BODYV(elm_obj_panel_hidden_set, EFL_FUNC_CALL(hidden), Eina_Bool hidden);
31
32Eina_Bool _elm_panel_hidden_get(const Eo *obj, Elm_Panel_Data *pd);
33
34
35static Eina_Value
36__eolian_elm_panel_hidden_get_reflect(Eo *obj)
37{
38 Eina_Bool val = elm_obj_panel_hidden_get(obj);
39 return eina_value_bool_init(val);
40}
41
42EOAPI EFL_FUNC_BODY_CONST(elm_obj_panel_hidden_get, Eina_Bool, 0);
43
44void _elm_panel_scrollable_set(Eo *obj, Elm_Panel_Data *pd, Eina_Bool scrollable);
45
46
47static Eina_Error
48__eolian_elm_panel_scrollable_set_reflect(Eo *obj, Eina_Value val)
49{
50 Eina_Error r = 0; Eina_Bool cval;
51 if (!eina_value_bool_convert(&val, &cval))
52 {
53 r = EINA_ERROR_VALUE_FAILED;
54 goto end;
55 }
56 elm_obj_panel_scrollable_set(obj, cval);
57 end:
58 eina_value_flush(&val);
59 return r;
60}
61
62EOAPI EFL_VOID_FUNC_BODYV(elm_obj_panel_scrollable_set, EFL_FUNC_CALL(scrollable), Eina_Bool scrollable);
63
64Eina_Bool _elm_panel_scrollable_get(const Eo *obj, Elm_Panel_Data *pd);
65
66
67static Eina_Value
68__eolian_elm_panel_scrollable_get_reflect(Eo *obj)
69{
70 Eina_Bool val = elm_obj_panel_scrollable_get(obj);
71 return eina_value_bool_init(val);
72}
73
74EOAPI EFL_FUNC_BODY_CONST(elm_obj_panel_scrollable_get, Eina_Bool, 0);
75
76void _elm_panel_scrollable_content_size_set(Eo *obj, Elm_Panel_Data *pd, double ratio);
77
78
79static Eina_Error
80__eolian_elm_panel_scrollable_content_size_set_reflect(Eo *obj, Eina_Value val)
81{
82 Eina_Error r = 0; double cval;
83 if (!eina_value_double_convert(&val, &cval))
84 {
85 r = EINA_ERROR_VALUE_FAILED;
86 goto end;
87 }
88 elm_obj_panel_scrollable_content_size_set(obj, cval);
89 end:
90 eina_value_flush(&val);
91 return r;
92}
93
94EOAPI EFL_VOID_FUNC_BODYV(elm_obj_panel_scrollable_content_size_set, EFL_FUNC_CALL(ratio), double ratio);
95
96double _elm_panel_scrollable_content_size_get(const Eo *obj, Elm_Panel_Data *pd);
97
98
99static Eina_Value
100__eolian_elm_panel_scrollable_content_size_get_reflect(Eo *obj)
101{
102 double val = elm_obj_panel_scrollable_content_size_get(obj);
103 return eina_value_double_init(val);
104}
105
106EOAPI EFL_FUNC_BODY_CONST(elm_obj_panel_scrollable_content_size_get, double, 0);
107
108void _elm_panel_toggle(Eo *obj, Elm_Panel_Data *pd);
109
110EOAPI EFL_VOID_FUNC_BODY(elm_obj_panel_toggle);
111
112Efl_Object *_elm_panel_efl_object_constructor(Eo *obj, Elm_Panel_Data *pd);
113
114
115void _elm_panel_efl_gfx_entity_position_set(Eo *obj, Elm_Panel_Data *pd, Eina_Position2D pos);
116
117
118void _elm_panel_efl_gfx_entity_size_set(Eo *obj, Elm_Panel_Data *pd, Eina_Size2D size);
119
120
121void _elm_panel_efl_canvas_group_group_member_add(Eo *obj, Elm_Panel_Data *pd, Efl_Canvas_Object *sub_obj);
122
123
124Eina_Error _elm_panel_efl_ui_widget_theme_apply(Eo *obj, Elm_Panel_Data *pd);
125
126
127void _elm_panel_efl_ui_widget_disabled_set(Eo *obj, Elm_Panel_Data *pd, Eina_Bool disabled);
128
129
130void _elm_panel_efl_ui_widget_on_access_update(Eo *obj, Elm_Panel_Data *pd, Eina_Bool enable);
131
132
133Eina_Bool _elm_panel_efl_ui_widget_widget_input_event_handler(Eo *obj, Elm_Panel_Data *pd, const Efl_Event *eo_event, Efl_Canvas_Object *source);
134
135
136Eina_Rect _elm_panel_efl_ui_widget_interest_region_get(const Eo *obj, Elm_Panel_Data *pd);
137
138
139const Efl_Access_Action_Data *_elm_panel_efl_access_widget_action_elm_actions_get(const Eo *obj, Elm_Panel_Data *pd);
140
141
142void _elm_panel_efl_ui_i18n_mirrored_set(Eo *obj, Elm_Panel_Data *pd, Eina_Bool rtl);
143
144
145Efl_Object *_elm_panel_efl_part_part_get(const Eo *obj, Elm_Panel_Data *pd, const char *name);
146
147
148static Eina_Bool
149_elm_panel_class_initializer(Efl_Class *klass)
150{
151 const Efl_Object_Ops *opsp = NULL;
152
153 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
154
155#ifndef ELM_PANEL_EXTRA_OPS
156#define ELM_PANEL_EXTRA_OPS
157#endif
158
159 EFL_OPS_DEFINE(ops,
160 EFL_OBJECT_OP_FUNC(elm_obj_panel_orient_set, _elm_panel_orient_set),
161 EFL_OBJECT_OP_FUNC(elm_obj_panel_orient_get, _elm_panel_orient_get),
162 EFL_OBJECT_OP_FUNC(elm_obj_panel_hidden_set, _elm_panel_hidden_set),
163 EFL_OBJECT_OP_FUNC(elm_obj_panel_hidden_get, _elm_panel_hidden_get),
164 EFL_OBJECT_OP_FUNC(elm_obj_panel_scrollable_set, _elm_panel_scrollable_set),
165 EFL_OBJECT_OP_FUNC(elm_obj_panel_scrollable_get, _elm_panel_scrollable_get),
166 EFL_OBJECT_OP_FUNC(elm_obj_panel_scrollable_content_size_set, _elm_panel_scrollable_content_size_set),
167 EFL_OBJECT_OP_FUNC(elm_obj_panel_scrollable_content_size_get, _elm_panel_scrollable_content_size_get),
168 EFL_OBJECT_OP_FUNC(elm_obj_panel_toggle, _elm_panel_toggle),
169 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_panel_efl_object_constructor),
170 EFL_OBJECT_OP_FUNC(efl_gfx_entity_position_set, _elm_panel_efl_gfx_entity_position_set),
171 EFL_OBJECT_OP_FUNC(efl_gfx_entity_size_set, _elm_panel_efl_gfx_entity_size_set),
172 EFL_OBJECT_OP_FUNC(efl_canvas_group_member_add, _elm_panel_efl_canvas_group_group_member_add),
173 EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_panel_efl_ui_widget_theme_apply),
174 EFL_OBJECT_OP_FUNC(efl_ui_widget_disabled_set, _elm_panel_efl_ui_widget_disabled_set),
175 EFL_OBJECT_OP_FUNC(efl_ui_widget_on_access_update, _elm_panel_efl_ui_widget_on_access_update),
176 EFL_OBJECT_OP_FUNC(efl_ui_widget_input_event_handler, _elm_panel_efl_ui_widget_widget_input_event_handler),
177 EFL_OBJECT_OP_FUNC(efl_ui_widget_interest_region_get, _elm_panel_efl_ui_widget_interest_region_get),
178 EFL_OBJECT_OP_FUNC(efl_access_widget_action_elm_actions_get, _elm_panel_efl_access_widget_action_elm_actions_get),
179 EFL_OBJECT_OP_FUNC(efl_ui_mirrored_set, _elm_panel_efl_ui_i18n_mirrored_set),
180 EFL_OBJECT_OP_FUNC(efl_part_get, _elm_panel_efl_part_part_get),
181 ELM_PANEL_EXTRA_OPS
182 );
183 opsp = &ops;
184
185 static const Efl_Object_Property_Reflection refl_table[] = {
186 {"hidden", __eolian_elm_panel_hidden_set_reflect, __eolian_elm_panel_hidden_get_reflect},
187 {"scrollable", __eolian_elm_panel_scrollable_set_reflect, __eolian_elm_panel_scrollable_get_reflect},
188 {"scrollable_content_size", __eolian_elm_panel_scrollable_content_size_set_reflect, __eolian_elm_panel_scrollable_content_size_get_reflect},
189 };
190 static const Efl_Object_Property_Reflection_Ops rops = {
191 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
192 };
193 ropsp = &rops;
194
195 return efl_class_functions_set(klass, opsp, ropsp);
196}
197
198static const Efl_Class_Description _elm_panel_class_desc = {
199 EO_VERSION,
200 "Elm.Panel",
201 EFL_CLASS_TYPE_REGULAR,
202 sizeof(Elm_Panel_Data),
203 _elm_panel_class_initializer,
204 _elm_panel_class_constructor,
205 NULL
206};
207
208EFL_DEFINE_CLASS(elm_panel_class_get, &_elm_panel_class_desc, EFL_UI_LAYOUT_BASE_CLASS, EFL_UI_FOCUS_LAYER_MIXIN, ELM_INTERFACE_SCROLLABLE_MIXIN, EFL_ACCESS_WIDGET_ACTION_MIXIN, EFL_UI_LEGACY_INTERFACE, NULL);
209
210#include "elm_panel_eo.legacy.c"