summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_index_item_eo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_index_item_eo.h')
-rw-r--r--src/lib/elementary/elm_index_item_eo.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_index_item_eo.h b/src/lib/elementary/elm_index_item_eo.h
new file mode 100644
index 0000000..39c8a9e
--- /dev/null
+++ b/src/lib/elementary/elm_index_item_eo.h
@@ -0,0 +1,71 @@
1#ifndef _ELM_INDEX_ITEM_EO_H_
2#define _ELM_INDEX_ITEM_EO_H_
3
4#ifndef _ELM_INDEX_ITEM_EO_CLASS_TYPE
5#define _ELM_INDEX_ITEM_EO_CLASS_TYPE
6
7typedef Eo Elm_Index_Item;
8
9#endif
10
11#ifndef _ELM_INDEX_ITEM_EO_TYPES
12#define _ELM_INDEX_ITEM_EO_TYPES
13
14
15#endif
16/** Elementary index item class
17 *
18 * @ingroup Elm_Index_Item
19 */
20#define ELM_INDEX_ITEM_CLASS elm_index_item_class_get()
21
22EWAPI const Efl_Class *elm_index_item_class_get(void);
23
24/**
25 * @brief Set the selected state of an item.
26 *
27 * This sets the selected state of the given item @c it. @c true for selected,
28 * @c false for not selected.
29 *
30 * If a new item is selected the previously selected will be unselected.
31 * Previously selected item can be get with function
32 * elm_index_selected_item_get().
33 *
34 * Selected items will be highlighted.
35 *
36 * @param[in] obj The object.
37 * @param[in] selected @c true if selected, @c false otherwise
38 *
39 * @ingroup Elm_Index_Item
40 */
41EOAPI void elm_obj_index_item_selected_set(Eo *obj, Eina_Bool selected);
42
43/**
44 * @brief Sets the priority of an item.
45 *
46 * The priority is -1 by default, which means that the item doesn't belong to a
47 * group. The value of the priority starts from 0.
48 *
49 * In elm_index_level_go, the items are sorted in ascending order according to
50 * priority. Items of the same priority make a group and the primary group is
51 * shown by default.
52 *
53 * @param[in] obj The object.
54 * @param[in] priority The priority
55 *
56 * @ingroup Elm_Index_Item
57 */
58EOAPI void elm_obj_index_item_priority_set(Eo *obj, int priority);
59
60/**
61 * @brief Get the letter (string) set on a given index widget item.
62 *
63 * @param[in] obj The object.
64 *
65 * @return The letter string set on @c item
66 *
67 * @ingroup Elm_Index_Item
68 */
69EOAPI const char *elm_obj_index_item_letter_get(const Eo *obj);
70
71#endif