summaryrefslogtreecommitdiff
path: root/src/lib/elm_colorselector_eo.h
blob: 93ddc4ce3e2855ce8a0334c5feca4b8746a879f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#define ELM_OBJ_COLORSELECTOR_CLASS elm_obj_colorselector_class_get()

const Eo_Class *elm_obj_colorselector_class_get(void) EINA_CONST;

extern EAPI Eo_Op ELM_OBJ_COLORSELECTOR_BASE_ID;

enum
{
   ELM_OBJ_COLORSELECTOR_SUB_ID_COLOR_SET,
   ELM_OBJ_COLORSELECTOR_SUB_ID_COLOR_GET,
   ELM_OBJ_COLORSELECTOR_SUB_ID_MODE_SET,
   ELM_OBJ_COLORSELECTOR_SUB_ID_MODE_GET,
   ELM_OBJ_COLORSELECTOR_SUB_ID_PALETTE_COLOR_ADD,
   ELM_OBJ_COLORSELECTOR_SUB_ID_PALETTE_CLEAR,
   ELM_OBJ_COLORSELECTOR_SUB_ID_PALETTE_NAME_SET,
   ELM_OBJ_COLORSELECTOR_SUB_ID_PALETTE_NAME_GET,
   ELM_OBJ_COLORSELECTOR_SUB_ID_LAST
};

#define ELM_OBJ_COLORSELECTOR_ID(sub_id) (ELM_OBJ_COLORSELECTOR_BASE_ID + sub_id)


/**
 * @def elm_obj_colorselector_color_set
 * @since 1.8
 *
 * Set color to colorselector
 *
 * @param[in] r
 * @param[in] g
 * @param[in] b
 * @param[in] a
 *
 * @see elm_colorselector_color_set
 *
 * @ingroup Colorselector
 */
#define elm_obj_colorselector_color_set(r, g, b, a) ELM_OBJ_COLORSELECTOR_ID(ELM_OBJ_COLORSELECTOR_SUB_ID_COLOR_SET), EO_TYPECHECK(int, r), EO_TYPECHECK(int, g), EO_TYPECHECK(int, b), EO_TYPECHECK(int, a)

/**
 * @def elm_obj_colorselector_color_get
 * @since 1.8
 *
 * Get current color from colorselector
 *
 * @param[out] r
 * @param[out] g
 * @param[out] b
 * @param[out] a
 *
 * @see elm_colorselector_color_get
 *
 * @ingroup Colorselector
 */
#define elm_obj_colorselector_color_get(r, g, b, a) ELM_OBJ_COLORSELECTOR_ID(ELM_OBJ_COLORSELECTOR_SUB_ID_COLOR_GET), EO_TYPECHECK(int *, r), EO_TYPECHECK(int *, g), EO_TYPECHECK(int *, b), EO_TYPECHECK(int *, a)

/**
 * @def elm_obj_colorselector_mode_set
 * @since 1.8
 *
 * Set Colorselector's mode.
 *
 * @param[in] mode
 *
 * @see elm_colorselector_mode_set
 *
 * @ingroup Colorselector
 */
#define elm_obj_colorselector_mode_set(mode) ELM_OBJ_COLORSELECTOR_ID(ELM_OBJ_COLORSELECTOR_SUB_ID_MODE_SET), EO_TYPECHECK(Elm_Colorselector_Mode, mode)

/**
 * @def elm_obj_colorselector_mode_get
 * @since 1.8
 *
 * Get Colorselector's mode.
 *
 * @param[out] ret
 *
 * @see elm_colorselector_mode_get
 *
 * @ingroup Colorselector
 */
#define elm_obj_colorselector_mode_get(ret) ELM_OBJ_COLORSELECTOR_ID(ELM_OBJ_COLORSELECTOR_SUB_ID_MODE_GET), EO_TYPECHECK(Elm_Colorselector_Mode *, ret)

/**
 * @def elm_obj_colorselector_palette_color_add
 * @since 1.8
 *
 * Add a new color item to palette.
 *
 * @param[in] r
 * @param[in] g
 * @param[in] b
 * @param[in] a
 * @param[out] ret
 *
 * @see elm_colorselector_palette_color_add
 *
 * @ingroup Colorselector
 */
#define elm_obj_colorselector_palette_color_add(r, g, b, a, ret) ELM_OBJ_COLORSELECTOR_ID(ELM_OBJ_COLORSELECTOR_SUB_ID_PALETTE_COLOR_ADD), EO_TYPECHECK(int, r), EO_TYPECHECK(int, g), EO_TYPECHECK(int, b), EO_TYPECHECK(int, a), EO_TYPECHECK(Elm_Object_Item **, ret)

/**
 * @def elm_obj_colorselector_palette_clear
 * @since 1.8
 *
 * Clear the palette items.
 *
 *
 * @see elm_colorselector_palette_clear
 *
 * @ingroup Colorselector
 */
#define elm_obj_colorselector_palette_clear() ELM_OBJ_COLORSELECTOR_ID(ELM_OBJ_COLORSELECTOR_SUB_ID_PALETTE_CLEAR)

/**
 * @def elm_obj_colorselector_palette_name_set
 * @since 1.8
 *
 * Set current palette's name
 *
 * @param[in] palette_name
 *
 * @see elm_colorselector_palette_name_set
 *
 * @ingroup Colorselector
 */
#define elm_obj_colorselector_palette_name_set(palette_name) ELM_OBJ_COLORSELECTOR_ID(ELM_OBJ_COLORSELECTOR_SUB_ID_PALETTE_NAME_SET), EO_TYPECHECK(const char *, palette_name)

/**
 * @def elm_obj_colorselector_palette_name_get
 * @since 1.8
 *
 * Get current palette's name
 *
 * @param[out] ret
 *
 * @see elm_colorselector_palette_name_get
 *
 * @ingroup Colorselector
 */
#define elm_obj_colorselector_palette_name_get(ret) ELM_OBJ_COLORSELECTOR_ID(ELM_OBJ_COLORSELECTOR_SUB_ID_PALETTE_NAME_GET), EO_TYPECHECK(const char **, ret)