Tizen Native API
|
Functions | |
Eina_Bool | edje_color_class_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) |
Set Edje color class. | |
Eina_Bool | edje_color_class_get (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) |
Get Edje color class. | |
void | edje_color_class_del (const char *color_class) |
Delete edje color class. | |
Eina_List * | edje_color_class_list (void) |
Lists color classes. | |
void | edje_object_color_class_del (Evas_Object *obj, const char *color_class) |
Delete the object color class. | |
Eina_Bool | edje_object_color_class_set (Edje_Object *obj, 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 the object color class. | |
Eina_Bool | edje_object_color_class_get (const Edje_Object *obj, 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) |
Gets the object color class. |
Functions that deal with Color Classes.
Sometimes we want to change the color of two or more parts equally and that's when we use color classes.
If one or more parts are assigned with a color class, when we set color values to this class it will cause all these parts to have their colors multiplied by the values. Setting values to a color class at a process level will affect all parts with that color class, while at a object level will affect only the parts inside an specified object.
Function Documentation
void edje_color_class_del | ( | const char * | color_class | ) |
Delete edje color class.
- Since :
- 2.3
- Parameters:
-
[in] color_class
- Remarks:
- This function deletes any values at the process level for the specified color class.
- Deleting the color class will revert it to the values defined in the theme file.
Deleting the color class will emit the signal "color_class,del" to all the Edje objects in the running program.
Eina_Bool edje_color_class_get | ( | 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 | ||
) |
Get Edje color class.
- Since :
- 2.3
- Parameters:
-
[in] color_class [out] r Object Red value [out] g Object Green value [out] b Object Blue value [out] a Object Alpha value [out] r2 Outline Red value [out] g2 Outline Green value [out] b2 Outline Blue value [out] a2 Outline Alpha value [out] r3 Shadow Red value [out] g3 Shadow Green value [out] b3 Shadow Blue value [out] a3 Shadow Alpha value
- Returns:
- EINA_TRUE if found or EINA_FALSE if not found and all values are zeroed.
- Remarks:
- This function gets the color values for a process level color class. This value is the globally set and not per-object, that is, the value that would be used by objects if they did not override with edje_object_color_class_set().
- 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).
- See also:
- edje_color_class_set().
- Remarks:
- unlike Evas, Edje colors are not pre-multiplied. That is, half-transparent white is 255 255 255 128.
Eina_List* edje_color_class_list | ( | void | ) |
Lists color classes.
- Since :
- 2.3
- Returns:
- A list of color class names (strings). These strings and the list must be free()'d by the caller.
- Remarks:
- This function lists all color classes known about by the current process.
Eina_Bool edje_color_class_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 | ||
) |
Set Edje color class.
- Since :
- 2.3
- Parameters:
-
[in] color_class [in] r Object Red value [in] g Object Green value [in] b Object Blue value [in] a Object Alpha value [in] r2 Outline Red value [in] g2 Outline Green value [in] b2 Outline Blue value [in] a2 Outline Alpha value [in] r3 Shadow Red value [in] g3 Shadow Green value [in] b3 Shadow Blue value [in] a3 Shadow Alpha value
- Remarks:
- This function sets the color values for a process level color class. This will cause all edje parts in the current process that have the specified color class to have their colors multiplied by these values. (Object level color classes set by edje_object_color_class_set() will override the values set by this function).
- 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 objects.
- See also:
- edje_color_class_set().
- Remarks:
- unlike Evas, Edje colors are not pre-multiplied. That is, half-transparent white is 255 255 255 128.
- Returns:
- Eina_Bool, EINA_TRUE on success and EINA_FALSE on failure.
void edje_object_color_class_del | ( | Evas_Object * | obj, |
const char * | color_class | ||
) |
Delete the object color class.
- Since :
- 2.3
- Parameters:
-
[in] obj The edje object's reference. [in] color_class The color class to be deleted.
- Remarks:
- This function deletes any values at the object level for the specified object and color class.
- Deleting the color class will revert it to the values defined by edje_color_class_set() or the color class defined in the theme file.
Deleting the color class will emit the signal "color_class,del" for the given Edje object.
Eina_Bool edje_object_color_class_get | ( | const Edje_Object * | obj, |
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 | ||
) |
Gets the object color class.
- Since :
- 2.3
- Returns:
- EINA_TRUE if found or EINA_FALSE if not found and all values are zeroed.
- Remarks:
- This function gets the color values for an object level color class. If no explicit object color is set, then global values will be used.
- 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).
- unlike Evas, Edje colors are not pre-multiplied. That is, half-transparent white is 255 255 255 128.
- Parameters:
-
[in] obj The edje object [in] color_class No description supplied. [out] r Object Red value [out] g Object Green value [out] b Object Blue value [out] a Object Alpha value [out] r2 Outline Red value [out] g2 Outline Green value [out] b2 Outline Blue value [out] a2 Outline Alpha value [out] r3 Shadow Red value [out] g3 Shadow Green value [out] b3 Shadow Blue value [out] a3 Shadow Alpha value
Eina_Bool edje_object_color_class_set | ( | Edje_Object * | obj, |
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 the object color class.
- Since :
- 2.3
- Remarks:
- This function sets the color values for an object level color class. This will cause all edje parts in the specified object that have the specified color class to have their colors multiplied by these values.
- 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.
- unlike Evas, Edje colors are not pre-multiplied. That is, half-transparent white is 255 255 255 128.
- Parameters:
-
[in] obj The edje object [in] color_class No description supplied. [in] r Object Red value [in] g Object Green value [in] b Object Blue value [in] a Object Alpha value [in] r2 Outline Red value [in] g2 Outline Green value [in] b2 Outline Blue value [in] a2 Outline Alpha value [in] r3 Shadow Red value [in] g3 Shadow Green value [in] b3 Shadow Blue value [in] a3 Shadow Alpha value