2 * @addtogroup Elm_Colorselector
7 typedef struct _Elm_Color_RGBA Elm_Color_RGBA;
16 typedef struct _Elm_Custom_Palette Elm_Custom_Palette;
17 struct _Elm_Custom_Palette
19 const char *palette_name;
20 Eina_List *color_list;
23 /* TIZEN_ONLY(20160705): Move Elm_Colorselector_Mode enum to
24 elm_colorselector_common.h to mark enum members
28 ELM_COLORSELECTOR_PALETTE = 0, /**< Only color palette is displayed, default */
29 ELM_COLORSELECTOR_COMPONENTS, /**< Only color selector is displayed */
30 ELM_COLORSELECTOR_BOTH, /**< Both Palette and selector is displayed */
31 ELM_COLORSELECTOR_PICKER, /**< Only color picker is displayed */
32 ELM_COLORSELECTOR_PLANE, /**< @deprecated This mode is not supported. If you use this, nothing will be shown */
33 ELM_COLORSELECTOR_PALETTE_PLANE, /**< @deprecated This mode is not supported. If you use this, it will be shown same with ELM_COLORSELECTOR_PALETTE mode */
34 ELM_COLORSELECTOR_ALL /**< @deprecated This mode is not supported. If you use this, it will be shown same with ELM_COLORSELECTOR_PALETTE mode */
35 } Elm_Colorselector_Mode;
39 * @brief Get Palette item's color.
41 * @if MOBILE @since_tizen 2.3
42 * @elseif WEARABLE @since_tizen 2.3.1
45 * @param[in] it The color palette item.
46 * @param[out] r integer pointer for r-value of color
47 * @param[out] g integer pointer for g-value of color
48 * @param[out] b integer pointer for b-value of color
49 * @param[out] a integer pointer for a-value of color
51 * @ingroup Colorselector
53 EAPI void elm_colorselector_palette_item_color_get(const Elm_Object_Item *it, int *r, int *g, int *b, int *a);
56 * @brief Set palette item's color.
58 * @if MOBILE @since_tizen 2.3
59 * @elseif WEARABLE @since_tizen 2.3.1
62 * @param[in] it The color palette item.
63 * @param[in] r r-value of color
64 * @param[in] g g-value of color
65 * @param[in] b b-value of color
66 * @param[in] a a-value of color
68 * @ingroup Colorselector
70 EAPI void elm_colorselector_palette_item_color_set(Elm_Object_Item *it, int r, int g, int b, int a);
73 * @brief Get the selected state of color palette item.
75 * @if MOBILE @since_tizen 2.3.1
78 * @param[in] it The Colorpalette item
79 * @return @c EINA_TRUE if the item is selected, @c EINA_FALSE otherwise.
81 * @ingroup Colorselector
83 EAPI Eina_Bool elm_colorselector_palette_item_selected_get(const Elm_Object_Item *it);
86 * @brief Set the selected state of color palette item.
88 * @if MOBILE @since_tizen 2.3.1
91 * @param[in] it The Colorpalette item
92 * @param[in] selected The selected state
94 * @ingroup Colorselector
96 EAPI void elm_colorselector_palette_item_selected_set(Elm_Object_Item *it, Eina_Bool selected);