summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_color_item_eo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_color_item_eo.h')
-rw-r--r--src/lib/elementary/elm_color_item_eo.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_color_item_eo.h b/src/lib/elementary/elm_color_item_eo.h
new file mode 100644
index 0000000..6fa8f14
--- /dev/null
+++ b/src/lib/elementary/elm_color_item_eo.h
@@ -0,0 +1,75 @@
1#ifndef _ELM_COLOR_ITEM_EO_H_
2#define _ELM_COLOR_ITEM_EO_H_
3
4#ifndef _ELM_COLOR_ITEM_EO_CLASS_TYPE
5#define _ELM_COLOR_ITEM_EO_CLASS_TYPE
6
7typedef Eo Elm_Color_Item;
8
9#endif
10
11#ifndef _ELM_COLOR_ITEM_EO_TYPES
12#define _ELM_COLOR_ITEM_EO_TYPES
13
14
15#endif
16/** Elementary color item class
17 *
18 * @ingroup Elm_Color_Item
19 */
20#define ELM_COLOR_ITEM_CLASS elm_color_item_class_get()
21
22EWAPI const Efl_Class *elm_color_item_class_get(void);
23
24/**
25 * @brief Set Palette item's color.
26 *
27 * @param[in] obj The object.
28 * @param[in] r Red-value of color
29 * @param[in] g Green-value of color
30 * @param[in] b Blue-value of color
31 * @param[in] a Alpha-value of color
32 *
33 * @ingroup Elm_Color_Item
34 */
35EOAPI void elm_obj_color_item_color_set(Eo *obj, int r, int g, int b, int a);
36
37/**
38 * @brief Get Palette item's color.
39 *
40 * @param[in] obj The object.
41 * @param[out] r Red-value of color
42 * @param[out] g Green-value of color
43 * @param[out] b Blue-value of color
44 * @param[out] a Alpha-value of color
45 *
46 * @ingroup Elm_Color_Item
47 */
48EOAPI void elm_obj_color_item_color_get(const Eo *obj, int *r, int *g, int *b, int *a);
49
50/**
51 * @brief Set the selected state of color palette item
52 *
53 * @param[in] obj The object.
54 * @param[in] selected @c true if selected @c false otherwise
55 *
56 * @since 1.9
57 *
58 * @ingroup Elm_Color_Item
59 */
60EOAPI void elm_obj_color_item_selected_set(Eo *obj, Eina_Bool selected);
61
62/**
63 * @brief Get the selected state of color palette item
64 *
65 * @param[in] obj The object.
66 *
67 * @return @c true if selected @c false otherwise
68 *
69 * @since 1.9
70 *
71 * @ingroup Elm_Color_Item
72 */
73EOAPI Eina_Bool elm_obj_color_item_selected_get(const Eo *obj);
74
75#endif