Tizen Native API
|
Functions | |
void | elm_colorselector_color_set (Elm_Colorselector *obj, int r, int g, int b, int a) |
Set color to colorselector. | |
void | elm_colorselector_color_get (const Elm_Colorselector *obj, int *r, int *g, int *b, int *a) |
Get current color from colorselector. | |
void | elm_colorselector_palette_name_set (Elm_Colorselector *obj, const char *palette_name) |
Set current palette's name. | |
const char * | elm_colorselector_palette_name_get (const Elm_Colorselector *obj) |
Get current palette's name. | |
void | elm_colorselector_mode_set (Elm_Colorselector *obj, Elm_Colorselector_Mode mode) |
Set Colorselector's mode. | |
Elm_Colorselector_Mode | elm_colorselector_mode_get (const Elm_Colorselector *obj) |
Get Colorselector's mode. | |
const Eina_List * | elm_colorselector_palette_items_get (const Elm_Colorselector *obj) |
Get list of palette items. | |
Elm_Object_Item * | elm_colorselector_palette_color_add (Elm_Colorselector *obj, int r, int g, int b, int a) |
Add a new color item to palette. | |
void | elm_colorselector_palette_clear (Elm_Colorselector *obj) |
Clear the palette items. | |
void | elm_colorselector_palette_item_color_get (const Elm_Object_Item *it, int *r, int *g, int *b, int *a) |
Get Palette item's color. | |
void | elm_colorselector_palette_item_color_set (Elm_Object_Item *it, int r, int g, int b, int a) |
Set palette item's color. | |
Evas_Object * | elm_colorselector_add (Evas_Object *parent) |
Add a new colorselector to the parent. |
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:
"changed"
- When the color value changes on selector event_info is NULL."color,item,selected"
- When user clicks on color item. The event_info parameter of the callback will be the selected color item."color,item,longpressed"
- When user long presses on color item. The event info parameter of the callback contains selected color item."focused"
- When the colorselector has received focus. (since 1.8)"unfocused"
- When the colorselector has lost focus. (since 1.8)"language,changed"
- the program's language changed (since 1.9)
Enumeration Type Documentation
Different modes supported by Colorselector
- Enumerator:
Function Documentation
Evas_Object* elm_colorselector_add | ( | Evas_Object * | parent | ) |
Add a new colorselector to the parent.
- Since :
- 2.3
- Parameters:
-
[in] parent The parent object
- Returns:
- The new object or NULL if it cannot be created
void elm_colorselector_color_get | ( | const Elm_Colorselector * | obj, |
int * | r, | ||
int * | g, | ||
int * | b, | ||
int * | a | ||
) |
Get current color from colorselector.
- Since :
- 2.3
- Parameters:
-
[in] obj The elm colorselector object [out] r r-value of color [out] g g-value of color [out] b b-value of color [out] a a-value of color
void elm_colorselector_color_set | ( | Elm_Colorselector * | obj, |
int | r, | ||
int | g, | ||
int | b, | ||
int | a | ||
) |
Set color to colorselector.
- Since :
- 2.3
- Parameters:
-
[in] obj The elm colorselector object [in] r r-value of color [in] g g-value of color [in] b b-value of color [in] a a-value of color
Elm_Colorselector_Mode elm_colorselector_mode_get | ( | const Elm_Colorselector * | obj | ) |
Get Colorselector's mode.
- Since :
- 2.3
- Returns:
- mode The current mode of colorselector
- Parameters:
-
[in] obj The elm colorselector object
void elm_colorselector_mode_set | ( | Elm_Colorselector * | obj, |
Elm_Colorselector_Mode | mode | ||
) |
Set Colorselector's mode.
- Since :
- 2.3
- Remarks:
- Colorselector supports three modes palette only, selector only and both.
- Parameters:
-
[in] obj The elm colorselector object [in] mode Elm_Colorselector_Mode
void elm_colorselector_palette_clear | ( | Elm_Colorselector * | obj | ) |
Clear the palette items.
- Since :
- 2.3
- Parameters:
-
[in] obj The elm colorselector object
Elm_Object_Item* elm_colorselector_palette_color_add | ( | Elm_Colorselector * | obj, |
int | r, | ||
int | g, | ||
int | b, | ||
int | a | ||
) |
Add a new color item to palette.
- Since :
- 2.3
- Returns:
- A new color palette Item.
- Parameters:
-
[in] obj The elm colorselector object [in] r r-value of color [in] g g-value of color [in] b b-value of color [in] a a-value of color
void elm_colorselector_palette_item_color_get | ( | const Elm_Object_Item * | it, |
int * | r, | ||
int * | g, | ||
int * | b, | ||
int * | a | ||
) |
Get Palette item's color.
- Since :
- 2.3
- Parameters:
-
[in] it The color palette item. [out] r integer pointer for r-value of color [out] g integer pointer for g-value of color [out] b integer pointer for b-value of color [out] a integer pointer for a-value of color
void elm_colorselector_palette_item_color_set | ( | Elm_Object_Item * | it, |
int | r, | ||
int | g, | ||
int | b, | ||
int | a | ||
) |
Set palette item's color.
- Since :
- 2.3
- Parameters:
-
[in] it The color palette item. [in] r r-value of color [in] g g-value of color [in] b b-value of color [in] a a-value of color
const Eina_List* elm_colorselector_palette_items_get | ( | const Elm_Colorselector * | obj | ) |
Get list of palette items.
- Since :
- 2.3
- Returns:
- The list of color palette items.
- Remarks:
- Note That palette item list is internally managed by colorselector widget and it should not be freed/modified by application.
- Since (EFL) :
- 1.9
- Parameters:
-
[in] obj The elm colorselector object
const char* elm_colorselector_palette_name_get | ( | const Elm_Colorselector * | obj | ) |
Get current palette's name.
- Since :
- 2.3
- Returns:
- Name of palette
- Remarks:
- Returns the currently set palette name using which colors will be saved/loaded in to config.
- Parameters:
-
[in] obj The elm colorselector object
void elm_colorselector_palette_name_set | ( | Elm_Colorselector * | obj, |
const char * | palette_name | ||
) |
Set current palette's name.
- Since :
- 2.3
- Remarks:
- When colorpalette name is set, colors will be loaded from and saved to config using the set name. If no name is set then colors will be loaded from or saved to "default" config.
- Parameters:
-
[in] obj The elm colorselector object [in] palette_name Name of palette