summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_actionslider_eo.legacy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_actionslider_eo.legacy.h')
-rw-r--r--src/lib/elementary/elm_actionslider_eo.legacy.h113
1 files changed, 113 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_actionslider_eo.legacy.h b/src/lib/elementary/elm_actionslider_eo.legacy.h
new file mode 100644
index 0000000..6a8b63b
--- /dev/null
+++ b/src/lib/elementary/elm_actionslider_eo.legacy.h
@@ -0,0 +1,113 @@
1#ifndef _ELM_ACTIONSLIDER_EO_LEGACY_H_
2#define _ELM_ACTIONSLIDER_EO_LEGACY_H_
3
4#ifndef _ELM_ACTIONSLIDER_EO_CLASS_TYPE
5#define _ELM_ACTIONSLIDER_EO_CLASS_TYPE
6
7typedef Eo Elm_Actionslider;
8
9#endif
10
11#ifndef _ELM_ACTIONSLIDER_EO_TYPES
12#define _ELM_ACTIONSLIDER_EO_TYPES
13
14/** A position for indicators, magnets, and enabled items.
15 *
16 * @ingroup Elm_Actionslider
17 */
18typedef enum
19{
20 ELM_ACTIONSLIDER_NONE = 0, /**< No position is set. */
21 ELM_ACTIONSLIDER_LEFT = 1 /* 1 >> 0 */, /**< Left position. */
22 ELM_ACTIONSLIDER_CENTER = 2 /* 1 >> 1 */, /**< Center position. */
23 ELM_ACTIONSLIDER_RIGHT = 4 /* 1 >> 2 */, /**< Right position. */
24 ELM_ACTIONSLIDER_ALL = 7 /* (1 >> 3) * 1 */ /**< All positions for
25 * left/center/right. */
26} Elm_Actionslider_Pos;
27
28
29#endif
30
31/**
32 * @brief Actionslider position indicator
33 *
34 * @param[in] obj The object.
35 * @param[in] pos The position of the indicator.
36 *
37 * @ingroup Elm_Actionslider_Group
38 */
39EAPI void elm_actionslider_indicator_pos_set(Elm_Actionslider *obj, Elm_Actionslider_Pos pos);
40
41/**
42 * @brief Actionslider position indicator
43 *
44 * @param[in] obj The object.
45 *
46 * @return The position of the indicator.
47 *
48 * @ingroup Elm_Actionslider_Group
49 */
50EAPI Elm_Actionslider_Pos elm_actionslider_indicator_pos_get(const Elm_Actionslider *obj);
51
52/**
53 * @brief Actionslider magnet position.
54 *
55 * To make multiple positions magnets OR them together (e.g.
56 * ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT)
57 *
58 * @param[in] obj The object.
59 * @param[in] pos Bit mask indicating the magnet positions.
60 *
61 * @ingroup Elm_Actionslider_Group
62 */
63EAPI void elm_actionslider_magnet_pos_set(Elm_Actionslider *obj, Elm_Actionslider_Pos pos);
64
65/**
66 * @brief Actionslider magnet position.
67 *
68 * @param[in] obj The object.
69 *
70 * @return Bit mask indicating the magnet positions.
71 *
72 * @ingroup Elm_Actionslider_Group
73 */
74EAPI Elm_Actionslider_Pos elm_actionslider_magnet_pos_get(const Elm_Actionslider *obj);
75
76/**
77 * @brief Actionslider enabled position.
78 *
79 * To set multiple positions as enabled OR them together(e.g.
80 * ELM_ACTIONSLIDER_LEFT | ELM_ACTIONSLIDER_RIGHT).
81 *
82 * @note All the positions are enabled by default.
83 *
84 * @param[in] obj The object.
85 * @param[in] pos Bit mask indicating the enabled positions.
86 *
87 * @ingroup Elm_Actionslider_Group
88 */
89EAPI void elm_actionslider_enabled_pos_set(Elm_Actionslider *obj, Elm_Actionslider_Pos pos);
90
91/**
92 * @brief Actionslider enabled position.
93 *
94 * @param[in] obj The object.
95 *
96 * @return Bit mask indicating the enabled positions.
97 *
98 * @ingroup Elm_Actionslider_Group
99 */
100EAPI Elm_Actionslider_Pos elm_actionslider_enabled_pos_get(const Elm_Actionslider *obj);
101
102/**
103 * @brief Get actionslider selected label.
104 *
105 * @param[in] obj The object.
106 *
107 * @return Selected label
108 *
109 * @ingroup Elm_Actionslider_Group
110 */
111EAPI const char *elm_actionslider_selected_label_get(const Elm_Actionslider *obj);
112
113#endif