summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_flipselector_item_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_flipselector_item_eo.c')
-rw-r--r--src/lib/elementary/elm_flipselector_item_eo.c105
1 files changed, 105 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_flipselector_item_eo.c b/src/lib/elementary/elm_flipselector_item_eo.c
new file mode 100644
index 0000000..a9fb162
--- /dev/null
+++ b/src/lib/elementary/elm_flipselector_item_eo.c
@@ -0,0 +1,105 @@
1
2void _elm_flipselector_item_selected_set(Eo *obj, Elm_Flipselector_Item_Data *pd, Eina_Bool selected);
3
4
5static Eina_Error
6__eolian_elm_flipselector_item_selected_set_reflect(Eo *obj, Eina_Value val)
7{
8 Eina_Error r = 0; Eina_Bool cval;
9 if (!eina_value_bool_convert(&val, &cval))
10 {
11 r = EINA_ERROR_VALUE_FAILED;
12 goto end;
13 }
14 elm_obj_flipselector_item_selected_set(obj, cval);
15 end:
16 eina_value_flush(&val);
17 return r;
18}
19
20EOAPI EFL_VOID_FUNC_BODYV(elm_obj_flipselector_item_selected_set, EFL_FUNC_CALL(selected), Eina_Bool selected);
21
22Eina_Bool _elm_flipselector_item_selected_get(const Eo *obj, Elm_Flipselector_Item_Data *pd);
23
24
25static Eina_Value
26__eolian_elm_flipselector_item_selected_get_reflect(Eo *obj)
27{
28 Eina_Bool val = elm_obj_flipselector_item_selected_get(obj);
29 return eina_value_bool_init(val);
30}
31
32EOAPI EFL_FUNC_BODY_CONST(elm_obj_flipselector_item_selected_get, Eina_Bool, 0);
33
34Elm_Widget_Item *_elm_flipselector_item_prev_get(const Eo *obj, Elm_Flipselector_Item_Data *pd);
35
36EOAPI EFL_FUNC_BODY_CONST(elm_obj_flipselector_item_prev_get, Elm_Widget_Item *, NULL);
37
38Elm_Widget_Item *_elm_flipselector_item_next_get(const Eo *obj, Elm_Flipselector_Item_Data *pd);
39
40EOAPI EFL_FUNC_BODY_CONST(elm_obj_flipselector_item_next_get, Elm_Widget_Item *, NULL);
41
42Efl_Object *_elm_flipselector_item_efl_object_constructor(Eo *obj, Elm_Flipselector_Item_Data *pd);
43
44
45void _elm_flipselector_item_efl_object_destructor(Eo *obj, Elm_Flipselector_Item_Data *pd);
46
47
48void _elm_flipselector_item_elm_widget_item_signal_emit(Eo *obj, Elm_Flipselector_Item_Data *pd, const char *emission, const char *source);
49
50
51void _elm_flipselector_item_elm_widget_item_part_text_set(Eo *obj, Elm_Flipselector_Item_Data *pd, const char *part, const char *label);
52
53
54const char *_elm_flipselector_item_elm_widget_item_part_text_get(const Eo *obj, Elm_Flipselector_Item_Data *pd, const char *part);
55
56
57static Eina_Bool
58_elm_flipselector_item_class_initializer(Efl_Class *klass)
59{
60 const Efl_Object_Ops *opsp = NULL;
61
62 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
63
64#ifndef ELM_FLIPSELECTOR_ITEM_EXTRA_OPS
65#define ELM_FLIPSELECTOR_ITEM_EXTRA_OPS
66#endif
67
68 EFL_OPS_DEFINE(ops,
69 EFL_OBJECT_OP_FUNC(elm_obj_flipselector_item_selected_set, _elm_flipselector_item_selected_set),
70 EFL_OBJECT_OP_FUNC(elm_obj_flipselector_item_selected_get, _elm_flipselector_item_selected_get),
71 EFL_OBJECT_OP_FUNC(elm_obj_flipselector_item_prev_get, _elm_flipselector_item_prev_get),
72 EFL_OBJECT_OP_FUNC(elm_obj_flipselector_item_next_get, _elm_flipselector_item_next_get),
73 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_flipselector_item_efl_object_constructor),
74 EFL_OBJECT_OP_FUNC(efl_destructor, _elm_flipselector_item_efl_object_destructor),
75 EFL_OBJECT_OP_FUNC(elm_wdg_item_signal_emit, _elm_flipselector_item_elm_widget_item_signal_emit),
76 EFL_OBJECT_OP_FUNC(elm_wdg_item_part_text_set, _elm_flipselector_item_elm_widget_item_part_text_set),
77 EFL_OBJECT_OP_FUNC(elm_wdg_item_part_text_get, _elm_flipselector_item_elm_widget_item_part_text_get),
78 ELM_FLIPSELECTOR_ITEM_EXTRA_OPS
79 );
80 opsp = &ops;
81
82 static const Efl_Object_Property_Reflection refl_table[] = {
83 {"selected", __eolian_elm_flipselector_item_selected_set_reflect, __eolian_elm_flipselector_item_selected_get_reflect},
84 };
85 static const Efl_Object_Property_Reflection_Ops rops = {
86 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
87 };
88 ropsp = &rops;
89
90 return efl_class_functions_set(klass, opsp, ropsp);
91}
92
93static const Efl_Class_Description _elm_flipselector_item_class_desc = {
94 EO_VERSION,
95 "Elm.Flipselector.Item",
96 EFL_CLASS_TYPE_REGULAR,
97 sizeof(Elm_Flipselector_Item_Data),
98 _elm_flipselector_item_class_initializer,
99 NULL,
100 NULL
101};
102
103EFL_DEFINE_CLASS(elm_flipselector_item_class_get, &_elm_flipselector_item_class_desc, ELM_WIDGET_ITEM_CLASS, NULL);
104
105#include "elm_flipselector_item_eo.legacy.c"