Efl.Ui.Widget.color

Description

The general/main color of the given Evas object.

Represents the main color's RGB component (and alpha channel) values, which range from 0 to 255. For the alpha channel, which defines the object's transparency level, 0 means totally transparent, while 255 means opaque. These color values are premultiplied by the alpha value.

Usually you'll use this attribute for text and rectangle objects, where the main color is the only color. If set for objects which themselves have colors, like the images one, those colors get modulated by this one.

All newly created Evas rectangles get the default color values of 255 255 255 255 (opaque white).

When reading this property, use NULL pointers on the components you're not interested in and they'll be ignored by the function.

Since 1.22

Values

  • r - No description supplied.
  • g - No description supplied.
  • b - No description supplied.
  • a - No description supplied.

Setter

This will set the color on every object in the sub-tree including those that are not Efl.Ui.Widget (like simple Efl.Canvas.Object objects that are added via Efl.Canvas.Group.group_member_add).

Since 1.22

Overridden from Efl.Gfx.Color.color (set).

Signature

@property color @pure_virtual {
    get {}
    set {}
    values {
        r: int;
        g: int;
        b: int;
        a: int;
    }
}

C signature

void efl_gfx_color_get(const Eo *obj, int *r, int *g, int *b, int *a);
void efl_gfx_color_set(Eo *obj, int r, int g, int b, int a);

Implemented by