1
2 void _elm_flipselector_item_selected_set(Eo *obj, Elm_Flipselector_Item_Data *pd, Eina_Bool selected);
3
4
5 static Eina_Error
__eolian_elm_flipselector_item_selected_set_reflect(Eo * obj,Eina_Value val)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
20 EOAPI EFL_VOID_FUNC_BODYV(elm_obj_flipselector_item_selected_set, EFL_FUNC_CALL(selected), Eina_Bool selected);
21
22 Eina_Bool _elm_flipselector_item_selected_get(const Eo *obj, Elm_Flipselector_Item_Data *pd);
23
24
25 static Eina_Value
__eolian_elm_flipselector_item_selected_get_reflect(const Eo * obj)26 __eolian_elm_flipselector_item_selected_get_reflect(const Eo *obj)
27 {
28 Eina_Bool val = elm_obj_flipselector_item_selected_get(obj);
29 return eina_value_bool_init(val);
30 }
31
32 EOAPI EFL_FUNC_BODY_CONST(elm_obj_flipselector_item_selected_get, Eina_Bool, 0);
33
34 Elm_Widget_Item *_elm_flipselector_item_prev_get(const Eo *obj, Elm_Flipselector_Item_Data *pd);
35
36 EOAPI EFL_FUNC_BODY_CONST(elm_obj_flipselector_item_prev_get, Elm_Widget_Item *, NULL);
37
38 Elm_Widget_Item *_elm_flipselector_item_next_get(const Eo *obj, Elm_Flipselector_Item_Data *pd);
39
40 EOAPI EFL_FUNC_BODY_CONST(elm_obj_flipselector_item_next_get, Elm_Widget_Item *, NULL);
41
42 Efl_Object *_elm_flipselector_item_efl_object_constructor(Eo *obj, Elm_Flipselector_Item_Data *pd);
43
44
45 void _elm_flipselector_item_efl_object_destructor(Eo *obj, Elm_Flipselector_Item_Data *pd);
46
47
48 void _elm_flipselector_item_elm_widget_item_signal_emit(Eo *obj, Elm_Flipselector_Item_Data *pd, const char *emission, const char *source);
49
50
51 void _elm_flipselector_item_elm_widget_item_part_text_set(Eo *obj, Elm_Flipselector_Item_Data *pd, const char *part, const char *label);
52
53
54 const char *_elm_flipselector_item_elm_widget_item_part_text_get(const Eo *obj, Elm_Flipselector_Item_Data *pd, const char *part);
55
56
57 static Eina_Bool
_elm_flipselector_item_class_initializer(Efl_Class * klass)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
93 static 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
103 EFL_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"
106