forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckerboard_generator.gen.go
173 lines (140 loc) · 5.28 KB
/
checkerboard_generator.gen.go
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
// AUTO-GENERATED CODE, DO NOT MODIFY
package coreimage
import (
"github.com/progrium/macdriver/macos/coregraphics"
"github.com/progrium/macdriver/objc"
)
// The properties you use to configure a checkerboard generator filter. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator?language=objc
type PCheckerboardGenerator interface {
// optional
SetWidth(value float64)
HasSetWidth() bool
// optional
Width() float64
HasWidth() bool
// optional
SetSharpness(value float64)
HasSetSharpness() bool
// optional
Sharpness() float64
HasSharpness() bool
// optional
SetColor0(value Color)
HasSetColor0() bool
// optional
Color0() IColor
HasColor0() bool
// optional
SetColor1(value Color)
HasSetColor1() bool
// optional
Color1() IColor
HasColor1() bool
// optional
SetCenter(value coregraphics.Point)
HasSetCenter() bool
// optional
Center() coregraphics.Point
HasCenter() bool
}
// A concrete type wrapper for the [PCheckerboardGenerator] protocol.
type CheckerboardGeneratorWrapper struct {
objc.Object
}
func (c_ CheckerboardGeneratorWrapper) HasSetWidth() bool {
return c_.RespondsToSelector(objc.Sel("setWidth:"))
}
// The width of the squares in the pattern. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228109-width?language=objc
func (c_ CheckerboardGeneratorWrapper) SetWidth(value float64) {
objc.Call[objc.Void](c_, objc.Sel("setWidth:"), value)
}
func (c_ CheckerboardGeneratorWrapper) HasWidth() bool {
return c_.RespondsToSelector(objc.Sel("width"))
}
// The width of the squares in the pattern. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228109-width?language=objc
func (c_ CheckerboardGeneratorWrapper) Width() float64 {
rv := objc.Call[float64](c_, objc.Sel("width"))
return rv
}
func (c_ CheckerboardGeneratorWrapper) HasSetSharpness() bool {
return c_.RespondsToSelector(objc.Sel("setSharpness:"))
}
// The sharpness of the edges in the pattern. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228108-sharpness?language=objc
func (c_ CheckerboardGeneratorWrapper) SetSharpness(value float64) {
objc.Call[objc.Void](c_, objc.Sel("setSharpness:"), value)
}
func (c_ CheckerboardGeneratorWrapper) HasSharpness() bool {
return c_.RespondsToSelector(objc.Sel("sharpness"))
}
// The sharpness of the edges in the pattern. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228108-sharpness?language=objc
func (c_ CheckerboardGeneratorWrapper) Sharpness() float64 {
rv := objc.Call[float64](c_, objc.Sel("sharpness"))
return rv
}
func (c_ CheckerboardGeneratorWrapper) HasSetColor0() bool {
return c_.RespondsToSelector(objc.Sel("setColor0:"))
}
// A color to use for the first set of squares. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228106-color0?language=objc
func (c_ CheckerboardGeneratorWrapper) SetColor0(value IColor) {
objc.Call[objc.Void](c_, objc.Sel("setColor0:"), objc.Ptr(value))
}
func (c_ CheckerboardGeneratorWrapper) HasColor0() bool {
return c_.RespondsToSelector(objc.Sel("color0"))
}
// A color to use for the first set of squares. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228106-color0?language=objc
func (c_ CheckerboardGeneratorWrapper) Color0() Color {
rv := objc.Call[Color](c_, objc.Sel("color0"))
return rv
}
func (c_ CheckerboardGeneratorWrapper) HasSetColor1() bool {
return c_.RespondsToSelector(objc.Sel("setColor1:"))
}
// A color to use for the second set of squares. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228107-color1?language=objc
func (c_ CheckerboardGeneratorWrapper) SetColor1(value IColor) {
objc.Call[objc.Void](c_, objc.Sel("setColor1:"), objc.Ptr(value))
}
func (c_ CheckerboardGeneratorWrapper) HasColor1() bool {
return c_.RespondsToSelector(objc.Sel("color1"))
}
// A color to use for the second set of squares. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228107-color1?language=objc
func (c_ CheckerboardGeneratorWrapper) Color1() Color {
rv := objc.Call[Color](c_, objc.Sel("color1"))
return rv
}
func (c_ CheckerboardGeneratorWrapper) HasSetCenter() bool {
return c_.RespondsToSelector(objc.Sel("setCenter:"))
}
// The center of the effect as x and y coordinates. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228105-center?language=objc
func (c_ CheckerboardGeneratorWrapper) SetCenter(value coregraphics.Point) {
objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value)
}
func (c_ CheckerboardGeneratorWrapper) HasCenter() bool {
return c_.RespondsToSelector(objc.Sel("center"))
}
// The center of the effect as x and y coordinates. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228105-center?language=objc
func (c_ CheckerboardGeneratorWrapper) Center() coregraphics.Point {
rv := objc.Call[coregraphics.Point](c_, objc.Sel("center"))
return rv
}