forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontours_observation.gen.go
109 lines (91 loc) · 3.81 KB
/
contours_observation.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
// Code generated by DarwinKit. DO NOT EDIT.
package vision
import (
"unsafe"
"github.com/progrium/macdriver/macos/foundation"
"github.com/progrium/macdriver/objc"
)
// The class instance for the [ContoursObservation] class.
var ContoursObservationClass = _ContoursObservationClass{objc.GetClass("VNContoursObservation")}
type _ContoursObservationClass struct {
objc.Class
}
// An interface definition for the [ContoursObservation] class.
type IContoursObservation interface {
IObservation
ContourAtIndexError(contourIndex int, error foundation.IError) Contour
ContourAtIndexPathError(indexPath foundation.IIndexPath, error foundation.IError) Contour
TopLevelContours() []Contour
ContourCount() int
TopLevelContourCount() int
NormalizedPath() unsafe.Pointer
}
// An object that represents the detected contours in an image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vncontoursobservation?language=objc
type ContoursObservation struct {
Observation
}
func ContoursObservationFrom(ptr unsafe.Pointer) ContoursObservation {
return ContoursObservation{
Observation: ObservationFrom(ptr),
}
}
func (cc _ContoursObservationClass) Alloc() ContoursObservation {
rv := objc.Call[ContoursObservation](cc, objc.Sel("alloc"))
return rv
}
func (cc _ContoursObservationClass) New() ContoursObservation {
rv := objc.Call[ContoursObservation](cc, objc.Sel("new"))
rv.Autorelease()
return rv
}
func NewContoursObservation() ContoursObservation {
return ContoursObservationClass.New()
}
func (c_ ContoursObservation) Init() ContoursObservation {
rv := objc.Call[ContoursObservation](c_, objc.Sel("init"))
return rv
}
// Retrieves the contour object at the specified index, irrespective of hierarchy. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vncontoursobservation/3548360-contouratindex?language=objc
func (c_ ContoursObservation) ContourAtIndexError(contourIndex int, error foundation.IError) Contour {
rv := objc.Call[Contour](c_, objc.Sel("contourAtIndex:error:"), contourIndex, objc.Ptr(error))
return rv
}
// Retrieves the contour object at the specified index path. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vncontoursobservation/3548361-contouratindexpath?language=objc
func (c_ ContoursObservation) ContourAtIndexPathError(indexPath foundation.IIndexPath, error foundation.IError) Contour {
rv := objc.Call[Contour](c_, objc.Sel("contourAtIndexPath:error:"), objc.Ptr(indexPath), objc.Ptr(error))
return rv
}
// An array of contours that don’t have another contour enclosing them. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vncontoursobservation/3548364-toplevelcontours?language=objc
func (c_ ContoursObservation) TopLevelContours() []Contour {
rv := objc.Call[[]Contour](c_, objc.Sel("topLevelContours"))
return rv
}
// The total number of detected contours. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vncontoursobservation/3548362-contourcount?language=objc
func (c_ ContoursObservation) ContourCount() int {
rv := objc.Call[int](c_, objc.Sel("contourCount"))
return rv
}
// The total number of detected top-level contours. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vncontoursobservation/3675675-toplevelcontourcount?language=objc
func (c_ ContoursObservation) TopLevelContourCount() int {
rv := objc.Call[int](c_, objc.Sel("topLevelContourCount"))
return rv
}
// The detected contours as a path object in normalized coordinates. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vncontoursobservation/3548363-normalizedpath?language=objc
func (c_ ContoursObservation) NormalizedPath() unsafe.Pointer {
rv := objc.Call[unsafe.Pointer](c_, objc.Sel("normalizedPath"))
return rv
}