summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-03-05 17:00:37 -0500
committerCedric BAIL <cedric.bail@free.fr>2019-03-07 14:15:16 -0800
commitbb3e70352395192ff86e9ee0953dd3c0e291009e (patch)
tree622b2522fffdcadcabf3a84c95001ad0d41523d9
parenta156cc22898b504fce84964bc90137675d03d61b (diff)
elm_flipselector*: remove all legacy usage from eo files
this takes the current generated output from eolian for legacy code in efl and adds it to the tree, then removes legacy references from the corresponding eo files. in the case where the entire eo file was for a legacy object, that eo file has been removed from the tree ref T7724 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8168
-rw-r--r--src/Makefile_Elementary.am10
-rw-r--r--src/lib/elementary/elm_flipselector.c8
-rw-r--r--src/lib/elementary/elm_flipselector.eo175
-rw-r--r--src/lib/elementary/elm_flipselector_eo.c159
-rw-r--r--src/lib/elementary/elm_flipselector_eo.h212
-rw-r--r--src/lib/elementary/elm_flipselector_eo.legacy.c60
-rw-r--r--src/lib/elementary/elm_flipselector_eo.legacy.h189
-rw-r--r--src/lib/elementary/elm_flipselector_item.eo55
-rw-r--r--src/lib/elementary/elm_flipselector_item_eo.c105
-rw-r--r--src/lib/elementary/elm_flipselector_item_eo.h87
-rw-r--r--src/lib/elementary/elm_flipselector_item_eo.legacy.c24
-rw-r--r--src/lib/elementary/elm_flipselector_item_eo.legacy.h80
-rw-r--r--src/lib/elementary/elm_flipselector_legacy.h4
-rw-r--r--src/lib/elementary/meson.build6
14 files changed, 934 insertions, 240 deletions
diff --git a/src/Makefile_Elementary.am b/src/Makefile_Elementary.am
index ec34d3e..69e65ad 100644
--- a/src/Makefile_Elementary.am
+++ b/src/Makefile_Elementary.am
@@ -211,7 +211,6 @@ elm_legacy_eolian_files = \
211 lib/elementary/elm_sys_notify.eo \ 211 lib/elementary/elm_sys_notify.eo \
212 lib/elementary/elm_sys_notify_dbus.eo \ 212 lib/elementary/elm_sys_notify_dbus.eo \
213 lib/elementary/elm_systray.eo \ 213 lib/elementary/elm_systray.eo \
214 lib/elementary/elm_flipselector_item.eo \
215 lib/elementary/elm_menu_item.eo \ 214 lib/elementary/elm_menu_item.eo \
216 lib/elementary/elm_index_item.eo \ 215 lib/elementary/elm_index_item.eo \
217 lib/elementary/elm_widget_item_static_focus.eo \ 216 lib/elementary/elm_widget_item_static_focus.eo \
@@ -236,7 +235,6 @@ elm_legacy_eolian_files = \
236 lib/elementary/elm_actionslider_part.eo \ 235 lib/elementary/elm_actionslider_part.eo \
237 lib/elementary/elm_bubble_part.eo \ 236 lib/elementary/elm_bubble_part.eo \
238 lib/elementary/elm_fileselector_part.eo \ 237 lib/elementary/elm_fileselector_part.eo \
239 lib/elementary/elm_flipselector.eo \
240 lib/elementary/elm_grid.eo \ 238 lib/elementary/elm_grid.eo \
241 lib/elementary/elm_icon.eo \ 239 lib/elementary/elm_icon.eo \
242 lib/elementary/elm_inwin.eo \ 240 lib/elementary/elm_inwin.eo \
@@ -347,6 +345,10 @@ lib/elementary/elm_fileselector_button_eo.c \
347lib/elementary/elm_fileselector_entry_eo.c \ 345lib/elementary/elm_fileselector_entry_eo.c \
348lib/elementary/elm_fileselector_eo.legacy.c \ 346lib/elementary/elm_fileselector_eo.legacy.c \
349lib/elementary/elm_fileselector_eo.c \ 347lib/elementary/elm_fileselector_eo.c \
348lib/elementary/elm_flipselector_eo.legacy.c \
349lib/elementary/elm_flipselector_eo.c \
350lib/elementary/elm_flipselector_item_eo.legacy.c \
351lib/elementary/elm_flipselector_item_eo.c \
350lib/elementary/elm_hoversel_eo.c \ 352lib/elementary/elm_hoversel_eo.c \
351lib/elementary/elm_hoversel_item_eo.c \ 353lib/elementary/elm_hoversel_item_eo.c \
352lib/elementary/elm_hoversel_item_eo.legacy.c 354lib/elementary/elm_hoversel_item_eo.legacy.c
@@ -438,6 +440,10 @@ lib/elementary/elm_fileselector_entry_eo.h \
438lib/elementary/elm_fileselector_entry_eo.legacy.h \ 440lib/elementary/elm_fileselector_entry_eo.legacy.h \
439lib/elementary/elm_fileselector_eo.h \ 441lib/elementary/elm_fileselector_eo.h \
440lib/elementary/elm_fileselector_eo.legacy.h \ 442lib/elementary/elm_fileselector_eo.legacy.h \
443lib/elementary/elm_flipselector_eo.h \
444lib/elementary/elm_flipselector_eo.legacy.h \
445lib/elementary/elm_flipselector_item_eo.h \
446lib/elementary/elm_flipselector_item_eo.legacy.h \
441lib/elementary/elm_hoversel_eo.h \ 447lib/elementary/elm_hoversel_eo.h \
442lib/elementary/elm_hoversel_eo.legacy.h \ 448lib/elementary/elm_hoversel_eo.legacy.h \
443lib/elementary/elm_hoversel_item_eo.h \ 449lib/elementary/elm_hoversel_item_eo.h \
diff --git a/src/lib/elementary/elm_flipselector.c b/src/lib/elementary/elm_flipselector.c
index 86f66e0..98535b4 100644
--- a/src/lib/elementary/elm_flipselector.c
+++ b/src/lib/elementary/elm_flipselector.c
@@ -10,8 +10,8 @@
10#include "elm_priv.h" 10#include "elm_priv.h"
11#include "elm_widget_flipselector.h" 11#include "elm_widget_flipselector.h"
12 12
13#include "elm_flipselector.eo.h" 13#include "elm_flipselector_eo.h"
14#include "elm_flipselector_item.eo.h" 14#include "elm_flipselector_item_eo.h"
15 15
16#define MY_CLASS ELM_FLIPSELECTOR_CLASS 16#define MY_CLASS ELM_FLIPSELECTOR_CLASS
17 17
@@ -903,5 +903,5 @@ ELM_WIDGET_KEY_DOWN_DEFAULT_IMPLEMENT(elm_flipselector, Elm_Flipselector_Data)
903 ELM_LAYOUT_SIZING_EVAL_OPS(elm_flipselector), \ 903 ELM_LAYOUT_SIZING_EVAL_OPS(elm_flipselector), \
904 EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_flipselector) 904 EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_flipselector)
905 905
906#include "elm_flipselector_item.eo.c" 906#include "elm_flipselector_item_eo.c"
907#include "elm_flipselector.eo.c" 907#include "elm_flipselector_eo.c"
diff --git a/src/lib/elementary/elm_flipselector.eo b/src/lib/elementary/elm_flipselector.eo
deleted file mode 100644
index e5171f7..0000000
--- a/src/lib/elementary/elm_flipselector.eo
+++ /dev/null
@@ -1,175 +0,0 @@
1class Elm.Flipselector extends Efl.Ui.Layout_Base implements Efl.Ui.Range_Interactive,
2 Efl.Access.Widget.Action,
3 Efl.Ui.Selectable, Efl.Ui.Legacy
4{
5 [[Elementary flipselector class]]
6 legacy_prefix: elm_flipselector;
7 eo_prefix: elm_obj_flipselector;
8 event_prefix: elm_flipselector;
9 methods {
10 @property items {
11 get {
12 [[Get the internal list of items in a given flip selector widget.
13
14 This list is not to be modified in any way and must not be
15 freed. Use the list members with functions like
16 \@ref elm_object_item_text_set,
17 \@ref elm_object_item_text_get,
18 \@ref elm_object_item_del,
19 \@ref elm_flipselector_item_selected_get,
20 \@ref elm_flipselector_item_selected_set.
21
22 Warning: This list is only valid until $obj object's internal
23 items list is changed. It should be fetched again with another
24 call to this function when changes happen.
25 ]]
26 return: const(list<Elm.Widget.Item>); [[List of items]]
27 }
28 }
29 @property first_item {
30 get {
31 [[Get the first item in the given flip selector widget's list of
32 items.
33
34 See also @.item_append,
35 @.last_item.get.
36 ]]
37 return: Elm.Widget.Item; [[The first item or $null, if it has no items (and on
38 errors).]]
39
40 }
41 }
42 @property last_item {
43 get {
44 [[Get the last item in the given flip selector widget's list of
45 items.
46
47 See also @.item_prepend,
48 @.first_item.get.
49 ]]
50 return: Elm.Widget.Item; [[The last item or $null, if it has no items (and on
51 errors).]]
52
53 }
54 }
55 @property selected_item {
56 get {
57 [[Get the currently selected item in a flip selector widget.]]
58 return: Elm.Widget.Item; [[The selected item or $null, if the widget has no items
59 (and on errors).]]
60
61 }
62 }
63 @property first_interval {
64 set {
65 [[Set the interval on time updates for a user mouse button hold
66 on a flip selector widget.
67
68 This interval value is decreased while the user holds the
69 mouse pointer either flipping up or flipping down a given flip
70 selector.
71
72 This helps the user to get to a given item distant from the
73 current one easier/faster, as it will start to flip quicker and
74 quicker on mouse button holds.
75
76 The calculation for the next flip interval value, starting from
77 the one set with this call, is the previous interval divided by
78 1.05, so it decreases a little bit.
79
80 The default starting interval value for automatic flips is
81 0.85 seconds.
82
83 See also @.first_interval.get.
84 ]]
85 }
86 get {
87 [[Get the interval on time updates for an user mouse button hold
88 on a flip selector widget.
89
90 See also @.first_interval.set for more details.
91 ]]
92 }
93 values {
94 interval: double; [[The (first) interval value in seconds.]]
95 }
96 }
97 item_prepend {
98 [[Prepend a (text) item to a flip selector widget
99
100 The widget's list of labels to show will be prepended with the
101 given value. If the user wishes so, a callback function pointer
102 can be passed, which will get called when this same item is
103 selected.
104
105 Note: The current selection won't be modified by prepending
106 an element to the list.
107
108 Note: The maximum length of the text label is going to be
109 determined by the widget's theme. Strings larger than
110 that value are going to be truncated.
111 ]]
112 return: Elm.Widget.Item; [[New widget item]]
113 params {
114 @in label: string; [[The (text) label of the new item.]]
115 @in func: Evas_Smart_Cb @optional; [[Convenience callback function to take place when
116 item is selected.]]
117 @in data: void_ptr @optional; [[Data passed to $func, above.]]
118 }
119 }
120 flip_next {
121 [[Programmatically select the next item of a flip selector widget
122
123 Note: The selection will be animated. Also, if it reaches the
124 end of its list of member items, it will continue with the first
125 one onwards.
126 ]]
127 }
128 item_append {
129 [[Append a (text) item to a flip selector widget
130
131 The widget's list of labels to show will be appended with the
132 given value. If the user wishes so, a callback function pointer
133 can be passed, which will get called when this same item is
134 selected.
135
136 Note: The current selection won't be modified by appending an
137 element to the list.
138
139 Note: The maximum length of the text label is going to be
140 determined by the widget's theme. Strings larger than
141 that value are going to be truncated.
142 ]]
143 return: Elm.Widget.Item; [[New widget item]]
144 params {
145 @in label: string; [[The (text) label of the new item.]]
146 @in func: Evas_Smart_Cb @optional; [[Convenience callback function to take place when
147 item is selected.]]
148 @in data: const(void_ptr) @optional; [[Data passed to $func, above.]]
149 }
150 }
151 flip_prev {
152 [[Programmatically select the previous item of a flip selector
153 widget
154
155 Note: The selection will be animated. Also, if it reaches the
156 beginning of its list of member items, it will continue with the
157 last one backwards.
158 ]]
159 }
160 }
161 implements {
162 class.constructor;
163 Efl.Object.constructor;
164 Efl.Ui.Widget.theme_apply;
165 Efl.Ui.Widget.widget_input_event_handler;
166 Efl.Ui.Range_Display.range_min_max { get; set; }
167 Efl.Ui.Range_Interactive.range_step { get; set; }
168 Efl.Ui.Range_Display.range_value { get; set; }
169 Efl.Access.Widget.Action.elm_actions { get; }
170 }
171 events {
172 underflowed: void; [[Called when flipselector is underflowed]]
173 overflowed: void; [[Called when flipselector is overflowed]]
174 }
175}
diff --git a/src/lib/elementary/elm_flipselector_eo.c b/src/lib/elementary/elm_flipselector_eo.c
new file mode 100644
index 0000000..083cc58
--- /dev/null
+++ b/src/lib/elementary/elm_flipselector_eo.c
@@ -0,0 +1,159 @@
1EWAPI const Efl_Event_Description _ELM_FLIPSELECTOR_EVENT_UNDERFLOWED =
2 EFL_EVENT_DESCRIPTION("underflowed");
3EWAPI const Efl_Event_Description _ELM_FLIPSELECTOR_EVENT_OVERFLOWED =
4 EFL_EVENT_DESCRIPTION("overflowed");
5
6const Eina_List *_elm_flipselector_items_get(const Eo *obj, Elm_Flipselector_Data *pd);
7
8EOAPI EFL_FUNC_BODY_CONST(elm_obj_flipselector_items_get, const Eina_List *, NULL);
9
10Elm_Widget_Item *_elm_flipselector_first_item_get(const Eo *obj, Elm_Flipselector_Data *pd);
11
12EOAPI EFL_FUNC_BODY_CONST(elm_obj_flipselector_first_item_get, Elm_Widget_Item *, NULL);
13
14Elm_Widget_Item *_elm_flipselector_last_item_get(const Eo *obj, Elm_Flipselector_Data *pd);
15
16EOAPI EFL_FUNC_BODY_CONST(elm_obj_flipselector_last_item_get, Elm_Widget_Item *, NULL);
17
18Elm_Widget_Item *_elm_flipselector_selected_item_get(const Eo *obj, Elm_Flipselector_Data *pd);
19
20EOAPI EFL_FUNC_BODY_CONST(elm_obj_flipselector_selected_item_get, Elm_Widget_Item *, NULL);
21
22void _elm_flipselector_first_interval_set(Eo *obj, Elm_Flipselector_Data *pd, double interval);
23
24
25static Eina_Error
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
40EOAPI EFL_VOID_FUNC_BODYV(elm_obj_flipselector_first_interval_set, EFL_FUNC_CALL(interval), double interval);
41
42double _elm_flipselector_first_interval_get(const Eo *obj, Elm_Flipselector_Data *pd);
43
44
45static Eina_Value
46__eolian_elm_flipselector_first_interval_get_reflect(Eo *obj)
47{
48 double val = elm_obj_flipselector_first_interval_get(obj);
49 return eina_value_double_init(val);
50}
51
52EOAPI EFL_FUNC_BODY_CONST(elm_obj_flipselector_first_interval_get, double, 0);
53
54Elm_Widget_Item *_elm_flipselector_item_prepend(Eo *obj, Elm_Flipselector_Data *pd, const char *label, Evas_Smart_Cb func, void *data);
55
56EOAPI 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
58void _elm_flipselector_flip_next(Eo *obj, Elm_Flipselector_Data *pd);
59
60EOAPI EFL_VOID_FUNC_BODY(elm_obj_flipselector_flip_next);
61
62Elm_Widget_Item *_elm_flipselector_item_append(Eo *obj, Elm_Flipselector_Data *pd, const char *label, Evas_Smart_Cb func, const void *data);
63
64EOAPI 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
66void _elm_flipselector_flip_prev(Eo *obj, Elm_Flipselector_Data *pd);
67
68EOAPI EFL_VOID_FUNC_BODY(elm_obj_flipselector_flip_prev);
69
70Efl_Object *_elm_flipselector_efl_object_constructor(Eo *obj, Elm_Flipselector_Data *pd);
71
72
73Eina_Error _elm_flipselector_efl_ui_widget_theme_apply(Eo *obj, Elm_Flipselector_Data *pd);
74
75
76Eina_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
79void _elm_flipselector_efl_ui_range_display_range_min_max_set(Eo *obj, Elm_Flipselector_Data *pd, double min, double max);
80
81
82void _elm_flipselector_efl_ui_range_display_range_min_max_get(const Eo *obj, Elm_Flipselector_Data *pd, double *min, double *max);
83
84
85void _elm_flipselector_efl_ui_range_interactive_range_step_set(Eo *obj, Elm_Flipselector_Data *pd, double step);
86
87
88double _elm_flipselector_efl_ui_range_interactive_range_step_get(const Eo *obj, Elm_Flipselector_Data *pd);
89
90
91void _elm_flipselector_efl_ui_range_display_range_value_set(Eo *obj, Elm_Flipselector_Data *pd, double val);
92
93
94double _elm_flipselector_efl_ui_range_display_range_value_get(const Eo *obj, Elm_Flipselector_Data *pd);
95
96
97const Efl_Access_Action_Data *_elm_flipselector_efl_access_widget_action_elm_actions_get(const Eo *obj, Elm_Flipselector_Data *pd);
98
99
100static Eina_Bool
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_min_max_set, _elm_flipselector_efl_ui_range_display_range_min_max_set),
126 EFL_OBJECT_OP_FUNC(efl_ui_range_min_max_get, _elm_flipselector_efl_ui_range_display_range_min_max_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
147static 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
157EFL_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, EFL_UI_SELECTABLE_INTERFACE, EFL_UI_LEGACY_INTERFACE, NULL);
158
159#include "elm_flipselector_eo.legacy.c"
diff --git a/src/lib/elementary/elm_flipselector_eo.h b/src/lib/elementary/elm_flipselector_eo.h
new file mode 100644
index 0000000..59b3c48
--- /dev/null
+++ b/src/lib/elementary/elm_flipselector_eo.h
@@ -0,0 +1,212 @@
1#ifndef _ELM_FLIPSELECTOR_EO_H_
2#define _ELM_FLIPSELECTOR_EO_H_
3
4#ifndef _ELM_FLIPSELECTOR_EO_CLASS_TYPE
5#define _ELM_FLIPSELECTOR_EO_CLASS_TYPE
6
7typedef Eo Elm_Flipselector;
8
9#endif
10
11#ifndef _ELM_FLIPSELECTOR_EO_TYPES
12#define _ELM_FLIPSELECTOR_EO_TYPES
13
14
15#endif
16/** Elementary flipselector class
17 *
18 * @ingroup Elm_Flipselector
19 */
20#define ELM_FLIPSELECTOR_CLASS elm_flipselector_class_get()
21
22EWAPI const Efl_Class *elm_flipselector_class_get(void);
23
24/**
25 * @brief Get the internal list of items in a given flip selector widget.
26 *
27 * This list is not to be modified in any way and must not be freed. Use the
28 * list members with functions like @ref elm_object_item_text_set, @ref
29 * elm_object_item_text_get, @ref elm_object_item_del, @ref
30 * elm_flipselector_item_selected_get, @ref elm_flipselector_item_selected_set.
31 *
32 * @warning This list is only valid until @c obj object's internal items list
33 * is changed. It should be fetched again with another call to this function
34 * when changes happen.
35 *
36 * @param[in] obj The object.
37 *
38 * @return List of items
39 *
40 * @ingroup Elm_Flipselector
41 */
42EOAPI const Eina_List *elm_obj_flipselector_items_get(const Eo *obj);
43
44/**
45 * @brief Get the first item in the given flip selector widget's list of items.
46 *
47 * See also @ref elm_obj_flipselector_item_append,
48 * @ref elm_obj_flipselector_last_item_get.
49 *
50 * @param[in] obj The object.
51 *
52 * @return The first item or @c null, if it has no items (and on errors).
53 *
54 * @ingroup Elm_Flipselector
55 */
56EOAPI Elm_Widget_Item *elm_obj_flipselector_first_item_get(const Eo *obj);
57
58/**
59 * @brief Get the last item in the given flip selector widget's list of items.
60 *
61 * See also @ref elm_obj_flipselector_item_prepend,
62 * @ref elm_obj_flipselector_first_item_get.
63 *
64 * @param[in] obj The object.
65 *
66 * @return The last item or @c null, if it has no items (and on errors).
67 *
68 * @ingroup Elm_Flipselector
69 */
70EOAPI Elm_Widget_Item *elm_obj_flipselector_last_item_get(const Eo *obj);
71
72/**
73 * @brief Get the currently selected item in a flip selector widget.
74 *
75 * @param[in] obj The object.
76 *
77 * @return The selected item or @c null, if the widget has no items (and on
78 * errors).
79 *
80 * @ingroup Elm_Flipselector
81 */
82EOAPI Elm_Widget_Item *elm_obj_flipselector_selected_item_get(const Eo *obj);
83
84/**
85 * @brief Set the interval on time updates for a user mouse button hold on a
86 * flip selector widget.
87 *
88 * This interval value is decreased while the user holds the mouse pointer
89 * either flipping up or flipping down a given flip selector.
90 *
91 * This helps the user to get to a given item distant from the current one
92 * easier/faster, as it will start to flip quicker and quicker on mouse button
93 * holds.
94 *
95 * The calculation for the next flip interval value, starting from the one set
96 * with this call, is the previous interval divided by 1.05, so it decreases a
97 * little bit.
98 *
99 * The default starting interval value for automatic flips is 0.85 seconds.
100 *
101 * See also @ref elm_obj_flipselector_first_interval_get.
102 *
103 * @param[in] obj The object.
104 * @param[in] interval The (first) interval value in seconds.
105 *
106 * @ingroup Elm_Flipselector
107 */
108EOAPI void elm_obj_flipselector_first_interval_set(Eo *obj, double interval);
109
110/**
111 * @brief Get the interval on time updates for an user mouse button hold on a
112 * flip selector widget.
113 *
114 * See also @ref elm_obj_flipselector_first_interval_set for more details.
115 *
116 * @param[in] obj The object.
117 *
118 * @return The (first) interval value in seconds.
119 *
120 * @ingroup Elm_Flipselector
121 */
122EOAPI double elm_obj_flipselector_first_interval_get(const Eo *obj);
123
124/**
125 * @brief Prepend a (text) item to a flip selector widget
126 *
127 * The widget's list of labels to show will be prepended with the given value.
128 * If the user wishes so, a callback function pointer can be passed, which will
129 * get called when this same item is selected.
130 *
131 * @note The current selection won't be modified by prepending an element to
132 * the list.
133 *
134 * @note The maximum length of the text label is going to be determined by the
135 * widget's theme. Strings larger than that value are going to be truncated.
136 *
137 * @param[in] obj The object.
138 * @param[in] label The (text) label of the new item.
139 * @param[in] func Convenience callback function to take place when item is
140 * selected.
141 * @param[in] data Data passed to @c func, above.
142 *
143 * @return New widget item
144 *
145 * @ingroup Elm_Flipselector
146 */
147EOAPI Elm_Widget_Item *elm_obj_flipselector_item_prepend(Eo *obj, const char *label, Evas_Smart_Cb func, void *data);
148
149/**
150 * @brief Programmatically select the next item of a flip selector widget
151 *
152 * @note The selection will be animated. Also, if it reaches the end of its
153 * list of member items, it will continue with the first one onwards.
154 * @param[in] obj The object.
155 *
156 * @ingroup Elm_Flipselector
157 */
158EOAPI void elm_obj_flipselector_flip_next(Eo *obj);
159
160/**
161 * @brief Append a (text) item to a flip selector widget
162 *
163 * The widget's list of labels to show will be appended with the given value.
164 * If the user wishes so, a callback function pointer can be passed, which will
165 * get called when this same item is selected.
166 *
167 * @note The current selection won't be modified by appending an element to the
168 * list.
169 *
170 * @note The maximum length of the text label is going to be determined by the
171 * widget's theme. Strings larger than that value are going to be truncated.
172 *
173 * @param[in] obj The object.
174 * @param[in] label The (text) label of the new item.
175 * @param[in] func Convenience callback function to take place when item is
176 * selected.
177 * @param[in] data Data passed to @c func, above.
178 *
179 * @return New widget item
180 *
181 * @ingroup Elm_Flipselector
182 */
183EOAPI Elm_Widget_Item *elm_obj_flipselector_item_append(Eo *obj, const char *label, Evas_Smart_Cb func, const void *data);
184
185/**
186 * @brief Programmatically select the previous item of a flip selector widget
187 *
188 * @note The selection will be animated. Also, if it reaches the beginning of
189 * its list of member items, it will continue with the last one backwards.
190 * @param[in] obj The object.
191 *
192 * @ingroup Elm_Flipselector
193 */
194EOAPI void elm_obj_flipselector_flip_prev(Eo *obj);
195
196EWAPI extern const Efl_Event_Description _ELM_FLIPSELECTOR_EVENT_UNDERFLOWED;
197
198/** Called when flipselector is underflowed
199 *
200 * @ingroup Elm_Flipselector
201 */
202#define ELM_FLIPSELECTOR_EVENT_UNDERFLOWED (&(_ELM_FLIPSELECTOR_EVENT_UNDERFLOWED))
203
204EWAPI extern const Efl_Event_Description _ELM_FLIPSELECTOR_EVENT_OVERFLOWED;
205
206/** Called when flipselector is overflowed
207 *
208 * @ingroup Elm_Flipselector
209 */
210#define ELM_FLIPSELECTOR_EVENT_OVERFLOWED (&(_ELM_FLIPSELECTOR_EVENT_OVERFLOWED))
211
212#endif
diff --git a/src/lib/elementary/elm_flipselector_eo.legacy.c b/src/lib/elementary/elm_flipselector_eo.legacy.c
new file mode 100644
index 0000000..26bdc3a
--- /dev/null
+++ b/src/lib/elementary/elm_flipselector_eo.legacy.c
@@ -0,0 +1,60 @@
1
2EAPI const Eina_List *
3elm_flipselector_items_get(const Elm_Flipselector *obj)
4{
5 return elm_obj_flipselector_items_get(obj);
6}
7
8EAPI Elm_Widget_Item *
9elm_flipselector_first_item_get(const Elm_Flipselector *obj)
10{
11 return elm_obj_flipselector_first_item_get(obj);
12}
13
14EAPI Elm_Widget_Item *
15elm_flipselector_last_item_get(const Elm_Flipselector *obj)
16{
17 return elm_obj_flipselector_last_item_get(obj);
18}
19
20EAPI Elm_Widget_Item *
21elm_flipselector_selected_item_get(const Elm_Flipselector *obj)
22{
23 return elm_obj_flipselector_selected_item_get(obj);
24}
25
26EAPI void
27elm_flipselector_first_interval_set(Elm_Flipselector *obj, double interval)
28{
29 elm_obj_flipselector_first_interval_set(obj, interval);
30}
31
32EAPI double
33elm_flipselector_first_interval_get(const Elm_Flipselector *obj)
34{
35 return elm_obj_flipselector_first_interval_get(obj);
36}
37
38EAPI Elm_Widget_Item *
39elm_flipselector_item_prepend(Elm_Flipselector *obj, const char *label, Evas_Smart_Cb func, void *data)
40{
41 return elm_obj_flipselector_item_prepend(obj, label, func, data);
42}
43
44EAPI void
45elm_flipselector_flip_next(Elm_Flipselector *obj)
46{
47 elm_obj_flipselector_flip_next(obj);
48}
49
50EAPI Elm_Widget_Item *
51elm_flipselector_item_append(Elm_Flipselector *obj, const char *label, Evas_Smart_Cb func, const void *data)
52{
53 return elm_obj_flipselector_item_append(obj, label, func, data);
54}
55
56EAPI void
57elm_flipselector_flip_prev(Elm_Flipselector *obj)
58{
59 elm_obj_flipselector_flip_prev(obj);
60}
diff --git a/src/lib/elementary/elm_flipselector_eo.legacy.h b/src/lib/elementary/elm_flipselector_eo.legacy.h
new file mode 100644
index 0000000..707d7a3
--- /dev/null
+++ b/src/lib/elementary/elm_flipselector_eo.legacy.h
@@ -0,0 +1,189 @@
1#ifndef _ELM_FLIPSELECTOR_EO_LEGACY_H_
2#define _ELM_FLIPSELECTOR_EO_LEGACY_H_
3
4#ifndef _ELM_FLIPSELECTOR_EO_CLASS_TYPE
5#define _ELM_FLIPSELECTOR_EO_CLASS_TYPE
6
7typedef Eo Elm_Flipselector;
8
9#endif
10
11#ifndef _ELM_FLIPSELECTOR_EO_TYPES
12#define _ELM_FLIPSELECTOR_EO_TYPES
13
14
15#endif
16
17/**
18 * @brief Get the internal list of items in a given flip selector widget.
19 *
20 * This list is not to be modified in any way and must not be freed. Use the
21 * list members with functions like @ref elm_object_item_text_set, @ref
22 * elm_object_item_text_get, @ref elm_object_item_del, @ref
23 * elm_flipselector_item_selected_get, @ref elm_flipselector_item_selected_set.
24 *
25 * @warning This list is only valid until @c obj object's internal items list
26 * is changed. It should be fetched again with another call to this function
27 * when changes happen.
28 *
29 * @param[in] obj The object.
30 *
31 * @return List of items
32 *
33 * @ingroup Elm_Flipselector_Group
34 */
35EAPI const Eina_List *elm_flipselector_items_get(const Elm_Flipselector *obj);
36
37/**
38 * @brief Get the first item in the given flip selector widget's list of items.
39 *
40 * See also @ref elm_flipselector_item_append,
41 * @ref elm_flipselector_last_item_get.
42 *
43 * @param[in] obj The object.
44 *
45 * @return The first item or @c null, if it has no items (and on errors).
46 *
47 * @ingroup Elm_Flipselector_Group
48 */
49EAPI Elm_Widget_Item *elm_flipselector_first_item_get(const Elm_Flipselector *obj);
50
51/**
52 * @brief Get the last item in the given flip selector widget's list of items.
53 *
54 * See also @ref elm_flipselector_item_prepend,
55 * @ref elm_flipselector_first_item_get.
56 *
57 * @param[in] obj The object.
58 *
59 * @return The last item or @c null, if it has no items (and on errors).
60 *
61 * @ingroup Elm_Flipselector_Group
62 */
63EAPI Elm_Widget_Item *elm_flipselector_last_item_get(const Elm_Flipselector *obj);
64
65/**
66 * @brief Get the currently selected item in a flip selector widget.
67 *
68 * @param[in] obj The object.
69 *
70 * @return The selected item or @c null, if the widget has no items (and on
71 * errors).
72 *
73 * @ingroup Elm_Flipselector_Group
74 */
75EAPI Elm_Widget_Item *elm_flipselector_selected_item_get(const Elm_Flipselector *obj);
76
77/**
78 * @brief Set the interval on time updates for a user mouse button hold on a
79 * flip selector widget.
80 *
81 * This interval value is decreased while the user holds the mouse pointer
82 * either flipping up or flipping down a given flip selector.
83 *
84 * This helps the user to get to a given item distant from the current one
85 * easier/faster, as it will start to flip quicker and quicker on mouse button
86 * holds.
87 *
88 * The calculation for the next flip interval value, starting from the one set
89 * with this call, is the previous interval divided by 1.05, so it decreases a
90 * little bit.
91 *
92 * The default starting interval value for automatic flips is 0.85 seconds.
93 *
94 * See also @ref elm_flipselector_first_interval_get.
95 *
96 * @param[in] obj The object.
97 * @param[in] interval The (first) interval value in seconds.
98 *
99 * @ingroup Elm_Flipselector_Group
100 */
101EAPI void elm_flipselector_first_interval_set(Elm_Flipselector *obj, double interval);
102
103/**
104 * @brief Get the interval on time updates for an user mouse button hold on a
105 * flip selector widget.
106 *
107 * See also @ref elm_flipselector_first_interval_set for more details.
108 *
109 * @param[in] obj The object.
110 *
111 * @return The (first) interval value in seconds.
112 *
113 * @ingroup Elm_Flipselector_Group
114 */
115EAPI double elm_flipselector_first_interval_get(const Elm_Flipselector *obj);
116
117/**
118 * @brief Prepend a (text) item to a flip selector widget
119 *
120 * The widget's list of labels to show will be prepended with the given value.
121 * If the user wishes so, a callback function pointer can be passed, which will
122 * get called when this same item is selected.
123 *
124 * @note The current selection won't be modified by prepending an element to
125 * the list.
126 *
127 * @note The maximum length of the text label is going to be determined by the
128 * widget's theme. Strings larger than that value are going to be truncated.
129 *
130 * @param[in] obj The object.
131 * @param[in] label The (text) label of the new item.
132 * @param[in] func Convenience callback function to take place when item is
133 * selected.
134 * @param[in] data Data passed to @c func, above.
135 *
136 * @return New widget item
137 *
138 * @ingroup Elm_Flipselector_Group
139 */
140EAPI Elm_Widget_Item *elm_flipselector_item_prepend(Elm_Flipselector *obj, const char *label, Evas_Smart_Cb func, void *data);
141
142/**
143 * @brief Programmatically select the next item of a flip selector widget
144 *
145 * @note The selection will be animated. Also, if it reaches the end of its
146 * list of member items, it will continue with the first one onwards.
147 * @param[in] obj The object.
148 *
149 * @ingroup Elm_Flipselector_Group
150 */
151EAPI void elm_flipselector_flip_next(Elm_Flipselector *obj);
152
153/**
154 * @brief Append a (text) item to a flip selector widget
155 *
156 * The widget's list of labels to show will be appended with the given value.
157 * If the user wishes so, a callback function pointer can be passed, which will
158 * get called when this same item is selected.
159 *
160 * @note The current selection won't be modified by appending an element to the
161 * list.
162 *
163 * @note The maximum length of the text label is going to be determined by the
164 * widget's theme. Strings larger than that value are going to be truncated.
165 *
166 * @param[in] obj The object.
167 * @param[in] label The (text) label of the new item.
168 * @param[in] func Convenience callback function to take place when item is
169 * selected.
170 * @param[in] data Data passed to @c func, above.
171 *
172 * @return New widget item
173 *
174 * @ingroup Elm_Flipselector_Group
175 */
176EAPI Elm_Widget_Item *elm_flipselector_item_append(Elm_Flipselector *obj, const char *label, Evas_Smart_Cb func, const void *data);
177
178/**
179 * @brief Programmatically select the previous item of a flip selector widget
180 *
181 * @note The selection will be animated. Also, if it reaches the beginning of
182 * its list of member items, it will continue with the last one backwards.
183 * @param[in] obj The object.
184 *
185 * @ingroup Elm_Flipselector_Group
186 */
187EAPI void elm_flipselector_flip_prev(Elm_Flipselector *obj);
188
189#endif
diff --git a/src/lib/elementary/elm_flipselector_item.eo b/src/lib/elementary/elm_flipselector_item.eo
deleted file mode 100644
index 9710ebe..0000000
--- a/src/lib/elementary/elm_flipselector_item.eo
+++ /dev/null
@@ -1,55 +0,0 @@
1class Elm.Flipselector.Item extends Elm.Widget.Item
2{
3 [[Elementary flipselector item class]]
4 legacy_prefix: elm_flipselector_item;
5 eo_prefix: elm_obj_flipselector_item;
6 methods {
7 @property selected {
8 get {
9 [[Get whether a given flip selector widget's item is the currently
10 selected one.
11
12 See also @.selected.set.
13 ]]
14 }
15 set {
16 [[Set whether a given flip selector widget's item should be the
17 currently selected one.
18
19 This sets whether $item is or not the selected (thus, under
20 display) one. If $item is different than the one under display,
21 the latter will be unselected. If the $item is set to be
22 unselected, on the other hand, the first item in the widget's
23 internal members list will be the new selected one.
24
25 See also @.selected.get.
26 ]]
27 }
28 values {
29 selected: bool; [[$true if selected, $false otherwise.]]
30 }
31 }
32 prev_get @const {
33 [[Get the item before $item in a flip selector widget's internal list of
34 items.
35
36 See also @.next_get.
37 ]]
38 return: Elm.Widget.Item; [[The item before the $item, in its parent's list. If there is no previous item for $item or there's an error, $null is returned.]]
39 }
40 next_get @const {
41 [[Get the item after $item in a flip selector widget's
42 internal list of items.
43
44 See also @.prev_get.
45 ]]
46 return: Elm.Widget.Item; [[The item after the $item, in its parent's list. If there is no next item for $item or there's an error, $null is returned.]]
47 }
48 }
49 implements {
50 Efl.Object.constructor;
51 Efl.Object.destructor;
52 Elm.Widget.Item.signal_emit;
53 Elm.Widget.Item.part_text { get; set; }
54 }
55}
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"
diff --git a/src/lib/elementary/elm_flipselector_item_eo.h b/src/lib/elementary/elm_flipselector_item_eo.h
new file mode 100644
index 0000000..ad156fe
--- /dev/null
+++ b/src/lib/elementary/elm_flipselector_item_eo.h
@@ -0,0 +1,87 @@
1#ifndef _ELM_FLIPSELECTOR_ITEM_EO_H_
2#define _ELM_FLIPSELECTOR_ITEM_EO_H_
3
4#ifndef _ELM_FLIPSELECTOR_ITEM_EO_CLASS_TYPE
5#define _ELM_FLIPSELECTOR_ITEM_EO_CLASS_TYPE
6
7typedef Eo Elm_Flipselector_Item;
8
9#endif
10
11#ifndef _ELM_FLIPSELECTOR_ITEM_EO_TYPES
12#define _ELM_FLIPSELECTOR_ITEM_EO_TYPES
13
14
15#endif
16/** Elementary flipselector item class
17 *
18 * @ingroup Elm_Flipselector_Item
19 */
20#define ELM_FLIPSELECTOR_ITEM_CLASS elm_flipselector_item_class_get()
21
22EWAPI const Efl_Class *elm_flipselector_item_class_get(void);
23
24/**
25 * @brief Set whether a given flip selector widget's item should be the
26 * currently selected one.
27 *
28 * This sets whether @c item is or not the selected (thus, under display) one.
29 * If @c item is different than the one under display, the latter will be
30 * unselected. If the @c item is set to be unselected, on the other hand, the
31 * first item in the widget's internal members list will be the new selected
32 * one.
33 *
34 * See also @ref elm_obj_flipselector_item_selected_get.
35 *
36 * @param[in] obj The object.
37 * @param[in] selected @c true if selected, @c false otherwise.
38 *
39 * @ingroup Elm_Flipselector_Item
40 */
41EOAPI void elm_obj_flipselector_item_selected_set(Eo *obj, Eina_Bool selected);
42
43/**
44 * @brief Get whether a given flip selector widget's item is the currently
45 * selected one.
46 *
47 * See also @ref elm_obj_flipselector_item_selected_set.
48 *
49 * @param[in] obj The object.
50 *
51 * @return @c true if selected, @c false otherwise.
52 *
53 * @ingroup Elm_Flipselector_Item
54 */
55EOAPI Eina_Bool elm_obj_flipselector_item_selected_get(const Eo *obj);
56
57/**
58 * @brief Get the item before @c item in a flip selector widget's internal list
59 * of items.
60 *
61 * See also @ref elm_obj_flipselector_item_next_get.
62 *
63 * @param[in] obj The object.
64 *
65 * @return The item before the @c item, in its parent's list. If there is no
66 * previous item for @c item or there's an error, @c null is returned.
67 *
68 * @ingroup Elm_Flipselector_Item
69 */
70EOAPI Elm_Widget_Item *elm_obj_flipselector_item_prev_get(const Eo *obj);
71
72/**
73 * @brief Get the item after @c item in a flip selector widget's internal list
74 * of items.
75 *
76 * See also @ref elm_obj_flipselector_item_prev_get.
77 *
78 * @param[in] obj The object.
79 *
80 * @return The item after the @c item, in its parent's list. If there is no
81 * next item for @c item or there's an error, @c null is returned.
82 *
83 * @ingroup Elm_Flipselector_Item
84 */
85EOAPI Elm_Widget_Item *elm_obj_flipselector_item_next_get(const Eo *obj);
86
87#endif
diff --git a/src/lib/elementary/elm_flipselector_item_eo.legacy.c b/src/lib/elementary/elm_flipselector_item_eo.legacy.c
new file mode 100644
index 0000000..85d4040
--- /dev/null
+++ b/src/lib/elementary/elm_flipselector_item_eo.legacy.c
@@ -0,0 +1,24 @@
1
2EAPI void
3elm_flipselector_item_selected_set(Elm_Flipselector_Item *obj, Eina_Bool selected)
4{
5 elm_obj_flipselector_item_selected_set(obj, selected);
6}
7
8EAPI Eina_Bool
9elm_flipselector_item_selected_get(const Elm_Flipselector_Item *obj)
10{
11 return elm_obj_flipselector_item_selected_get(obj);
12}
13
14EAPI Elm_Widget_Item *
15elm_flipselector_item_prev_get(const Elm_Flipselector_Item *obj)
16{
17 return elm_obj_flipselector_item_prev_get(obj);
18}
19
20EAPI Elm_Widget_Item *
21elm_flipselector_item_next_get(const Elm_Flipselector_Item *obj)
22{
23 return elm_obj_flipselector_item_next_get(obj);
24}
diff --git a/src/lib/elementary/elm_flipselector_item_eo.legacy.h b/src/lib/elementary/elm_flipselector_item_eo.legacy.h
new file mode 100644
index 0000000..f2e9453
--- /dev/null
+++ b/src/lib/elementary/elm_flipselector_item_eo.legacy.h
@@ -0,0 +1,80 @@
1#ifndef _ELM_FLIPSELECTOR_ITEM_EO_LEGACY_H_
2#define _ELM_FLIPSELECTOR_ITEM_EO_LEGACY_H_
3
4#ifndef _ELM_FLIPSELECTOR_ITEM_EO_CLASS_TYPE
5#define _ELM_FLIPSELECTOR_ITEM_EO_CLASS_TYPE
6
7typedef Eo Elm_Flipselector_Item;
8
9#endif
10
11#ifndef _ELM_FLIPSELECTOR_ITEM_EO_TYPES
12#define _ELM_FLIPSELECTOR_ITEM_EO_TYPES
13
14
15#endif
16
17/**
18 * @brief Set whether a given flip selector widget's item should be the
19 * currently selected one.
20 *
21 * This sets whether @c item is or not the selected (thus, under display) one.
22 * If @c item is different than the one under display, the latter will be
23 * unselected. If the @c item is set to be unselected, on the other hand, the
24 * first item in the widget's internal members list will be the new selected
25 * one.
26 *
27 * See also @ref elm_flipselector_item_selected_get.
28 *
29 * @param[in] obj The object.
30 * @param[in] selected @c true if selected, @c false otherwise.
31 *
32 * @ingroup Elm_Flipselector_Item_Group
33 */
34EAPI void elm_flipselector_item_selected_set(Elm_Flipselector_Item *obj, Eina_Bool selected);
35
36/**
37 * @brief Get whether a given flip selector widget's item is the currently
38 * selected one.
39 *
40 * See also @ref elm_flipselector_item_selected_set.
41 *
42 * @param[in] obj The object.
43 *
44 * @return @c true if selected, @c false otherwise.
45 *
46 * @ingroup Elm_Flipselector_Item_Group
47 */
48EAPI Eina_Bool elm_flipselector_item_selected_get(const Elm_Flipselector_Item *obj);
49
50/**
51 * @brief Get the item before @c item in a flip selector widget's internal list
52 * of items.
53 *
54 * See also @ref elm_flipselector_item_next_get.
55 *
56 * @param[in] obj The object.
57 *
58 * @return The item before the @c item, in its parent's list. If there is no
59 * previous item for @c item or there's an error, @c null is returned.
60 *
61 * @ingroup Elm_Flipselector_Item_Group
62 */
63EAPI Elm_Widget_Item *elm_flipselector_item_prev_get(const Elm_Flipselector_Item *obj);
64
65/**
66 * @brief Get the item after @c item in a flip selector widget's internal list
67 * of items.
68 *
69 * See also @ref elm_flipselector_item_prev_get.
70 *
71 * @param[in] obj The object.
72 *
73 * @return The item after the @c item, in its parent's list. If there is no
74 * next item for @c item or there's an error, @c null is returned.
75 *
76 * @ingroup Elm_Flipselector_Item_Group
77 */
78EAPI Elm_Widget_Item *elm_flipselector_item_next_get(const Elm_Flipselector_Item *obj);
79
80#endif
diff --git a/src/lib/elementary/elm_flipselector_legacy.h b/src/lib/elementary/elm_flipselector_legacy.h
index a2fbd58..8f005e8 100644
--- a/src/lib/elementary/elm_flipselector_legacy.h
+++ b/src/lib/elementary/elm_flipselector_legacy.h
@@ -11,5 +11,5 @@
11 */ 11 */
12EAPI Evas_Object *elm_flipselector_add(Evas_Object *parent); 12EAPI Evas_Object *elm_flipselector_add(Evas_Object *parent);
13 13
14#include "elm_flipselector_item.eo.legacy.h" 14#include "elm_flipselector_item_eo.legacy.h"
15#include "elm_flipselector.eo.legacy.h" 15#include "elm_flipselector_eo.legacy.h"
diff --git a/src/lib/elementary/meson.build b/src/lib/elementary/meson.build
index 73f97ee..28f793f 100644
--- a/src/lib/elementary/meson.build
+++ b/src/lib/elementary/meson.build
@@ -25,7 +25,6 @@ pub_legacy_eo_files = [
25 'elm_sys_notify.eo', 25 'elm_sys_notify.eo',
26 'elm_sys_notify_dbus.eo', 26 'elm_sys_notify_dbus.eo',
27 'elm_systray.eo', 27 'elm_systray.eo',
28 'elm_flipselector_item.eo',
29 'elm_menu_item.eo', 28 'elm_menu_item.eo',
30 'elm_index_item.eo', 29 'elm_index_item.eo',
31 'elm_widget_item_static_focus.eo', 30 'elm_widget_item_static_focus.eo',
@@ -50,7 +49,6 @@ pub_legacy_eo_files = [
50 'elm_actionslider_part.eo', 49 'elm_actionslider_part.eo',
51 'elm_bubble_part.eo', 50 'elm_bubble_part.eo',
52 'elm_fileselector_part.eo', 51 'elm_fileselector_part.eo',
53 'elm_flipselector.eo',
54 'elm_grid.eo', 52 'elm_grid.eo',
55 'elm_icon.eo', 53 'elm_icon.eo',
56 'elm_inwin.eo', 54 'elm_inwin.eo',
@@ -744,6 +742,10 @@ elementary_pub_headers = [
744 'elm_fileselector_entry_eo.legacy.h', 742 'elm_fileselector_entry_eo.legacy.h',
745 'elm_fileselector_eo.h', 743 'elm_fileselector_eo.h',
746 'elm_fileselector_eo.legacy.h', 744 'elm_fileselector_eo.legacy.h',
745 'elm_flipselector_eo.h',
746 'elm_flipselector_eo.legacy.h',
747 'elm_flipselector_item_eo.h',
748 'elm_flipselector_item_eo.legacy.h',
747 'elm_hoversel_eo.h', 749 'elm_hoversel_eo.h',
748 'elm_hoversel_eo.legacy.h', 750 'elm_hoversel_eo.legacy.h',
749 'elm_hoversel_item_eo.h', 751 'elm_hoversel_item_eo.h',