Functions |
Evas_Object * | elm_colorselector_add (Evas_Object *parent) |
| Adds a new colorselector to the parent.
|
void | elm_colorselector_color_set (Evas_Object *obj, int r, int g, int b, int a) |
| Sets a color to the colorselector.
|
void | elm_colorselector_color_get (const Evas_Object *obj, int *r, int *g, int *b, int *a) |
| Gets the current color from the colorselector.
|
void | elm_colorselector_mode_set (Evas_Object *obj, Elm_Colorselector_Mode mode) |
| Sets the Colorselector mode.
|
Elm_Colorselector_Mode | elm_colorselector_mode_get (const Evas_Object *obj) |
| Gets the Colorselector mode.
|
void | elm_colorselector_palette_item_color_get (const Elm_Object_Item *it, int *r, int *g, int *b, int *a) |
| Gets the Palette item's color.
|
void | elm_colorselector_palette_item_color_set (Elm_Object_Item *it, int r, int g, int b, int a) |
| Sets the palette item's color.
|
Elm_Object_Item * | elm_colorselector_palette_color_add (Evas_Object *obj, int r, int g, int b, int a) |
| Adds a new color item to the palette.
|
void | elm_colorselector_palette_clear (Evas_Object *obj) |
| Clears the palette items.
|
Eina_List * | elm_colorselector_palette_items_get (const Evas_Object *obj) |
| Gets the list of palette items.
|
void | elm_colorselector_palette_name_set (Evas_Object *obj, const char *palette_name) |
| Sets the current palette's name.
|
const char * | elm_colorselector_palette_name_get (const Evas_Object *obj) |
| Gets the current palette's name.
|
A ColorSelector is a color selection widget.
It allows an 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 a "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette or by selecting it from the 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 :
"changed"
- When the color value changes on the selector. event_info is NULL
.
"color,item,selected"
- When the user clicks on a color item. The event_info parameter of the callback is the selected color item.
"color,item,longpressed"
- When user long presses on a color item. The event_info parameter of the callback contains the selected color item.
Enumeration Type Documentation
Enumeration that defines the different modes supported by Colorselector.
- See also:
- elm_colorselector_mode_set()
-
elm_colorselector_mode_get()
- Enumerator:
ELM_COLORSELECTOR_PALETTE |
Only the color palette is displayed
|
ELM_COLORSELECTOR_COMPONENTS |
Only the color selector is displayed
|
ELM_COLORSELECTOR_BOTH |
Both the Palette and the selector is displayed, default
|
ELM_COLORSELECTOR_PICKER |
Only the color picker is displayed
|
ELM_COLORSELECTOR_PLANE |
Only the color plane is displayed
|
ELM_COLORSELECTOR_PALETTE_PLANE |
Both the palette and the plane is displayed
|
ELM_COLORSELECTOR_ALL |
All possible color selectors are displayed
|
Function Documentation
Adds a new colorselector to the parent.
- Since :
- 2.3
- Parameters:
-
[in] | parent | The parent object |
- Returns:
- The new object, otherwise
NULL
if it cannot be created
Gets the current color from the colorselector.
- Since :
- 2.3
- Parameters:
-
[in] | obj | The colorselector object |
[out] | r | An integer pointer for the r-value of color |
[out] | g | An integer pointer for the g-value of color |
[out] | b | An integer pointer for the b-value of color |
[out] | a | An integer pointer for the a-value of color |
Sets a color to the colorselector.
- Since :
- 2.3
- Parameters:
-
[in] | obj | The colorselector object |
[in] | r | The r-value of color |
[in] | g | The g-value of color |
[in] | b | The b-value of color |
[in] | a | The a-value of color |
Gets the Colorselector mode.
- Since :
- 2.3
- Parameters:
-
[in] | obj | The Colorselector object |
- Returns:
- mode The current mode of the colorselector
Sets the Colorselector mode.
- Since :
- 2.3
- Parameters:
-
[in] | obj | The colorselector object |
[in] | mode | The Elm_Colorselector_Mode |
Clears the palette items.
- Since :
- 2.3
- Parameters:
-
[in] | obj | The Colorselector object |
Adds a new color item to the palette.
- Since :
- 2.3
- Parameters:
-
[in] | obj | The Colorselector object |
[in] | r | The r-value of color |
[in] | g | The g-value of color |
[in] | b | The b-value of color |
[in] | a | The a-value of color |
- Returns:
- A new color palette Item
Gets the Palette item's color.
- Since :
- 2.3
- Parameters:
-
[in] | it | The color palette item |
[out] | r | An integer pointer for the r-value of color |
[out] | g | An integer pointer for the g-value of color |
[out] | b | An integer pointer for the b-value of color |
[out] | a | An integer pointer for the a-value of color |
Sets the palette item's color.
- Since :
- 2.3
- Parameters:
-
[in] | it | The color palette item |
[in] | r | The r-value of color |
[in] | g | The g-value of color |
[in] | b | The b-value of color |
[in] | a | The a-value of color |
Gets the list of palette items.
- Since :
- 2.3
- Parameters:
-
[in] | obj | The Colorselector object |
- Returns:
- The list of color items
Gets the current palette's name.
- Since :
- 2.3
This returns the currently set palette name using which colors are saved/loaded into the config.
- Parameters:
-
[in] | obj | The Colorselector object |
- Returns:
- The name of the palette
Sets the current palette's name.
- Since :
- 2.3
- Parameters:
-
[in] | obj | The Colorselector object |
[in] | palette_name | The name of the palette |