forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgaussian_gradient_protocol.gen.go
145 lines (117 loc) · 4.25 KB
/
gaussian_gradient_protocol.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
// Code generated by DarwinKit. DO NOT EDIT.
package coreimage
import (
"github.com/progrium/macdriver/macos/coregraphics"
"github.com/progrium/macdriver/objc"
)
// The properties you use to configure a Gaussian gradient filter. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient?language=objc
type PGaussianGradient interface {
// optional
SetCenter(value coregraphics.Point)
HasSetCenter() bool
// optional
Center() coregraphics.Point
HasCenter() bool
// optional
SetColor0(value Color)
HasSetColor0() bool
// optional
Color0() Color
HasColor0() bool
// optional
SetRadius(value float64)
HasSetRadius() bool
// optional
Radius() float64
HasRadius() bool
// optional
SetColor1(value Color)
HasSetColor1() bool
// optional
Color1() Color
HasColor1() bool
}
// ensure impl type implements protocol interface
var _ PGaussianGradient = (*GaussianGradientObject)(nil)
// A concrete type for the [PGaussianGradient] protocol.
type GaussianGradientObject struct {
objc.Object
}
func (g_ GaussianGradientObject) HasSetCenter() bool {
return g_.RespondsToSelector(objc.Sel("setCenter:"))
}
// The center of the effect as x and y coordinates. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228467-center?language=objc
func (g_ GaussianGradientObject) SetCenter(value coregraphics.Point) {
objc.Call[objc.Void](g_, objc.Sel("setCenter:"), value)
}
func (g_ GaussianGradientObject) HasCenter() bool {
return g_.RespondsToSelector(objc.Sel("center"))
}
// The center of the effect as x and y coordinates. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228467-center?language=objc
func (g_ GaussianGradientObject) Center() coregraphics.Point {
rv := objc.Call[coregraphics.Point](g_, objc.Sel("center"))
return rv
}
func (g_ GaussianGradientObject) HasSetColor0() bool {
return g_.RespondsToSelector(objc.Sel("setColor0:"))
}
// The first color to use in the gradient. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228468-color0?language=objc
func (g_ GaussianGradientObject) SetColor0(value Color) {
objc.Call[objc.Void](g_, objc.Sel("setColor0:"), objc.Ptr(value))
}
func (g_ GaussianGradientObject) HasColor0() bool {
return g_.RespondsToSelector(objc.Sel("color0"))
}
// The first color to use in the gradient. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228468-color0?language=objc
func (g_ GaussianGradientObject) Color0() Color {
rv := objc.Call[Color](g_, objc.Sel("color0"))
return rv
}
func (g_ GaussianGradientObject) HasSetRadius() bool {
return g_.RespondsToSelector(objc.Sel("setRadius:"))
}
// The radius of the Gaussian distribution. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228470-radius?language=objc
func (g_ GaussianGradientObject) SetRadius(value float64) {
objc.Call[objc.Void](g_, objc.Sel("setRadius:"), value)
}
func (g_ GaussianGradientObject) HasRadius() bool {
return g_.RespondsToSelector(objc.Sel("radius"))
}
// The radius of the Gaussian distribution. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228470-radius?language=objc
func (g_ GaussianGradientObject) Radius() float64 {
rv := objc.Call[float64](g_, objc.Sel("radius"))
return rv
}
func (g_ GaussianGradientObject) HasSetColor1() bool {
return g_.RespondsToSelector(objc.Sel("setColor1:"))
}
// The second color to use in the gradient. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228469-color1?language=objc
func (g_ GaussianGradientObject) SetColor1(value Color) {
objc.Call[objc.Void](g_, objc.Sel("setColor1:"), objc.Ptr(value))
}
func (g_ GaussianGradientObject) HasColor1() bool {
return g_.RespondsToSelector(objc.Sel("color1"))
}
// The second color to use in the gradient. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228469-color1?language=objc
func (g_ GaussianGradientObject) Color1() Color {
rv := objc.Call[Color](g_, objc.Sel("color1"))
return rv
}