summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_gfx_shape.eo
blob: e66b87061542d83812eb9ad00de5bc4afcaee5f5 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
import efl_gfx_types;

mixin Efl.Gfx.Shape (Efl.Gfx.Path)
{
   [[EFL graphics shape object interface]]
   methods {
      @property stroke_scale {
         [[The stroke scale to be used for stroking the path. Will be used along
           with stroke width property.

           @since 1.14
         ]]
         set {
         }
         get {
         }
         values {
            s: double; [[Stroke scale value]]
         }
      }
      @property stroke_color {
         [[The color to be used for stroking the path.

           @since 1.14
         ]]
         set {
         }
         get {
         }
         values {
            r: int; [[The red component of the given color.]]
            g: int; [[The green component of the given color.]]
            b: int; [[The blue component of the given color.]]
            a: int; [[The alpha component of the given color.]]
         }
      }
      @property stroke_width {
         [[The stroke width to be used for stroking the path.

           @since 1.14
         ]]
         set {
         }
         get {
         }
         values {
            w: double; [[Stroke width to be used]]
         }
      }
      @property stroke_location {
         [[Not implemented]]
         set {
         }
         get {
         }
         values {
            centered: double; [[Centered stroke location]]
         }
      }
      @property stroke_dash {
         [[Not implemented]]
         set {
         }
         get {
         }
         values {
            dash: ptr(const(Efl.Gfx.Dash)); [[Stroke dash]]
            length: uint; [[Stroke dash length]]
         }
      }
      @property stroke_cap {
         [[The cap style to be used for stroking the path.
           The cap will be used for capping the end point of a
           open subpath.

           See also \@ref Efl_Gfx_Cap.

           @since 1.14
         ]]
         set {
         }
         get {
         }
         values {
            c: Efl.Gfx.Cap; [[Cap style to use, default is EFL_GFX_CAP_BUTT]]
         }
      }
      @property stroke_join {
         [[The join style to be used for stroking the path.
           The join style will be used for joining the two line segment
           while stroking the path.

           See also \@ref Efl_Gfx_Join.

           @since 1.14
         ]]
         set {
         }
         get {
         }
         values {
            j: Efl.Gfx.Join; [[Join style to use, default is EFL_GFX_JOIN_MITER]]
         }
      }
      @property fill_rule {
         [[The fill rule of the given shape object.
           $EFL_GFX_FILL_RULE_WINDING, or $EFL_GFX_FILL_RULE_ODD_EVEN.

           @since 1.14
         ]]
         set {
         }
         get {
         }
         values {
            fill_rule: Efl.Gfx.Fill.Rule; [[The current fill rule of the shape object.
                                           One of $EFL_GFX_FILL_RULE_WINDING, $EFL_GFX_FILL_RULE_ODD_EVEN]]
         }
      }
      interpolate {
        [[Creates intermediary shape part-way between two shapes

          Sets the data properties of $obj as the linear interpolation
          of the $from and $to objects by $pos_map.  In addition to
          interpolating the path data, the two shapes' dash length, fill
          color, and stroke style are also interpolated.

          See also @Efl.Gfx.Path.interpolate.
        ]]
        return: bool; [[$true on success, $false otherwise]]
        params {
          @in from: const(Efl.Object); [[Source shape]]
          @in to: const(Efl.Object); [[Destination shape]]
          @in pos_map: double; [[Position map in range 0.0 to 1.0]]
        }
      }
   }
   implements {
      Efl.Gfx.Path.copy_from;
   }
}