forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrystallize_protocol.gen.go
114 lines (92 loc) · 3.27 KB
/
crystallize_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
// 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 crystalize filter. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicrystallize?language=objc
type PCrystallize interface {
// optional
SetCenter(value coregraphics.Point)
HasSetCenter() bool
// optional
Center() coregraphics.Point
HasCenter() bool
// optional
SetInputImage(value Image)
HasSetInputImage() bool
// optional
InputImage() Image
HasInputImage() bool
// optional
SetRadius(value float64)
HasSetRadius() bool
// optional
Radius() float64
HasRadius() bool
}
// ensure impl type implements protocol interface
var _ PCrystallize = (*CrystallizeObject)(nil)
// A concrete type for the [PCrystallize] protocol.
type CrystallizeObject struct {
objc.Object
}
func (c_ CrystallizeObject) 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/cicrystallize/3228200-center?language=objc
func (c_ CrystallizeObject) SetCenter(value coregraphics.Point) {
objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value)
}
func (c_ CrystallizeObject) 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/cicrystallize/3228200-center?language=objc
func (c_ CrystallizeObject) Center() coregraphics.Point {
rv := objc.Call[coregraphics.Point](c_, objc.Sel("center"))
return rv
}
func (c_ CrystallizeObject) HasSetInputImage() bool {
return c_.RespondsToSelector(objc.Sel("setInputImage:"))
}
// The image to use as an input image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicrystallize/3228201-inputimage?language=objc
func (c_ CrystallizeObject) SetInputImage(value Image) {
objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value))
}
func (c_ CrystallizeObject) HasInputImage() bool {
return c_.RespondsToSelector(objc.Sel("inputImage"))
}
// The image to use as an input image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicrystallize/3228201-inputimage?language=objc
func (c_ CrystallizeObject) InputImage() Image {
rv := objc.Call[Image](c_, objc.Sel("inputImage"))
return rv
}
func (c_ CrystallizeObject) HasSetRadius() bool {
return c_.RespondsToSelector(objc.Sel("setRadius:"))
}
// The radius, in pixels, of the effect. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicrystallize/3228202-radius?language=objc
func (c_ CrystallizeObject) SetRadius(value float64) {
objc.Call[objc.Void](c_, objc.Sel("setRadius:"), value)
}
func (c_ CrystallizeObject) HasRadius() bool {
return c_.RespondsToSelector(objc.Sel("radius"))
}
// The radius, in pixels, of the effect. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicrystallize/3228202-radius?language=objc
func (c_ CrystallizeObject) Radius() float64 {
rv := objc.Call[float64](c_, objc.Sel("radius"))
return rv
}