summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_gfx_color.eo
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/efl/interfaces/efl_gfx_color.eo')
-rw-r--r--src/lib/efl/interfaces/efl_gfx_color.eo46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/lib/efl/interfaces/efl_gfx_color.eo b/src/lib/efl/interfaces/efl_gfx_color.eo
new file mode 100644
index 0000000..d6e06f2
--- /dev/null
+++ b/src/lib/efl/interfaces/efl_gfx_color.eo
@@ -0,0 +1,46 @@
1interface Efl.Gfx.Color
2{
3 [[Efl Gfx Color interface class]]
4 methods {
5 @property color @pure_virtual {
6 set {
7 [[Sets the general/main color of the given Evas object to the given
8 one.
9
10 See also @.color.get (for an example)
11
12 These color values are expected to be premultiplied by alpha.
13 ]]
14 }
15 get {
16 [[Retrieves the general/main color of the given Evas object.
17
18 Retrieves the main color's RGB component (and alpha channel)
19 values, which range from 0 to 255. For the alpha channel,
20 which defines the object's transparency level, 0 means totally
21 transparent, while 255 means opaque. These color values are
22 premultiplied by the alpha value.
23
24 Usually youll use this attribute for text and rectangle objects,
25 where the main color is their unique one. If set for objects
26 which themselves have colors, like the images one, those colors
27 get modulated by this one.
28
29 All newly created Evas rectangles get the default color
30 values of 255 255 255 255 (opaque white).
31
32 Use null pointers on the components you're not interested
33 in: they'll be ignored by the function.
34
35 See the full \@ref Example_Evas_Object_Manipulation "example".
36 ]]
37 }
38 values {
39 r: int;
40 g: int;
41 b: int;
42 a: int;
43 }
44 }
45 }
46}