Description

Keys

  • color_class - The name of color class
  • layer - The layer to set the color

Values

  • r - The intensity of the red color
  • g - The intensity of the green color
  • b - The intensity of the blue color
  • a - The alpha value

Getter

Get the color of color class.

This function gets the color values for a 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).

These color values are expected to be premultiplied by @p a.

Setter

Set the color of color class.

This function sets the color values for a 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.

These color values are expected to be premultiplied by @p a.

Overridden from Efl.Gfx.Color_Class.color_class (get, set).

Signature

@property color_class @pure_virtual {
    get {
        keys {
            color_class: free(string, free);
            layer: Efl.Gfx.Color_Class.Layer @optional;
        }
        values {
            r: int;
            g: int;
            b: int;
            a: int;
        }
        return: bool;
    }
    set {
        keys {
            color_class: free(string, free);
            layer: Efl.Gfx.Color_Class.Layer @optional;
        }
        values {
            r: int;
            g: int;
            b: int;
            a: int;
        }
        return: bool;
    }
}

C signature

Eina_Bool efl_gfx_color_class_get(const Eo *obj, const char *color_class, Efl_Gfx_Color_Class_Layer layer, int *r, int *g, int *b, int *a);
Eina_Bool efl_gfx_color_class_set(Eo *obj, const char *color_class, Efl_Gfx_Color_Class_Layer layer, int r, int g, int b, int a);

Implemented by