summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_segment_control_item_eo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_segment_control_item_eo.h')
-rw-r--r--src/lib/elementary/elm_segment_control_item_eo.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_segment_control_item_eo.h b/src/lib/elementary/elm_segment_control_item_eo.h
new file mode 100644
index 0000000..b61ba74
--- /dev/null
+++ b/src/lib/elementary/elm_segment_control_item_eo.h
@@ -0,0 +1,72 @@
1#ifndef _ELM_SEGMENT_CONTROL_ITEM_EO_H_
2#define _ELM_SEGMENT_CONTROL_ITEM_EO_H_
3
4#ifndef _ELM_SEGMENT_CONTROL_ITEM_EO_CLASS_TYPE
5#define _ELM_SEGMENT_CONTROL_ITEM_EO_CLASS_TYPE
6
7typedef Eo Elm_Segment_Control_Item;
8
9#endif
10
11#ifndef _ELM_SEGMENT_CONTROL_ITEM_EO_TYPES
12#define _ELM_SEGMENT_CONTROL_ITEM_EO_TYPES
13
14
15#endif
16/** Elementary segment control item class
17 *
18 * @ingroup Elm_Segment_Control_Item
19 */
20#define ELM_SEGMENT_CONTROL_ITEM_CLASS elm_segment_control_item_class_get()
21
22EWAPI const Efl_Class *elm_segment_control_item_class_get(void);
23
24/**
25 * @brief Get the index of an item.
26 *
27 * Index is the position of an item in segment control widget. Its range is
28 * from 0 to (count - 1). Count is the number of items, that can be get with
29 * elm_segment_control_item_count_get()
30 *
31 * @param[in] obj The object.
32 *
33 * @return The position of item in segment control widget.
34 *
35 * @ingroup Elm_Segment_Control_Item
36 */
37EOAPI int elm_obj_segment_control_item_index_get(const Eo *obj);
38
39/**
40 * @brief Get the real Evas(Edje) object created to implement the view of a
41 * given segment_control item.
42 *
43 * Base object is the @ref Efl_Canvas_Object that represents that item.
44 *
45 * @param[in] obj The object.
46 *
47 * @return The base Edje object associated with @c it
48 *
49 * @ingroup Elm_Segment_Control_Item
50 */
51EOAPI Efl_Canvas_Object *elm_obj_segment_control_item_object_get(const Eo *obj);
52
53/**
54 * @brief Set the selected state of an item.
55 *
56 * This sets the selected state of the given item @c it. @c true for selected,
57 * @c false for not selected.
58 *
59 * If a new item is selected the previously selected will be unselected.
60 * Selected item can be got with function
61 * elm_segment_control_item_selected_get().
62 *
63 * The selected item always will be highlighted on segment control.
64 *
65 * @param[in] obj The object.
66 * @param[in] selected The selected state.
67 *
68 * @ingroup Elm_Segment_Control_Item
69 */
70EOAPI void elm_obj_segment_control_item_selected_set(Eo *obj, Eina_Bool selected);
71
72#endif