Functions
Colorselector

Functions

Elm_Object_Itemelm_colorselector::palette_color_add (int r_, int g_, int b_, int a_) const
 Add a new color item to palette. More...
 
void elm_colorselector::palette_clear () const
 Clear the palette items.
 
void elm_colorselector::color_get (int *r_, int *g_, int *b_, int *a_) const
 Get current color from colorselector. More...
 
void elm_colorselector::color_set (int r_, int g_, int b_, int a_) const
 Get current color from colorselector. More...
 
std::string elm_colorselector::palette_name_get () const
 Get current palette's name. More...
 
void elm_colorselector::palette_name_set (std::string palette_name_) const
 Get current palette's name. More...
 
Elm_Colorselector_Mode elm_colorselector::mode_get () const
 Get Colorselector's mode. More...
 
void elm_colorselector::mode_set (Elm_Colorselector_Mode mode_) const
 Get Colorselector's mode. More...
 
const Eina_List * elm_colorselector::palette_items_get () const
 Get list of palette items. More...
 
Elm_Object_Itemelm_colorselector::palette_selected_item_get () const
 Get the selected item in colorselector palette. More...
 
Evas_Object * elm_colorselector_add (Evas_Object *parent)
 Add a new colorselector to the parent. More...
 

Detailed Description

colorselector_inheritance_tree.png
preview-00.png

A ColorSelector is a color selection widget. It allows application to set a series of colors.It also allows to load/save colors from/to config with a unique identifier, by default, the colors are loaded/saved from/to config using "default" identifier. The colors can be picked by user from the color set by clicking on individual color item on the palette or by selecting it from selector.

This widget inherits from the Layout one, so that all the functions acting on it also work for check objects.

This widget emits the following signals, besides the ones sent from Layout:

See Color selector example.

Function Documentation

void elm_colorselector::color_get ( int *  r_,
int *  g_,
int *  b_,
int *  a_ 
) const
inline

Get current color from colorselector.

Parameters
rr-value of color
gg-value of color
bb-value of color
aa-value of color
void elm_colorselector::color_set ( int  r_,
int  g_,
int  b_,
int  a_ 
) const
inline

Get current color from colorselector.

Parameters
rr-value of color
gg-value of color
bb-value of color
aa-value of color
Evas_Object* elm_colorselector_add ( Evas_Object *  parent)

Add a new colorselector to the parent.

Parameters
parentThe parent object
Returns
The new object or NULL if it cannot be created
Elm_Colorselector_Mode elm_colorselector::mode_get ( ) const
inline

Get Colorselector's mode.

Returns
mode The current mode of colorselector
Parameters
modeElm_Colorselector_Mode
void elm_colorselector::mode_set ( Elm_Colorselector_Mode  mode_) const
inline

Get Colorselector's mode.

Returns
mode The current mode of colorselector
Parameters
modeElm_Colorselector_Mode
Elm_Object_Item* elm_colorselector::palette_color_add ( int  r_,
int  g_,
int  b_,
int  a_ 
) const
inline

Add a new color item to palette.

Returns
A new color palette Item.
Parameters
rr-value of color
gg-value of color
bb-value of color
aa-value of color
const Eina_List* elm_colorselector::palette_items_get ( ) const
inline

Get list of palette items.

Returns
The list of color palette items.

Note That palette item list is internally managed by colorselector widget and it should not be freed/modified by application.

Since
1.9
std::string elm_colorselector::palette_name_get ( ) const
inline

Get current palette's name.

Returns
Name of palette

Returns the currently set palette name using which colors will be saved/loaded in to config.

Parameters
palette_nameName of palette
void elm_colorselector::palette_name_set ( std::string  palette_name_) const
inline

Get current palette's name.

Returns
Name of palette

Returns the currently set palette name using which colors will be saved/loaded in to config.

Parameters
palette_nameName of palette
Elm_Object_Item* elm_colorselector::palette_selected_item_get ( ) const
inline

Get the selected item in colorselector palette.

Returns
The selected item, or NULL if none is selected.
Since
1.9