-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNewInstanceGL.bas
155 lines (134 loc) · 4.24 KB
/
NewInstanceGL.bas
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
B4J=true
Group=Default Group
ModulesStructureVersion=1
Type=StaticCode
Version=9.8
@EndOfDesignText@
'Static code module
Sub Process_Globals
End Sub
Public Sub Arc(CenterX As Double, CenterY As Double, RadiusX As Double, RadiusY As Double, StartAngle As Double, Length As Double) As GLArc
Dim Wrapper As GLArc
Wrapper.Initialize
Wrapper.Create2(CenterX, CenterY, RadiusX, RadiusY, StartAngle, Length)
Return Wrapper
End Sub
Public Sub Circle(CenterX As Double, CenterY As Double, Radius As Double) As GLCircle
Dim Wrapper As GLCircle
Wrapper.Initialize
Wrapper.Create3(CenterX, CenterY, Radius)
Return Wrapper
End Sub
Public Sub CubicCurve(StartX As Double, StartY As Double, ControlX1 As Double, ControlY1 As Double, ControlX2 As Double, ControlY2 As Double, EndX As Double, EndY As Double) As GLCubicCurve
Dim Wrapper As GLCubicCurve
Wrapper.Initialize
Wrapper.Create2(StartX, StartY, ControlX1, ControlY1, ControlX2, ControlY2, EndX, EndY)
Return Wrapper
End Sub
Public Sub Ellipse(RadiusX As Double, RadiusY As Double) As GLEllipse
Dim Wrapper As GLEllipse
Wrapper.Initialize
Wrapper.Create2(RadiusX,RadiusY)
Return Wrapper
End Sub
Public Sub Line(StartX As Double, StartY As Double, EndX As Double, EndY As Double) As GLLine
Dim Wrapper As GLLine
Wrapper.Initialize
Wrapper.Create2(StartX, StartY, EndX, EndY)
Return Wrapper
End Sub
Public Sub LinearGradient(StartX As Double, StartY As Double, EndX As Double, EndY As Double, Proportional As Boolean, CycleMethod As String, Stops As List) As GLLinearGradient
Dim Wrapper As GLLinearGradient
Wrapper.Initialize
Wrapper.Create(StartX, StartY, EndX, EndY, Proportional, CycleMethod, Stops)
Return Wrapper
End Sub
Public Sub Path(Elements As List) As GLPath
Dim Wrapper As GLPath
Wrapper.Initialize
Wrapper.Create2(Elements)
Return Wrapper
End Sub
Public Sub Polygon(Points() As Double) As GLPolygon
Dim Wrapper As GLPolygon
Wrapper.Initialize
Wrapper.Create2(Points)
Return Wrapper
End Sub
Public Sub QuadCurve(StartX As Double, StartY As Double, ControlX As Double, ControlY As Double, EndX As Double, EndY As Double) As GLQuadCurve
Dim Wrapper As GLQuadCurve
Wrapper.Initialize
Wrapper.Create2(StartX, StartY, ControlX, ControlY, EndX, EndY)
Return Wrapper
End Sub
Public Sub RadialGradient(FocusAngle As Double, FocusDistance As Double, CenterX As Double, CenterY As Double, Radius As Double, Proportional As Boolean, CycleMethod As String, Stops As List) As GLRadialGradient
Dim Wrapper As GLRadialGradient
Wrapper.Initialize
Wrapper.Create(FocusAngle, FocusDistance, CenterX, CenterY, Radius, Proportional, CycleMethod, Stops)
Return Wrapper
End Sub
Public Sub Rectangle(X As Double, Y As Double, Width As Double, Height As Double) As GLRectangle
Dim Wrapper As GLRectangle
Wrapper.Initialize
Wrapper.Create3(X, Y, Width, Height)
Return Wrapper
End Sub
Public Sub Stop(Offset As Double, Color As Paint) As GLStop
Dim Wrapper As GLStop
Wrapper.Initialize
Wrapper.Create(Offset, Color)
Return Wrapper
End Sub
Public Sub SVGPath As GLSVGPath
Dim Wrapper As GLSVGPath
Wrapper.Initialize
Return Wrapper
End Sub
Public Sub Text(X As Double, Y As Double, tText As String) As GLText
Dim Wrapper As GLText
Wrapper.Initialize
Wrapper.Create2(X ,Y , tText)
Return Wrapper
End Sub
Public Sub ArcTo As GLArcTo
Dim Wrapper As GLArcTo
Wrapper.Initialize
Wrapper.Create
Return Wrapper
End Sub
Public Sub CubicCurveTo As GLCubicCurveTo
Dim Wrapper As GLCubicCurveTo
Wrapper.Initialize
Wrapper.Create
Return Wrapper
End Sub
Public Sub HLineTo(X As Double) As GLHLineTo
Dim Wrapper As GLHLineTo
Wrapper.Initialize
Wrapper.Create2(X)
Return Wrapper
End Sub
Public Sub LineTo(X As Double, Y As Double) As GLLineTo
Dim Wrapper As GLLineTo
Wrapper.Initialize
Wrapper.Create2(X,Y)
Return Wrapper
End Sub
Public Sub MoveTo(X As Double, Y As Double) As GLMoveTo
Dim Wrapper As GLMoveTo
Wrapper.Initialize
Wrapper.Create2(X,Y)
Return Wrapper
End Sub
Public Sub QuadCurveTo(ControlX As Double, ControlY As Double, X As Double, Y As Double) As GLQuadCurveTo
Dim Wrapper As GLQuadCurveTo
Wrapper.Initialize
Wrapper.Create2(ControlX, ControlY, X, Y)
Return Wrapper
End Sub
Public Sub VLineTo(Y As Double) As GLVLineTo
Dim Wrapper As GLVLineTo
Wrapper.Initialize
Wrapper.Create2(Y)
Return Wrapper
End Sub