forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbox_blur_protocol.gen.go
82 lines (66 loc) · 2.19 KB
/
box_blur_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
// Code generated by DarwinKit. DO NOT EDIT.
package coreimage
import (
"github.com/progrium/darwinkit/objc"
)
// The properties you use to configure a box blur filter. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur?language=objc
type PBoxBlur interface {
// optional
SetRadius(value float32)
HasSetRadius() bool
// optional
Radius() float32
HasRadius() bool
// optional
SetInputImage(value Image)
HasSetInputImage() bool
// optional
InputImage() Image
HasInputImage() bool
}
// ensure impl type implements protocol interface
var _ PBoxBlur = (*BoxBlurObject)(nil)
// A concrete type for the [PBoxBlur] protocol.
type BoxBlurObject struct {
objc.Object
}
func (b_ BoxBlurObject) HasSetRadius() bool {
return b_.RespondsToSelector(objc.Sel("setRadius:"))
}
// The radius of the blur, in pixels. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur/3228095-radius?language=objc
func (b_ BoxBlurObject) SetRadius(value float32) {
objc.Call[objc.Void](b_, objc.Sel("setRadius:"), value)
}
func (b_ BoxBlurObject) HasRadius() bool {
return b_.RespondsToSelector(objc.Sel("radius"))
}
// The radius of the blur, in pixels. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur/3228095-radius?language=objc
func (b_ BoxBlurObject) Radius() float32 {
rv := objc.Call[float32](b_, objc.Sel("radius"))
return rv
}
func (b_ BoxBlurObject) HasSetInputImage() bool {
return b_.RespondsToSelector(objc.Sel("setInputImage:"))
}
// The image to use as an input image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur/3228094-inputimage?language=objc
func (b_ BoxBlurObject) SetInputImage(value Image) {
objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), value)
}
func (b_ BoxBlurObject) HasInputImage() bool {
return b_.RespondsToSelector(objc.Sel("inputImage"))
}
// The image to use as an input image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur/3228094-inputimage?language=objc
func (b_ BoxBlurObject) InputImage() Image {
rv := objc.Call[Image](b_, objc.Sel("inputImage"))
return rv
}