2013-04-27 23:56:42 -07:00
|
|
|
typedef struct _Elm_Color_RGBA
|
|
|
|
{
|
|
|
|
unsigned int r;
|
|
|
|
unsigned int g;
|
|
|
|
unsigned int b;
|
|
|
|
unsigned int a;
|
|
|
|
} Elm_Color_RGBA;
|
|
|
|
|
|
|
|
typedef struct _Elm_Custom_Palette
|
|
|
|
{
|
|
|
|
const char *palette_name;
|
|
|
|
Eina_List *color_list;
|
|
|
|
} Elm_Custom_Palette;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @enum Elm_Colorselector_Mode
|
|
|
|
* @typedef Elm_Colorselector_Mode
|
|
|
|
*
|
|
|
|
* Different modes supported by Colorselector
|
|
|
|
*
|
|
|
|
* @see elm_colorselector_mode_set()
|
|
|
|
* @see elm_colorselector_mode_get()
|
|
|
|
*/
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
ELM_COLORSELECTOR_PALETTE = 0, /**< only color palette is displayed */
|
|
|
|
ELM_COLORSELECTOR_COMPONENTS, /**< only color selector is displayed */
|
|
|
|
ELM_COLORSELECTOR_BOTH, /**< Both Palette and selector is displayed, default */
|
|
|
|
ELM_COLORSELECTOR_PICKER, /**< only color picker is displayed */
|
|
|
|
ELM_COLORSELECTOR_ALL /**< all possible color selector is displayed */
|
|
|
|
} Elm_Colorselector_Mode;
|
|
|
|
|
|
|
|
EAPI void elm_colorselector_palette_item_color_get(const Elm_Object_Item *it, int *r, int *g, int *b, int *a);
|
|
|
|
|
|
|
|
EAPI void elm_colorselector_palette_item_color_set(Elm_Object_Item *it, int r, int g, int b, int a);
|
|
|
|
|
2014-02-07 20:33:58 -08:00
|
|
|
EAPI Eina_Bool elm_colorselector_palette_item_selected_get(const Elm_Object_Item *it);
|
|
|
|
|
|
|
|
EAPI void elm_colorselector_palette_item_selected_set(Elm_Object_Item *it, Eina_Bool selected);
|