forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetect_human_hand_pose_request.gen.go
85 lines (69 loc) · 2.93 KB
/
detect_human_hand_pose_request.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
// Code generated by DarwinKit. DO NOT EDIT.
package vision
import (
"unsafe"
"github.com/progrium/macdriver/objc"
)
// The class instance for the [DetectHumanHandPoseRequest] class.
var DetectHumanHandPoseRequestClass = _DetectHumanHandPoseRequestClass{objc.GetClass("VNDetectHumanHandPoseRequest")}
type _DetectHumanHandPoseRequestClass struct {
objc.Class
}
// An interface definition for the [DetectHumanHandPoseRequest] class.
type IDetectHumanHandPoseRequest interface {
IImageBasedRequest
MaximumHandCount() uint
SetMaximumHandCount(value uint)
}
// A request that detects a human hand pose. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecthumanhandposerequest?language=objc
type DetectHumanHandPoseRequest struct {
ImageBasedRequest
}
func DetectHumanHandPoseRequestFrom(ptr unsafe.Pointer) DetectHumanHandPoseRequest {
return DetectHumanHandPoseRequest{
ImageBasedRequest: ImageBasedRequestFrom(ptr),
}
}
func (dc _DetectHumanHandPoseRequestClass) Alloc() DetectHumanHandPoseRequest {
rv := objc.Call[DetectHumanHandPoseRequest](dc, objc.Sel("alloc"))
return rv
}
func (dc _DetectHumanHandPoseRequestClass) New() DetectHumanHandPoseRequest {
rv := objc.Call[DetectHumanHandPoseRequest](dc, objc.Sel("new"))
rv.Autorelease()
return rv
}
func NewDetectHumanHandPoseRequest() DetectHumanHandPoseRequest {
return DetectHumanHandPoseRequestClass.New()
}
func (d_ DetectHumanHandPoseRequest) Init() DetectHumanHandPoseRequest {
rv := objc.Call[DetectHumanHandPoseRequest](d_, objc.Sel("init"))
return rv
}
func (d_ DetectHumanHandPoseRequest) InitWithCompletionHandler(completionHandler RequestCompletionHandler) DetectHumanHandPoseRequest {
rv := objc.Call[DetectHumanHandPoseRequest](d_, objc.Sel("initWithCompletionHandler:"), completionHandler)
return rv
}
// Creates a new Vision request with an optional completion handler. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequest/2875416-initwithcompletionhandler?language=objc
func NewDetectHumanHandPoseRequestWithCompletionHandler(completionHandler RequestCompletionHandler) DetectHumanHandPoseRequest {
instance := DetectHumanHandPoseRequestClass.Alloc().InitWithCompletionHandler(completionHandler)
instance.Autorelease()
return instance
}
// The maximum number of hands to detect in an image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecthumanhandposerequest/3571271-maximumhandcount?language=objc
func (d_ DetectHumanHandPoseRequest) MaximumHandCount() uint {
rv := objc.Call[uint](d_, objc.Sel("maximumHandCount"))
return rv
}
// The maximum number of hands to detect in an image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecthumanhandposerequest/3571271-maximumhandcount?language=objc
func (d_ DetectHumanHandPoseRequest) SetMaximumHandCount(value uint) {
objc.Call[objc.Void](d_, objc.Sel("setMaximumHandCount:"), value)
}