efl

Форк
0
/
ector_renderer.eo 
108 строк · 3.0 Кб
1
import eina_types;
2

3
abstract @beta Ector.Renderer extends Efl.Object
4
{
5
   [[Ector renderer abstract interface]]
6

7
   c_prefix: ector_renderer;
8
   methods {
9
      @property surface {
10
         [[Surface associated with this renderer]]
11
         set {
12
            [[Do not use.]]
13
         }
14
         get {
15
            [[Gets the surface associated with this renderer. Can not be set.]]
16
         }
17
         values {
18
            s: Ector.Surface; [[Associated surface]]
19
         }
20
      }
21
      @property transformation {
22
         [[Transformation property]]
23
         set {
24
         }
25
         get {
26
         }
27
         values {
28
            m: ptr(const(Eina.Matrix3)); [[Transformation matrix]]
29
         }
30
      }
31
      @property origin {
32
         [[Renderer origin]]
33
         set {
34
         }
35
         get {
36
         }
37
         values {
38
            x: double; [[X coordinate]]
39
            y: double; [[Y coordinate]]
40
         }
41
      }
42
      @property visibility {
43
         [[The given Ector renderer can be visible or invisible.]]
44
         set {
45
         }
46
         get {
47
         }
48
         values {
49
            v: bool; [[$true to make the object visible, $false otherwise]]
50
         }
51
      }
52
      @property color {
53
         [[Retrieves the general/main color of the given Ector renderer.
54

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

61
           Use null pointers on the components you're not interested in,
62
           they'll be ignored by the function.
63
         ]]
64
         set {
65
         }
66
         get {
67
         }
68
         values {
69
            r: int; [[The red component of the given color.]]
70
            g: int; [[The green component of the given color.]]
71
            b: int; [[The blue component of the given color.]]
72
            a: int; [[The alpha component of the given color.]]
73
         }
74
      }
75
      @property crc {
76
         [[Cyclic redundancy check]]
77
         get {
78
            return: uint; [[CRC value]]
79
         }
80
      }
81
      @property comp_method {
82
         [[Set Composite Buffer to this Renderer]]
83
         set {
84
         }
85
         values {
86
            comp: Ector.Buffer; [[Composite Buffer]]
87
            method: Efl.Gfx.Vg_Composite_Method; [[Composite method]]
88
         }
89
      }
90
      draw @pure_virtual {
91
         [[Actual draw operation]]
92
         return: bool; [[$true on success, $false otherwise]]
93
         params {
94
            @in op: Efl.Gfx.Render_Op; [[Renderer operation]]
95
            @in clips: array<Eina.Rect>; [[Array of @Eina.Rect clip]]
96
            @in mul_col: uint; [[Premultiplied color]]
97
         }
98
      }
99
      prepare @pure_virtual {
100
         [[Prepare for rendering]]
101
         return: bool; [[$true on success, $false otherwise]]
102
      }
103
   }
104
   implements {
105
      Efl.Object.destructor;
106
      Efl.Object.finalize;
107
   }
108
}
109

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.