Tizen Native API
|
Configuration for Elementary colors.
Functions | |
Eina_List * | elm_config_color_classes_list_get (void) |
Gets Elementary's list of supported color classes. | |
void | elm_config_color_classes_list_free (Eina_List *list) |
Frees Elementary's list of supported color classes. | |
const Eina_List * | elm_config_color_overlay_list_get (void) |
Gets Elementary's list of color overlays, set with elm_config_color_overlay_set(). | |
void | elm_config_color_overlay_set (const char *color_class, int r, int g, int b, int a, int r2, int g2, int b2, int a2, int r3, int g3, int b3, int a3) |
Sets a color overlay for a given Elementary color class. | |
void | elm_config_color_overlay_unset (const char *color_class) |
Unsets a color overlay for a given Elementary color class. | |
void | elm_config_color_overlay_apply (void) |
Applies the changes made with elm_config_color_overlay_set() and elm_config_color_overlay_unset() on the current Elementary window. |
Function Documentation
void elm_config_color_classes_list_free | ( | Eina_List * | list | ) |
Frees Elementary's list of supported color classes.
- Since (EFL) :
- 1.10
- Since :
- 2.3.1
- Parameters:
-
[in] list The color classes list
- See also:
- elm_config_color_classes_list_get().
Eina_List* elm_config_color_classes_list_get | ( | void | ) |
Gets Elementary's list of supported color classes.
- Since (EFL) :
- 1.10
- Since :
- 2.3.1
- Remarks:
- Release the list with elm_color_classes_list_free().
- Returns:
- The color classes list with
Elm_Color_Class
blobs as data
void elm_config_color_overlay_apply | ( | void | ) |
Applies the changes made with elm_config_color_overlay_set() and elm_config_color_overlay_unset() on the current Elementary window.
This applies to all color overlays set to all objects in the UI.
- Since (EFL) :
- 1.10
- Since :
- 2.3.1
const Eina_List* elm_config_color_overlay_list_get | ( | void | ) |
Gets Elementary's list of color overlays, set with elm_config_color_overlay_set().
- Since (EFL) :
- 1.10
- Since :
- 2.3.1
- Remarks:
- For each color class, one can set a color overlay for it, overriding the default color properties for that class coming from the theme in use. There is no need to free this list.
- Returns:
- The color overlays list with
Elm_Color_Overlay
blobs as data
void elm_config_color_overlay_set | ( | const char * | color_class, |
int | r, | ||
int | g, | ||
int | b, | ||
int | a, | ||
int | r2, | ||
int | g2, | ||
int | b2, | ||
int | a2, | ||
int | r3, | ||
int | g3, | ||
int | b3, | ||
int | a3 | ||
) |
Sets a color overlay for a given Elementary color class.
- Since (EFL) :
- 1.10
- Since :
- 2.3.1
- Remarks:
- The first color is the object, the second is the text outline, and the third is the text shadow. (Note that the second two only apply to text parts).
- Setting color emits a signal "color_class,set" with source being the given color class in all edje objects.
- Unlike Evas, Edje colors are not pre-multiplied. That is, half-transparent white is 255 255 255 128.
- Parameters:
-
[in] color_class The color class name [in] r The object red value [in] g The object green value [in] b The object blue value [in] a The object alpha value [in] r2 The outline red value [in] g2 The outline green value [in] b2 The outline blue value [in] a2 The outline alpha value [in] r3 The shadow red value [in] g3 The shadow green value [in] b3 The shadow blue value [in] a3 The shadow alpha value
void elm_config_color_overlay_unset | ( | const char * | color_class | ) |
Unsets a color overlay for a given Elementary color class.
- Since (EFL) :
- 1.10
- Since :
- 2.3.1
- Remarks:
- This brings back color elements belonging to the color class
color_class
back to their default color settings.
- Parameters:
-
[in] color_class The color class name