forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharea_histogram_protocol.gen.go
82 lines (66 loc) · 2.01 KB
/
area_histogram_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"
)
// [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareahistogram?language=objc
type PAreaHistogram interface {
// optional
SetScale(value float32)
HasSetScale() bool
// optional
Scale() float32
HasScale() bool
// optional
SetCount(value int)
HasSetCount() bool
// optional
Count() int
HasCount() bool
}
// ensure impl type implements protocol interface
var _ PAreaHistogram = (*AreaHistogramObject)(nil)
// A concrete type for the [PAreaHistogram] protocol.
type AreaHistogramObject struct {
objc.Object
}
func (a_ AreaHistogramObject) HasSetScale() bool {
return a_.RespondsToSelector(objc.Sel("setScale:"))
}
// [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareahistogram/3547093-scale?language=objc
func (a_ AreaHistogramObject) SetScale(value float32) {
objc.Call[objc.Void](a_, objc.Sel("setScale:"), value)
}
func (a_ AreaHistogramObject) HasScale() bool {
return a_.RespondsToSelector(objc.Sel("scale"))
}
// [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareahistogram/3547093-scale?language=objc
func (a_ AreaHistogramObject) Scale() float32 {
rv := objc.Call[float32](a_, objc.Sel("scale"))
return rv
}
func (a_ AreaHistogramObject) HasSetCount() bool {
return a_.RespondsToSelector(objc.Sel("setCount:"))
}
// [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareahistogram/3547092-count?language=objc
func (a_ AreaHistogramObject) SetCount(value int) {
objc.Call[objc.Void](a_, objc.Sel("setCount:"), value)
}
func (a_ AreaHistogramObject) HasCount() bool {
return a_.RespondsToSelector(objc.Sel("count"))
}
// [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareahistogram/3547092-count?language=objc
func (a_ AreaHistogramObject) Count() int {
rv := objc.Call[int](a_, objc.Sel("count"))
return rv
}