objc2_vision/generated/
VNDetectHumanHandPoseRequest.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10#[cfg(feature = "VNTypes")]
13pub type VNHumanHandPoseObservationJointName = VNRecognizedPointKey;
14
15extern "C" {
16 #[cfg(feature = "VNTypes")]
18 pub static VNHumanHandPoseObservationJointNameWrist:
19 &'static VNHumanHandPoseObservationJointName;
20}
21
22extern "C" {
23 #[cfg(feature = "VNTypes")]
25 pub static VNHumanHandPoseObservationJointNameThumbCMC:
26 &'static VNHumanHandPoseObservationJointName;
27}
28
29extern "C" {
30 #[cfg(feature = "VNTypes")]
32 pub static VNHumanHandPoseObservationJointNameThumbMP:
33 &'static VNHumanHandPoseObservationJointName;
34}
35
36extern "C" {
37 #[cfg(feature = "VNTypes")]
39 pub static VNHumanHandPoseObservationJointNameThumbIP:
40 &'static VNHumanHandPoseObservationJointName;
41}
42
43extern "C" {
44 #[cfg(feature = "VNTypes")]
46 pub static VNHumanHandPoseObservationJointNameThumbTip:
47 &'static VNHumanHandPoseObservationJointName;
48}
49
50extern "C" {
51 #[cfg(feature = "VNTypes")]
53 pub static VNHumanHandPoseObservationJointNameIndexMCP:
54 &'static VNHumanHandPoseObservationJointName;
55}
56
57extern "C" {
58 #[cfg(feature = "VNTypes")]
60 pub static VNHumanHandPoseObservationJointNameIndexPIP:
61 &'static VNHumanHandPoseObservationJointName;
62}
63
64extern "C" {
65 #[cfg(feature = "VNTypes")]
67 pub static VNHumanHandPoseObservationJointNameIndexDIP:
68 &'static VNHumanHandPoseObservationJointName;
69}
70
71extern "C" {
72 #[cfg(feature = "VNTypes")]
74 pub static VNHumanHandPoseObservationJointNameIndexTip:
75 &'static VNHumanHandPoseObservationJointName;
76}
77
78extern "C" {
79 #[cfg(feature = "VNTypes")]
81 pub static VNHumanHandPoseObservationJointNameMiddleMCP:
82 &'static VNHumanHandPoseObservationJointName;
83}
84
85extern "C" {
86 #[cfg(feature = "VNTypes")]
88 pub static VNHumanHandPoseObservationJointNameMiddlePIP:
89 &'static VNHumanHandPoseObservationJointName;
90}
91
92extern "C" {
93 #[cfg(feature = "VNTypes")]
95 pub static VNHumanHandPoseObservationJointNameMiddleDIP:
96 &'static VNHumanHandPoseObservationJointName;
97}
98
99extern "C" {
100 #[cfg(feature = "VNTypes")]
102 pub static VNHumanHandPoseObservationJointNameMiddleTip:
103 &'static VNHumanHandPoseObservationJointName;
104}
105
106extern "C" {
107 #[cfg(feature = "VNTypes")]
109 pub static VNHumanHandPoseObservationJointNameRingMCP:
110 &'static VNHumanHandPoseObservationJointName;
111}
112
113extern "C" {
114 #[cfg(feature = "VNTypes")]
116 pub static VNHumanHandPoseObservationJointNameRingPIP:
117 &'static VNHumanHandPoseObservationJointName;
118}
119
120extern "C" {
121 #[cfg(feature = "VNTypes")]
123 pub static VNHumanHandPoseObservationJointNameRingDIP:
124 &'static VNHumanHandPoseObservationJointName;
125}
126
127extern "C" {
128 #[cfg(feature = "VNTypes")]
130 pub static VNHumanHandPoseObservationJointNameRingTip:
131 &'static VNHumanHandPoseObservationJointName;
132}
133
134extern "C" {
135 #[cfg(feature = "VNTypes")]
137 pub static VNHumanHandPoseObservationJointNameLittleMCP:
138 &'static VNHumanHandPoseObservationJointName;
139}
140
141extern "C" {
142 #[cfg(feature = "VNTypes")]
144 pub static VNHumanHandPoseObservationJointNameLittlePIP:
145 &'static VNHumanHandPoseObservationJointName;
146}
147
148extern "C" {
149 #[cfg(feature = "VNTypes")]
151 pub static VNHumanHandPoseObservationJointNameLittleDIP:
152 &'static VNHumanHandPoseObservationJointName;
153}
154
155extern "C" {
156 #[cfg(feature = "VNTypes")]
158 pub static VNHumanHandPoseObservationJointNameLittleTip:
159 &'static VNHumanHandPoseObservationJointName;
160}
161
162#[cfg(feature = "VNTypes")]
165pub type VNHumanHandPoseObservationJointsGroupName = VNRecognizedPointGroupKey;
166
167extern "C" {
168 #[cfg(feature = "VNTypes")]
170 pub static VNHumanHandPoseObservationJointsGroupNameThumb:
171 &'static VNHumanHandPoseObservationJointsGroupName;
172}
173
174extern "C" {
175 #[cfg(feature = "VNTypes")]
177 pub static VNHumanHandPoseObservationJointsGroupNameIndexFinger:
178 &'static VNHumanHandPoseObservationJointsGroupName;
179}
180
181extern "C" {
182 #[cfg(feature = "VNTypes")]
184 pub static VNHumanHandPoseObservationJointsGroupNameMiddleFinger:
185 &'static VNHumanHandPoseObservationJointsGroupName;
186}
187
188extern "C" {
189 #[cfg(feature = "VNTypes")]
191 pub static VNHumanHandPoseObservationJointsGroupNameRingFinger:
192 &'static VNHumanHandPoseObservationJointsGroupName;
193}
194
195extern "C" {
196 #[cfg(feature = "VNTypes")]
198 pub static VNHumanHandPoseObservationJointsGroupNameLittleFinger:
199 &'static VNHumanHandPoseObservationJointsGroupName;
200}
201
202extern "C" {
203 #[cfg(feature = "VNTypes")]
205 pub static VNHumanHandPoseObservationJointsGroupNameAll:
206 &'static VNHumanHandPoseObservationJointsGroupName;
207}
208
209extern_class!(
210 #[unsafe(super(VNRecognizedPointsObservation, VNObservation, NSObject))]
212 #[derive(Debug, PartialEq, Eq, Hash)]
213 #[cfg(feature = "VNObservation")]
214 pub struct VNHumanHandPoseObservation;
215);
216
217#[cfg(feature = "VNObservation")]
218unsafe impl NSCoding for VNHumanHandPoseObservation {}
219
220#[cfg(feature = "VNObservation")]
221unsafe impl NSCopying for VNHumanHandPoseObservation {}
222
223#[cfg(feature = "VNObservation")]
224unsafe impl CopyingHelper for VNHumanHandPoseObservation {
225 type Result = Self;
226}
227
228#[cfg(feature = "VNObservation")]
229unsafe impl NSObjectProtocol for VNHumanHandPoseObservation {}
230
231#[cfg(feature = "VNObservation")]
232unsafe impl NSSecureCoding for VNHumanHandPoseObservation {}
233
234#[cfg(all(feature = "VNObservation", feature = "VNRequestRevisionProviding"))]
235unsafe impl VNRequestRevisionProviding for VNHumanHandPoseObservation {}
236
237#[cfg(feature = "VNObservation")]
238impl VNHumanHandPoseObservation {
239 extern_methods!(
240 #[cfg(feature = "VNTypes")]
241 #[unsafe(method(availableJointNames))]
243 #[unsafe(method_family = none)]
244 pub unsafe fn availableJointNames(
245 &self,
246 ) -> Retained<NSArray<VNHumanHandPoseObservationJointName>>;
247
248 #[cfg(feature = "VNTypes")]
249 #[unsafe(method(availableJointsGroupNames))]
251 #[unsafe(method_family = none)]
252 pub unsafe fn availableJointsGroupNames(
253 &self,
254 ) -> Retained<NSArray<VNHumanHandPoseObservationJointsGroupName>>;
255
256 #[cfg(all(
257 feature = "VNDetectedPoint",
258 feature = "VNGeometry",
259 feature = "VNTypes"
260 ))]
261 #[unsafe(method(recognizedPointForJointName:error:_))]
270 #[unsafe(method_family = none)]
271 pub unsafe fn recognizedPointForJointName_error(
272 &self,
273 joint_name: &VNHumanHandPoseObservationJointName,
274 ) -> Result<Retained<VNRecognizedPoint>, Retained<NSError>>;
275
276 #[cfg(all(
277 feature = "VNDetectedPoint",
278 feature = "VNGeometry",
279 feature = "VNTypes"
280 ))]
281 #[unsafe(method(recognizedPointsForJointsGroupName:error:_))]
293 #[unsafe(method_family = none)]
294 pub unsafe fn recognizedPointsForJointsGroupName_error(
295 &self,
296 joints_group_name: &VNHumanHandPoseObservationJointsGroupName,
297 ) -> Result<
298 Retained<NSDictionary<VNHumanHandPoseObservationJointName, VNRecognizedPoint>>,
299 Retained<NSError>,
300 >;
301
302 #[cfg(feature = "VNTypes")]
303 #[unsafe(method(chirality))]
305 #[unsafe(method_family = none)]
306 pub unsafe fn chirality(&self) -> VNChirality;
307 );
308}
309
310#[cfg(feature = "VNObservation")]
312impl VNHumanHandPoseObservation {
313 extern_methods!(
314 #[unsafe(method(new))]
315 #[unsafe(method_family = new)]
316 pub unsafe fn new() -> Retained<Self>;
317
318 #[unsafe(method(init))]
319 #[unsafe(method_family = init)]
320 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
321 );
322}
323
324extern_class!(
325 #[unsafe(super(VNImageBasedRequest, VNRequest, NSObject))]
331 #[derive(Debug, PartialEq, Eq, Hash)]
332 #[cfg(feature = "VNRequest")]
333 pub struct VNDetectHumanHandPoseRequest;
334);
335
336#[cfg(feature = "VNRequest")]
337unsafe impl NSCopying for VNDetectHumanHandPoseRequest {}
338
339#[cfg(feature = "VNRequest")]
340unsafe impl CopyingHelper for VNDetectHumanHandPoseRequest {
341 type Result = Self;
342}
343
344#[cfg(feature = "VNRequest")]
345unsafe impl NSObjectProtocol for VNDetectHumanHandPoseRequest {}
346
347#[cfg(feature = "VNRequest")]
348impl VNDetectHumanHandPoseRequest {
349 extern_methods!(
350 #[cfg(feature = "VNTypes")]
351 #[deprecated]
359 #[unsafe(method(supportedJointNamesForRevision:error:_))]
360 #[unsafe(method_family = none)]
361 pub unsafe fn supportedJointNamesForRevision_error(
362 revision: NSUInteger,
363 ) -> Result<Retained<NSArray<VNHumanHandPoseObservationJointName>>, Retained<NSError>>;
364
365 #[cfg(feature = "VNTypes")]
366 #[unsafe(method(supportedJointNamesAndReturnError:_))]
372 #[unsafe(method_family = none)]
373 pub unsafe fn supportedJointNamesAndReturnError(
374 &self,
375 ) -> Result<Retained<NSArray<VNHumanHandPoseObservationJointName>>, Retained<NSError>>;
376
377 #[cfg(feature = "VNTypes")]
378 #[deprecated]
386 #[unsafe(method(supportedJointsGroupNamesForRevision:error:_))]
387 #[unsafe(method_family = none)]
388 pub unsafe fn supportedJointsGroupNamesForRevision_error(
389 revision: NSUInteger,
390 ) -> Result<Retained<NSArray<VNHumanHandPoseObservationJointsGroupName>>, Retained<NSError>>;
391
392 #[cfg(feature = "VNTypes")]
393 #[unsafe(method(supportedJointsGroupNamesAndReturnError:_))]
399 #[unsafe(method_family = none)]
400 pub unsafe fn supportedJointsGroupNamesAndReturnError(
401 &self,
402 ) -> Result<Retained<NSArray<VNHumanHandPoseObservationJointsGroupName>>, Retained<NSError>>;
403
404 #[unsafe(method(maximumHandCount))]
408 #[unsafe(method_family = none)]
409 pub unsafe fn maximumHandCount(&self) -> NSUInteger;
410
411 #[unsafe(method(setMaximumHandCount:))]
413 #[unsafe(method_family = none)]
414 pub unsafe fn setMaximumHandCount(&self, maximum_hand_count: NSUInteger);
415
416 #[cfg(feature = "VNObservation")]
417 #[unsafe(method(results))]
419 #[unsafe(method_family = none)]
420 pub unsafe fn results(&self) -> Option<Retained<NSArray<VNHumanHandPoseObservation>>>;
421 );
422}
423
424#[cfg(feature = "VNRequest")]
426impl VNDetectHumanHandPoseRequest {
427 extern_methods!(
428 #[unsafe(method(init))]
430 #[unsafe(method_family = init)]
431 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
432
433 #[cfg(feature = "block2")]
434 #[unsafe(method(initWithCompletionHandler:))]
439 #[unsafe(method_family = init)]
440 pub unsafe fn initWithCompletionHandler(
441 this: Allocated<Self>,
442 completion_handler: VNRequestCompletionHandler,
443 ) -> Retained<Self>;
444 );
445}
446
447#[cfg(feature = "VNRequest")]
449impl VNDetectHumanHandPoseRequest {
450 extern_methods!(
451 #[unsafe(method(new))]
452 #[unsafe(method_family = new)]
453 pub unsafe fn new() -> Retained<Self>;
454 );
455}
456
457pub static VNDetectHumanHandPoseRequestRevision1: NSUInteger = 1;