forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeature.gen.go
73 lines (59 loc) · 1.7 KB
/
feature.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
// Code generated by DarwinKit. DO NOT EDIT.
package coreimage
import (
"unsafe"
"github.com/progrium/macdriver/macos/coregraphics"
"github.com/progrium/macdriver/objc"
)
// The class instance for the [Feature] class.
var FeatureClass = _FeatureClass{objc.GetClass("CIFeature")}
type _FeatureClass struct {
objc.Class
}
// An interface definition for the [Feature] class.
type IFeature interface {
objc.IObject
Bounds() coregraphics.Rect
Type() string
}
// The abstract superclass for objects representing notable features detected in an image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifeature?language=objc
type Feature struct {
objc.Object
}
func FeatureFrom(ptr unsafe.Pointer) Feature {
return Feature{
Object: objc.ObjectFrom(ptr),
}
}
func (fc _FeatureClass) Alloc() Feature {
rv := objc.Call[Feature](fc, objc.Sel("alloc"))
return rv
}
func (fc _FeatureClass) New() Feature {
rv := objc.Call[Feature](fc, objc.Sel("new"))
rv.Autorelease()
return rv
}
func NewFeature() Feature {
return FeatureClass.New()
}
func (f_ Feature) Init() Feature {
rv := objc.Call[Feature](f_, objc.Sel("init"))
return rv
}
// The rectangle that holds discovered feature. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifeature/1437782-bounds?language=objc
func (f_ Feature) Bounds() coregraphics.Rect {
rv := objc.Call[coregraphics.Rect](f_, objc.Sel("bounds"))
return rv
}
// The type of feature that was discovered. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifeature/1438092-type?language=objc
func (f_ Feature) Type() string {
rv := objc.Call[string](f_, objc.Sel("type"))
return rv
}