1 #include <Elementary.h>
5 * @addtogroup Flipselector Flipselector
7 * A flip selector is a widget to show a set of label items, one at a
8 * time, with an animation when one changes the current selection
9 * (like the flip of calendar sheets, in the default theme).
12 /* TODO: ideally, the default theme would use map{} blocks on the TEXT
13 parts to implement their fading in/out propertly (as in the clock
15 /* TODO: if one ever wants to extend it to receiving generic widgets
16 as items, be my guest. in this case, remember to implement the
17 items tooltip infra. */
18 /* TODO: implement disabled mode -- disable_hook() and stuff. */
19 /* TODO: fix default theme image borders for looong strings as item
21 /* TODO: set text elipsis on labels if one enforces mininum size on
22 * the overall widget less the required for displaying it. */
23 /* TODO: find a way to, in the default theme, to detect we are
24 * bootstrapping (receiving the 1st message) and populate the downmost
25 * TEXT parts with the same text as the upmost, where appropriate. */
27 #define FLIP_FIRST_INTERVAL (0.85)
28 #define FLIP_MIN_INTERVAL (0.1)
29 #define MSG_FLIP_DOWN (1)
30 #define MSG_FLIP_UP (2)
31 #define MAX_LEN_DEFAULT (50)
33 #define DATA_GET eina_list_data_get
35 struct _Elm_Flipselector_Item {
43 typedef struct _Widget_Data Widget_Data;
50 Eina_List *sentinel; /* item containing the largest label string */
54 double interval, first_interval;
57 static const char *widtype = NULL;
58 static void _del_hook(Evas_Object *obj);
59 static void _theme_hook(Evas_Object *obj);
60 static void _sizing_eval(Evas_Object *obj);
61 static void _update_view(Evas_Object *obj);
62 static void _callbacks_set(Evas_Object *obj);
63 static void _flip_up(Widget_Data *wd);
64 static void _flip_down(Widget_Data *wd);
66 static const char SIG_SELECTED[] = "selected";
67 static const char SIG_UNDERFLOWED[] = "underflowed";
68 static const char SIG_OVERFLOWED[] = "overflowed";
69 static const Evas_Smart_Cb_Description _signals[] = {
71 {SIG_UNDERFLOWED, ""},
76 #define ELM_FLIPSELECTOR_ITEM_CHECK_DELETED_RETURN(it, ...) \
77 ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it, __VA_ARGS__); \
80 ERR(""#it" has been DELETED.\n"); \
84 static Elm_Flipselector_Item *
85 _item_new(Evas_Object *obj, const char *label, Evas_Smart_Cb func, const void *data)
88 Elm_Flipselector_Item *it;
89 Widget_Data *wd = elm_widget_data_get(obj);
91 it = elm_widget_item_new(obj, Elm_Flipselector_Item);
96 if (len > wd->max_len)
99 it->label = eina_stringshare_add_length(label, len);
101 it->base.data = data;
103 /* TODO: no view here, but if one desires general contents in the
109 _item_free(Elm_Flipselector_Item *it)
111 eina_stringshare_del(it->label);
112 elm_widget_item_del(it);
116 _del_hook(Evas_Object *obj)
118 Elm_Flipselector_Item *item;
120 Widget_Data *wd = elm_widget_data_get(obj);
125 ERR("flipselector deleted while walking.\n");
127 EINA_LIST_FREE(wd->items, item)
130 if (wd->spin) ecore_timer_del(wd->spin);
135 _theme_hook(Evas_Object *obj)
140 wd = elm_widget_data_get(obj);
144 _elm_theme_object_set(obj, wd->base, "flipselector", "base",
145 elm_widget_style_get(obj));
146 edje_object_scale_set(wd->base,
147 elm_widget_scale_get(obj) * _elm_config->scale);
149 max_len = edje_object_data_get(wd->base, "max_len");
151 wd->max_len = MAX_LEN_DEFAULT;
154 wd->max_len = atoi(max_len);
156 wd->max_len = MAX_LEN_DEFAULT;
164 _sentinel_eval(Widget_Data *wd)
166 Elm_Flipselector_Item *it;
175 wd->sentinel = wd->items;
177 EINA_LIST_FOREACH(wd->items, l, it)
179 if (strlen(elm_flipselector_item_label_get(it)) >
180 strlen(elm_flipselector_item_label_get(DATA_GET(wd->sentinel))))
185 /* TODO: create a flag to avoid looping here all times */
187 _flipselector_process_deletions(Widget_Data *wd)
189 Elm_Flipselector_Item *it;
191 Eina_Bool skip = EINA_TRUE;
192 Eina_Bool sentinel_eval = EINA_FALSE;
194 wd->walking++; /* avoid nested deletions */
196 EINA_LIST_FOREACH(wd->items, l, it)
201 if (wd->current == l)
203 if (wd->current == wd->sentinel)
204 sentinel_eval = EINA_TRUE;
206 wd->current = eina_list_prev(wd->current);
208 wd->items = eina_list_remove(wd->items, it);
211 wd->current = wd->items;
216 if (eina_list_count(wd->items) <= 1)
217 edje_object_signal_emit(wd->base, "elm,state,button,hidden", "elm");
219 edje_object_signal_emit(wd->base, "elm,state,button,visible", "elm");
223 _update_view(wd->self);
232 _flipselector_walk(Widget_Data *wd)
236 ERR("walking was negative. fixed!\n");
243 _flipselector_unwalk(Widget_Data *wd)
248 ERR("walking became negative. fixed!\n");
255 _flipselector_process_deletions(wd);
259 _event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, Evas_Callback_Type type, void *event_info)
261 Evas_Event_Key_Down *ev;
263 Eina_Bool is_up = EINA_TRUE;
265 if (type != EVAS_CALLBACK_KEY_DOWN)
268 wd = elm_widget_data_get(obj);
273 if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD)
276 if (elm_widget_disabled_get(obj))
279 if ((!strcmp(ev->keyname, "Down")) || (!strcmp(ev->keyname, "KP_Down")))
281 else if ((strcmp(ev->keyname, "Up")) && (strcmp(ev->keyname, "KP_Up")))
284 if (wd->spin) ecore_timer_del(wd->spin);
286 /* TODO: if direction setting via API is not coming in, replace
287 these calls by flip_{next,prev} */
288 _flipselector_walk(wd);
293 _flipselector_unwalk(wd);
295 ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
300 _on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
302 Widget_Data *wd = elm_widget_data_get(obj);
306 /* FIXME: no treatment of this signal so far */
307 if (elm_widget_focus_get(obj))
309 edje_object_signal_emit(wd->base, "elm,action,focus", "elm");
310 evas_object_focus_set(wd->base, EINA_TRUE);
314 edje_object_signal_emit(wd->base, "elm,action,unfocus", "elm");
315 evas_object_focus_set(wd->base, EINA_FALSE);
320 _sizing_eval(Evas_Object *obj)
323 const char *tmp = NULL;
324 Evas_Coord minw = -1, minh = -1, w, h;
326 wd = elm_widget_data_get(obj);
330 elm_coords_finger_size_adjust(1, &minw, 2, &minh);
334 const char *label = \
335 elm_flipselector_item_label_get(DATA_GET(wd->sentinel));
337 tmp = edje_object_part_text_get(wd->base, "top");
338 edje_object_part_text_set(wd->base, "top", label);
341 edje_object_size_min_restricted_calc(wd->base, &minw, &minh, minw, minh);
342 elm_coords_finger_size_adjust(1, &minw, 2, &minh);
343 evas_object_size_hint_min_get(obj, &w, &h);
346 edje_object_part_text_set(wd->base, "top", tmp);
348 if (w > minw) minw = w;
349 if (h > minh) minh = h;
351 evas_object_size_hint_min_set(obj, minw, minh);
355 _update_view(Evas_Object *obj)
359 Elm_Flipselector_Item *item;
361 wd = elm_widget_data_get(obj);
366 item = DATA_GET(wd->current);
370 edje_object_part_text_set(wd->base, "top", label ? label : "");
371 edje_object_part_text_set(wd->base, "bottom", label ? label : "");
373 edje_object_message_signal_process(wd->base);
377 _changed(Widget_Data *wd)
379 Elm_Flipselector_Item *item;
381 item = DATA_GET(wd->current);
386 item->func((void *)item->base.data, item->base.widget, item);
388 evas_object_smart_callback_call(wd->self, SIG_SELECTED, item);
392 _send_msg(Widget_Data *wd, int flipside, char *label)
394 Edje_Message_String msg;
397 edje_object_message_send(wd->base, EDJE_MESSAGE_STRING, flipside, &msg);
398 edje_object_message_signal_process(wd->base);
404 _flip_up(Widget_Data *wd)
406 Elm_Flipselector_Item *item;
411 if (wd->current == wd->items)
413 wd->current = eina_list_last(wd->items);
414 evas_object_smart_callback_call(wd->self, SIG_UNDERFLOWED, NULL);
417 wd->current = eina_list_prev(wd->current);
419 item = DATA_GET(wd->current);
423 _send_msg(wd, MSG_FLIP_UP, (char *)item->label);
427 _signal_val_up(void *data)
429 Widget_Data *wd = elm_widget_data_get(data);
432 goto val_up_exit_on_error;
434 _flipselector_walk(wd);
436 if (wd->interval > FLIP_MIN_INTERVAL)
437 wd->interval = wd->interval / 1.05;
439 ecore_timer_interval_set(wd->spin, wd->interval);
443 _flipselector_unwalk(wd);
445 return ECORE_CALLBACK_RENEW;
447 val_up_exit_on_error:
448 return ECORE_CALLBACK_CANCEL;
452 _signal_val_up_start(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
454 Widget_Data *wd = elm_widget_data_get(data);
458 wd->interval = wd->first_interval;
461 ecore_timer_del(wd->spin);
462 wd->spin = ecore_timer_add(wd->interval, _signal_val_up, data);
464 _signal_val_up(data);
468 _flip_down(Widget_Data *wd)
470 Elm_Flipselector_Item *item;
475 wd->current = eina_list_next(wd->current);
478 wd->current = wd->items;
479 evas_object_smart_callback_call(wd->self, SIG_OVERFLOWED, NULL);
482 item = DATA_GET(wd->current);
486 _send_msg(wd, MSG_FLIP_DOWN, (char *)item->label);
490 _signal_val_down(void *data)
492 Widget_Data *wd = elm_widget_data_get(data);
495 goto val_down_exit_on_error;
497 _flipselector_walk(wd);
499 if (wd->interval > FLIP_MIN_INTERVAL)
500 wd->interval = wd->interval / 1.05;
501 ecore_timer_interval_set(wd->spin, wd->interval);
505 _flipselector_unwalk(wd);
507 return ECORE_CALLBACK_RENEW;
509 val_down_exit_on_error:
510 return ECORE_CALLBACK_CANCEL;
514 _signal_val_down_start(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
516 Widget_Data *wd = elm_widget_data_get(data);
520 wd->interval = wd->first_interval;
523 ecore_timer_del(wd->spin);
524 wd->spin = ecore_timer_add(wd->interval, _signal_val_down, data);
526 _signal_val_down(data);
530 _signal_val_change_stop(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
532 Widget_Data *wd = elm_widget_data_get(data);
537 ecore_timer_del(wd->spin);
542 _callbacks_set(Evas_Object *obj)
544 Widget_Data *wd = elm_widget_data_get(obj);
546 edje_object_signal_callback_add(wd->base, "elm,action,up,start",
547 "", _signal_val_up_start, obj);
548 edje_object_signal_callback_add(wd->base, "elm,action,up,stop",
549 "", _signal_val_change_stop, obj);
550 edje_object_signal_callback_add(wd->base, "elm,action,down,start",
551 "", _signal_val_down_start, obj);
552 edje_object_signal_callback_add(wd->base, "elm,action,down,stop",
553 "", _signal_val_change_stop, obj);
557 * Add a new flipselector to the parent.
559 * @param parent The parent object
560 * @return The new object or NULL, if it cannot be created
562 * @ingroup Flipselector
565 elm_flipselector_add(Evas_Object *parent)
571 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
573 wd = ELM_NEW(Widget_Data);
574 e = evas_object_evas_get(parent);
576 obj = elm_widget_add(e);
578 ELM_SET_WIDTYPE(widtype, "flipselector");
579 elm_widget_type_set(obj, "flipselector");
580 elm_widget_sub_object_add(parent, obj);
581 elm_widget_data_set(obj, wd);
583 elm_widget_del_hook_set(obj, _del_hook);
584 elm_widget_theme_hook_set(obj, _theme_hook);
585 /* TODO: elm_widget_disable_hook_set(obj, _disable_hook); */
587 elm_widget_can_focus_set(obj, EINA_TRUE);
588 elm_widget_on_focus_hook_set(obj, _on_focus_hook, NULL);
589 elm_widget_event_hook_set(obj, _event_hook);
591 wd->base = edje_object_add(e);
592 elm_widget_resize_object_set(obj, wd->base);
596 wd->first_interval = FLIP_FIRST_INTERVAL;
600 evas_object_smart_callbacks_descriptions_set(obj, _signals);
605 * Select next item of a flipselector.
607 * @param obj The flipselector object
609 * @ingroup Flipselector
612 elm_flipselector_flip_next(Evas_Object *obj)
614 ELM_CHECK_WIDTYPE(obj, widtype);
616 Widget_Data *wd = elm_widget_data_get(obj);
620 if (wd->spin) ecore_timer_del(wd->spin);
622 _flipselector_walk(wd);
624 _flipselector_unwalk(wd);
628 * Select previous item of a flipselector.
630 * @param obj The flipselector object
632 * @ingroup Flipselector
635 elm_flipselector_flip_prev(Evas_Object *obj)
637 ELM_CHECK_WIDTYPE(obj, widtype);
639 Widget_Data *wd = elm_widget_data_get(obj);
643 if (wd->spin) ecore_timer_del(wd->spin);
645 _flipselector_walk(wd);
647 _flipselector_unwalk(wd);
651 * Append item to a flipselector.
653 * @param obj The flipselector object
654 * @param label The label of new item
655 * @param func Convenience function called when item selected
656 * @param data Data passed to @p func above
657 * @return A handle to the item added or NULL, on errors
659 * @note The maximum length of the label is going to be determined by
660 * the widget's theme. Strings larger than that value are going to be
663 * @ingroup Flipselector
665 EAPI Elm_Flipselector_Item *
666 elm_flipselector_item_append(Evas_Object *obj, const char *label, void (*func)(void *data, Evas_Object *obj, void *event_info), void *data)
668 ELM_CHECK_WIDTYPE(obj, widtype) NULL;
670 Elm_Flipselector_Item *item;
673 wd = elm_widget_data_get(obj);
677 item = _item_new(obj, label, func, data);
681 wd->items = eina_list_append(wd->items, item);
683 wd->current = wd->items;
688 (strlen(elm_flipselector_item_label_get(item)) >
689 strlen(elm_flipselector_item_label_get(DATA_GET(wd->sentinel)))))
691 wd->sentinel = eina_list_last(wd->items);
695 if (eina_list_count(wd->items) >= 2)
696 edje_object_signal_emit(wd->base, "elm,state,button,visible", "elm");
702 * Prepend item to a flipselector.
704 * @param obj The flipselector object
705 * @param label The label of new item
706 * @param func Convenience function called when item selected
707 * @param data Data passed to @p func above
708 * @return A handle to the item added or NULL, on errors
710 * @note The maximum length of the label is going to be determined by
711 * the widget's theme. Strings larger than that value are going to be
714 * @ingroup Flipselector
716 EAPI Elm_Flipselector_Item *
717 elm_flipselector_item_prepend(Evas_Object *obj, const char *label, void (*func)(void *data, Evas_Object *obj, void *event_info), void *data)
719 ELM_CHECK_WIDTYPE(obj, widtype) NULL;
721 Elm_Flipselector_Item *item;
724 wd = elm_widget_data_get(obj);
728 item = _item_new(obj, label, func, data);
732 wd->items = eina_list_prepend(wd->items, item);
734 wd->current = wd->items;
739 (strlen(elm_flipselector_item_label_get(item)) >
740 strlen(elm_flipselector_item_label_get(DATA_GET(wd->sentinel)))))
742 wd->sentinel = wd->items;
746 if (eina_list_count(wd->items) >= 2)
747 edje_object_signal_emit(wd->base, "elm,state,button,visible", "elm");
752 /* TODO: account for deleted items? */
754 * Get a list of items in the flipselector.
756 * @param obj The flipselector object
757 * @return The list of items, or NULL on errors.
759 * @ingroup Flipselector
761 EAPI const Eina_List *
762 elm_flipselector_items_get(const Evas_Object *obj)
764 ELM_CHECK_WIDTYPE(obj, widtype) NULL;
766 Widget_Data *wd = elm_widget_data_get(obj);
774 * Get the first item in the flipselector
776 * @param obj The flipselector object
777 * @return The first item, or NULL if none
779 * @ingroup Flipselector
781 EAPI Elm_Flipselector_Item *
782 elm_flipselector_first_item_get(const Evas_Object *obj)
784 ELM_CHECK_WIDTYPE(obj, widtype) NULL;
786 Elm_Flipselector_Item *it;
790 wd = elm_widget_data_get(obj);
791 if (!wd || !wd->items)
794 EINA_LIST_FOREACH(wd->items, l, it)
806 * Get the last item in the flipselector
808 * @param obj The flipselector object
809 * @return The last item, or NULL if none
811 * @ingroup Flipselector
813 EAPI Elm_Flipselector_Item *
814 elm_flipselector_last_item_get(const Evas_Object *obj)
816 ELM_CHECK_WIDTYPE(obj, widtype) NULL;
818 Elm_Flipselector_Item *it;
822 wd = elm_widget_data_get(obj);
823 if (!wd || !wd->items)
826 EINA_LIST_REVERSE_FOREACH(wd->items, l, it)
838 * Get the selected item in a flipselector.
840 * @param obj The flipselector object
841 * @return The selected item, or NULL if none
843 * @ingroup Flipselector
845 EAPI Elm_Flipselector_Item *
846 elm_flipselector_selected_item_get(const Evas_Object *obj)
848 ELM_CHECK_WIDTYPE(obj, widtype) NULL;
850 Widget_Data *wd = elm_widget_data_get(obj);
851 if (!wd || !wd->current)
854 return DATA_GET(wd->current);
858 * Set the selected state of an item
860 * This sets the selected state (EINA_TRUE selected, EINA_FALSE not selected)
861 * of the given item @p item.
862 * If a new item is selected the previosly selected will be unselected.
863 * If the item @p item is unselected, the first item will be selected.
865 * @param item The item
866 * @param selected The selected state
868 * @ingroup Flipselector
871 elm_flipselector_item_selected_set(Elm_Flipselector_Item *item, Eina_Bool selected)
873 ELM_FLIPSELECTOR_ITEM_CHECK_DELETED_RETURN(item);
875 Elm_Flipselector_Item *_item, *cur;
876 int flipside = MSG_FLIP_UP;
880 wd = elm_widget_data_get(item->base.widget);
884 cur = DATA_GET(wd->current);
885 if ((selected) && (cur == item))
888 _flipselector_walk(wd);
890 if ((!selected) && (cur == item))
892 EINA_LIST_FOREACH(wd->items, l, _item)
897 _send_msg(wd, MSG_FLIP_UP, (char *)_item->label);
901 _flipselector_unwalk(wd);
905 EINA_LIST_FOREACH(wd->items, l, _item)
908 flipside = MSG_FLIP_DOWN;
913 _send_msg(wd, flipside, (char *)item->label);
918 _flipselector_unwalk(wd);
922 * Get the selected state of @p item.
924 * @param item The flipselector item
925 * @return If true, the item is selected
927 * @ingroup Flipselector
930 elm_flipselector_item_selected_get(const Elm_Flipselector_Item *item)
932 ELM_FLIPSELECTOR_ITEM_CHECK_DELETED_RETURN(item, EINA_FALSE);
935 wd = elm_widget_data_get(item->base.widget);
936 if (!wd) return EINA_FALSE;
937 return (eina_list_data_get(wd->current) == item);
941 * Delete a given item from a flipselector.
943 * @param item The item
945 * @ingroup Flipselector
948 elm_flipselector_item_del(Elm_Flipselector_Item *item)
950 ELM_FLIPSELECTOR_ITEM_CHECK_DELETED_RETURN(item);
954 wd = elm_widget_data_get(item->base.widget);
960 item->deleted = EINA_TRUE;
964 _flipselector_walk(wd);
966 wd->items = eina_list_remove(wd->items, item);
970 _flipselector_unwalk(wd);
974 * Get the label of a given flipselector item.
976 * @param item The item
977 * @return The label of a given item, or NULL if none
979 * @ingroup Flipselector
982 elm_flipselector_item_label_get(const Elm_Flipselector_Item *item)
984 ELM_FLIPSELECTOR_ITEM_CHECK_DELETED_RETURN(item, NULL);
986 Elm_Flipselector_Item *_item;
990 wd = elm_widget_data_get(item->base.widget);
991 if ((!wd) || (!wd->items))
994 EINA_LIST_FOREACH(wd->items, l, _item)
1002 * Set the label of a given flipselector item.
1004 * @param item The item
1005 * @param label The text label string in UTF-8
1007 * @ingroup Flipselector
1010 elm_flipselector_item_label_set(Elm_Flipselector_Item *item, const char *label)
1012 ELM_FLIPSELECTOR_ITEM_CHECK_DELETED_RETURN(item);
1017 if ((!item) || (!label))
1020 wd = elm_widget_data_get(item->base.widget);
1021 if ((!wd) || (!wd->items))
1024 l = eina_list_data_find_list(wd->items, item);
1028 eina_stringshare_del(item->label);
1029 item->label = eina_stringshare_add_length(label, wd->max_len);
1032 strlen(elm_flipselector_item_label_get(DATA_GET(wd->sentinel))))
1035 if (wd->current == l)
1037 _update_view(item->base.widget);
1038 _sizing_eval(wd->self);
1045 * Gets the item before @p item in a flipselector.
1047 * @param item The item
1048 * @return The item before the item @p item
1050 * @ingroup Flipselector
1052 EAPI Elm_Flipselector_Item *
1053 elm_flipselector_item_prev_get(Elm_Flipselector_Item *item)
1055 ELM_FLIPSELECTOR_ITEM_CHECK_DELETED_RETURN(item, NULL);
1057 Elm_Flipselector_Item *_item;
1061 wd = elm_widget_data_get(item->base.widget);
1062 if ((!wd) || (!wd->items))
1065 EINA_LIST_FOREACH(wd->items, l, _item)
1068 l = eina_list_prev(l);
1078 * Gets the item after @p item in a flipselector.
1080 * @param item The item
1081 * @return The item after the item @p item
1083 * @ingroup Flipselector
1085 EAPI Elm_Flipselector_Item *
1086 elm_flipselector_item_next_get(Elm_Flipselector_Item *item)
1088 ELM_FLIPSELECTOR_ITEM_CHECK_DELETED_RETURN(item, NULL);
1090 Elm_Flipselector_Item *_item;
1094 wd = elm_widget_data_get(item->base.widget);
1095 if ((!wd) || (!wd->items))
1098 EINA_LIST_FOREACH(wd->items, l, _item)
1101 l = eina_list_next(l);
1111 * Set the flipping interval for the flipselector.
1113 * @param obj The flipselector object
1114 * @param interval The interval value in seconds
1116 * The interval value is decreased while the user flips the widget up
1117 * or down repeatedly. The next interval value is the previous
1118 * interval / 1.05, so it speeds up a bit. Default value is 0.85
1121 * @ingroup Flipselector
1124 elm_flipselector_interval_set(Evas_Object *obj, double interval)
1126 ELM_CHECK_WIDTYPE(obj, widtype);
1128 Widget_Data *wd = elm_widget_data_get(obj);
1132 wd->first_interval = interval;
1136 * Get the flipping interval of the flipselector.
1138 * @param obj The flipselector object
1139 * @return The value of the first interval in seconds
1141 * The interval value is decreased while the user flips the widget up
1142 * or down repeatedly. The next interval value is the previous
1143 * interval / 1.05, so it speeds up a bit. Default value is 0.85
1146 * @ingroup Flipselector
1149 elm_flipselector_interval_get(const Evas_Object *obj)
1151 ELM_CHECK_WIDTYPE(obj, widtype) 0.0;
1153 Widget_Data *wd = elm_widget_data_get(obj);
1157 return wd->first_interval;