summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_gfx_color.eo
blob: b457bba0392e0411e1c4a515aaa4fd64b27fac11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
mixin Efl.Gfx.Color
{
   [[Efl Gfx Color mixin class

     @since 1.22
   ]]
   data: null;
   methods {
      @property color @pure_virtual {
         [[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.
         ]]
         set {
         }
         get {
         }
         values {
            r: int;
            g: int;
            b: int;
            a: int;
         }
      }
      @property color_code {
          [[Hexadecimal color code of given Evas object (#RRGGBBAA).
          ]]
          set {
          }
          get {
          }
          values {
             colorcode: string; [[the hex color code.]]
          }
      }
   }
}