forked from enlightenment/efl
65 lines
2.0 KiB
Plaintext
65 lines
2.0 KiB
Plaintext
import efl_gfx_types;
|
|
|
|
mixin Efl.Gfx.Color
|
|
{
|
|
[[Efl Gfx Color mixin class]]
|
|
data: null;
|
|
methods {
|
|
@property color @pure_virtual {
|
|
set {
|
|
[[Sets the general/main color of the given Evas object to the given
|
|
one.
|
|
|
|
See also @.color.get (for an example)
|
|
|
|
These color values are expected to be premultiplied by alpha.
|
|
]]
|
|
}
|
|
get {
|
|
[[Retrieves the general/main color of the given Evas object.
|
|
|
|
Retrieves 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 youll use this attribute for text and rectangle objects,
|
|
where the main color is their unique one. 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).
|
|
|
|
Use null pointers on the components you're not interested
|
|
in: they'll be ignored by the function.
|
|
|
|
See the full \@ref Example_Evas_Object_Manipulation "example".
|
|
]]
|
|
}
|
|
values {
|
|
r: int;
|
|
g: int;
|
|
b: int;
|
|
a: int;
|
|
}
|
|
}
|
|
@property color_code {
|
|
set {
|
|
[[Set the color of given Evas object to the given hex color code(#RRGGBBAA).
|
|
e.g. efl_gfx_color_code_set(obj, "#FFCCAACC");
|
|
]]
|
|
}
|
|
get {
|
|
[[Get hex color code of given Evas object.
|
|
This returns a short lived hex color code string.
|
|
]]
|
|
}
|
|
values {
|
|
colorcode: string; [[the hex color code.]]
|
|
}
|
|
}
|
|
}
|
|
}
|