1 EWAPI const Efl_Event_Description _ELM_FLIPSELECTOR_EVENT_UNDERFLOWED =
2 EFL_EVENT_DESCRIPTION("underflowed");
3 EWAPI const Efl_Event_Description _ELM_FLIPSELECTOR_EVENT_OVERFLOWED =
4 EFL_EVENT_DESCRIPTION("overflowed");
5
6 const Eina_List *_elm_flipselector_items_get(const Eo *obj, Elm_Flipselector_Data *pd);
7
8 EOAPI EFL_FUNC_BODY_CONST(elm_obj_flipselector_items_get, const Eina_List *, NULL);
9
10 Elm_Widget_Item *_elm_flipselector_first_item_get(const Eo *obj, Elm_Flipselector_Data *pd);
11
12 EOAPI EFL_FUNC_BODY_CONST(elm_obj_flipselector_first_item_get, Elm_Widget_Item *, NULL);
13
14 Elm_Widget_Item *_elm_flipselector_last_item_get(const Eo *obj, Elm_Flipselector_Data *pd);
15
16 EOAPI EFL_FUNC_BODY_CONST(elm_obj_flipselector_last_item_get, Elm_Widget_Item *, NULL);
17
18 Elm_Widget_Item *_elm_flipselector_selected_item_get(const Eo *obj, Elm_Flipselector_Data *pd);
19
20 EOAPI EFL_FUNC_BODY_CONST(elm_obj_flipselector_selected_item_get, Elm_Widget_Item *, NULL);
21
22 void _elm_flipselector_first_interval_set(Eo *obj, Elm_Flipselector_Data *pd, double interval);
23
24
25 static Eina_Error
__eolian_elm_flipselector_first_interval_set_reflect(Eo * obj,Eina_Value val)26 __eolian_elm_flipselector_first_interval_set_reflect(Eo *obj, Eina_Value val)
27 {
28 Eina_Error r = 0; double cval;
29 if (!eina_value_double_convert(&val, &cval))
30 {
31 r = EINA_ERROR_VALUE_FAILED;
32 goto end;
33 }
34 elm_obj_flipselector_first_interval_set(obj, cval);
35 end:
36 eina_value_flush(&val);
37 return r;
38 }
39
40 EOAPI EFL_VOID_FUNC_BODYV(elm_obj_flipselector_first_interval_set, EFL_FUNC_CALL(interval), double interval);
41
42 double _elm_flipselector_first_interval_get(const Eo *obj, Elm_Flipselector_Data *pd);
43
44
45 static Eina_Value
__eolian_elm_flipselector_first_interval_get_reflect(const Eo * obj)46 __eolian_elm_flipselector_first_interval_get_reflect(const Eo *obj)
47 {
48 double val = elm_obj_flipselector_first_interval_get(obj);
49 return eina_value_double_init(val);
50 }
51
52 EOAPI EFL_FUNC_BODY_CONST(elm_obj_flipselector_first_interval_get, double, 0);
53
54 Elm_Widget_Item *_elm_flipselector_item_prepend(Eo *obj, Elm_Flipselector_Data *pd, const char *label, Evas_Smart_Cb func, void *data);
55
56 EOAPI EFL_FUNC_BODYV(elm_obj_flipselector_item_prepend, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(label, func, data), const char *label, Evas_Smart_Cb func, void *data);
57
58 void _elm_flipselector_flip_next(Eo *obj, Elm_Flipselector_Data *pd);
59
60 EOAPI EFL_VOID_FUNC_BODY(elm_obj_flipselector_flip_next);
61
62 Elm_Widget_Item *_elm_flipselector_item_append(Eo *obj, Elm_Flipselector_Data *pd, const char *label, Evas_Smart_Cb func, const void *data);
63
64 EOAPI EFL_FUNC_BODYV(elm_obj_flipselector_item_append, Elm_Widget_Item *, NULL, EFL_FUNC_CALL(label, func, data), const char *label, Evas_Smart_Cb func, const void *data);
65
66 void _elm_flipselector_flip_prev(Eo *obj, Elm_Flipselector_Data *pd);
67
68 EOAPI EFL_VOID_FUNC_BODY(elm_obj_flipselector_flip_prev);
69
70 Efl_Object *_elm_flipselector_efl_object_constructor(Eo *obj, Elm_Flipselector_Data *pd);
71
72
73 Eina_Error _elm_flipselector_efl_ui_widget_theme_apply(Eo *obj, Elm_Flipselector_Data *pd);
74
75
76 Eina_Bool _elm_flipselector_efl_ui_widget_widget_input_event_handler(Eo *obj, Elm_Flipselector_Data *pd, const Efl_Event *eo_event, Efl_Canvas_Object *source);
77
78
79 void _elm_flipselector_efl_ui_range_display_range_limits_set(Eo *obj, Elm_Flipselector_Data *pd, double min, double max);
80
81
82 void _elm_flipselector_efl_ui_range_display_range_limits_get(const Eo *obj, Elm_Flipselector_Data *pd, double *min, double *max);
83
84
85 void _elm_flipselector_efl_ui_range_interactive_range_step_set(Eo *obj, Elm_Flipselector_Data *pd, double step);
86
87
88 double _elm_flipselector_efl_ui_range_interactive_range_step_get(const Eo *obj, Elm_Flipselector_Data *pd);
89
90
91 void _elm_flipselector_efl_ui_range_display_range_value_set(Eo *obj, Elm_Flipselector_Data *pd, double val);
92
93
94 double _elm_flipselector_efl_ui_range_display_range_value_get(const Eo *obj, Elm_Flipselector_Data *pd);
95
96
97 const Efl_Access_Action_Data *_elm_flipselector_efl_access_widget_action_elm_actions_get(const Eo *obj, Elm_Flipselector_Data *pd);
98
99
100 static Eina_Bool
_elm_flipselector_class_initializer(Efl_Class * klass)101 _elm_flipselector_class_initializer(Efl_Class *klass)
102 {
103 const Efl_Object_Ops *opsp = NULL;
104
105 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
106
107 #ifndef ELM_FLIPSELECTOR_EXTRA_OPS
108 #define ELM_FLIPSELECTOR_EXTRA_OPS
109 #endif
110
111 EFL_OPS_DEFINE(ops,
112 EFL_OBJECT_OP_FUNC(elm_obj_flipselector_items_get, _elm_flipselector_items_get),
113 EFL_OBJECT_OP_FUNC(elm_obj_flipselector_first_item_get, _elm_flipselector_first_item_get),
114 EFL_OBJECT_OP_FUNC(elm_obj_flipselector_last_item_get, _elm_flipselector_last_item_get),
115 EFL_OBJECT_OP_FUNC(elm_obj_flipselector_selected_item_get, _elm_flipselector_selected_item_get),
116 EFL_OBJECT_OP_FUNC(elm_obj_flipselector_first_interval_set, _elm_flipselector_first_interval_set),
117 EFL_OBJECT_OP_FUNC(elm_obj_flipselector_first_interval_get, _elm_flipselector_first_interval_get),
118 EFL_OBJECT_OP_FUNC(elm_obj_flipselector_item_prepend, _elm_flipselector_item_prepend),
119 EFL_OBJECT_OP_FUNC(elm_obj_flipselector_flip_next, _elm_flipselector_flip_next),
120 EFL_OBJECT_OP_FUNC(elm_obj_flipselector_item_append, _elm_flipselector_item_append),
121 EFL_OBJECT_OP_FUNC(elm_obj_flipselector_flip_prev, _elm_flipselector_flip_prev),
122 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_flipselector_efl_object_constructor),
123 EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_flipselector_efl_ui_widget_theme_apply),
124 EFL_OBJECT_OP_FUNC(efl_ui_widget_input_event_handler, _elm_flipselector_efl_ui_widget_widget_input_event_handler),
125 EFL_OBJECT_OP_FUNC(efl_ui_range_limits_set, _elm_flipselector_efl_ui_range_display_range_limits_set),
126 EFL_OBJECT_OP_FUNC(efl_ui_range_limits_get, _elm_flipselector_efl_ui_range_display_range_limits_get),
127 EFL_OBJECT_OP_FUNC(efl_ui_range_step_set, _elm_flipselector_efl_ui_range_interactive_range_step_set),
128 EFL_OBJECT_OP_FUNC(efl_ui_range_step_get, _elm_flipselector_efl_ui_range_interactive_range_step_get),
129 EFL_OBJECT_OP_FUNC(efl_ui_range_value_set, _elm_flipselector_efl_ui_range_display_range_value_set),
130 EFL_OBJECT_OP_FUNC(efl_ui_range_value_get, _elm_flipselector_efl_ui_range_display_range_value_get),
131 EFL_OBJECT_OP_FUNC(efl_access_widget_action_elm_actions_get, _elm_flipselector_efl_access_widget_action_elm_actions_get),
132 ELM_FLIPSELECTOR_EXTRA_OPS
133 );
134 opsp = &ops;
135
136 static const Efl_Object_Property_Reflection refl_table[] = {
137 {"first_interval", __eolian_elm_flipselector_first_interval_set_reflect, __eolian_elm_flipselector_first_interval_get_reflect},
138 };
139 static const Efl_Object_Property_Reflection_Ops rops = {
140 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
141 };
142 ropsp = &rops;
143
144 return efl_class_functions_set(klass, opsp, ropsp);
145 }
146
147 static const Efl_Class_Description _elm_flipselector_class_desc = {
148 EO_VERSION,
149 "Elm.Flipselector",
150 EFL_CLASS_TYPE_REGULAR,
151 sizeof(Elm_Flipselector_Data),
152 _elm_flipselector_class_initializer,
153 _elm_flipselector_class_constructor,
154 NULL
155 };
156
157 EFL_DEFINE_CLASS(elm_flipselector_class_get, &_elm_flipselector_class_desc, EFL_UI_LAYOUT_BASE_CLASS, EFL_UI_RANGE_INTERACTIVE_INTERFACE, EFL_ACCESS_WIDGET_ACTION_MIXIN, ELM_LAYOUT_MIXIN, EFL_UI_LEGACY_INTERFACE, NULL);
158
159 #include "elm_flipselector_eo.legacy.c"
160