objc2_vision/generated/
VNDetectHumanBodyPoseRequest.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern "C" {
10 #[cfg(feature = "VNTypes")]
12 #[deprecated]
13 pub static VNBodyLandmarkKeyNose: &'static VNRecognizedPointKey;
14}
15
16extern "C" {
17 #[cfg(feature = "VNTypes")]
19 #[deprecated]
20 pub static VNBodyLandmarkKeyLeftEye: &'static VNRecognizedPointKey;
21}
22
23extern "C" {
24 #[cfg(feature = "VNTypes")]
26 #[deprecated]
27 pub static VNBodyLandmarkKeyRightEye: &'static VNRecognizedPointKey;
28}
29
30extern "C" {
31 #[cfg(feature = "VNTypes")]
33 #[deprecated]
34 pub static VNBodyLandmarkKeyLeftEar: &'static VNRecognizedPointKey;
35}
36
37extern "C" {
38 #[cfg(feature = "VNTypes")]
40 #[deprecated]
41 pub static VNBodyLandmarkKeyRightEar: &'static VNRecognizedPointKey;
42}
43
44extern "C" {
45 #[cfg(feature = "VNTypes")]
47 #[deprecated]
48 pub static VNBodyLandmarkKeyLeftShoulder: &'static VNRecognizedPointKey;
49}
50
51extern "C" {
52 #[cfg(feature = "VNTypes")]
54 #[deprecated]
55 pub static VNBodyLandmarkKeyRightShoulder: &'static VNRecognizedPointKey;
56}
57
58extern "C" {
59 #[cfg(feature = "VNTypes")]
61 #[deprecated]
62 pub static VNBodyLandmarkKeyNeck: &'static VNRecognizedPointKey;
63}
64
65extern "C" {
66 #[cfg(feature = "VNTypes")]
68 #[deprecated]
69 pub static VNBodyLandmarkKeyLeftElbow: &'static VNRecognizedPointKey;
70}
71
72extern "C" {
73 #[cfg(feature = "VNTypes")]
75 #[deprecated]
76 pub static VNBodyLandmarkKeyRightElbow: &'static VNRecognizedPointKey;
77}
78
79extern "C" {
80 #[cfg(feature = "VNTypes")]
82 #[deprecated]
83 pub static VNBodyLandmarkKeyLeftWrist: &'static VNRecognizedPointKey;
84}
85
86extern "C" {
87 #[cfg(feature = "VNTypes")]
89 #[deprecated]
90 pub static VNBodyLandmarkKeyRightWrist: &'static VNRecognizedPointKey;
91}
92
93extern "C" {
94 #[cfg(feature = "VNTypes")]
96 #[deprecated]
97 pub static VNBodyLandmarkKeyLeftHip: &'static VNRecognizedPointKey;
98}
99
100extern "C" {
101 #[cfg(feature = "VNTypes")]
103 #[deprecated]
104 pub static VNBodyLandmarkKeyRightHip: &'static VNRecognizedPointKey;
105}
106
107extern "C" {
108 #[cfg(feature = "VNTypes")]
110 #[deprecated]
111 pub static VNBodyLandmarkKeyRoot: &'static VNRecognizedPointKey;
112}
113
114extern "C" {
115 #[cfg(feature = "VNTypes")]
117 #[deprecated]
118 pub static VNBodyLandmarkKeyLeftKnee: &'static VNRecognizedPointKey;
119}
120
121extern "C" {
122 #[cfg(feature = "VNTypes")]
124 #[deprecated]
125 pub static VNBodyLandmarkKeyRightKnee: &'static VNRecognizedPointKey;
126}
127
128extern "C" {
129 #[cfg(feature = "VNTypes")]
131 #[deprecated]
132 pub static VNBodyLandmarkKeyLeftAnkle: &'static VNRecognizedPointKey;
133}
134
135extern "C" {
136 #[cfg(feature = "VNTypes")]
138 #[deprecated]
139 pub static VNBodyLandmarkKeyRightAnkle: &'static VNRecognizedPointKey;
140}
141
142extern "C" {
143 #[cfg(feature = "VNTypes")]
145 #[deprecated]
146 pub static VNBodyLandmarkRegionKeyFace: &'static VNRecognizedPointGroupKey;
147}
148
149extern "C" {
150 #[cfg(feature = "VNTypes")]
152 #[deprecated]
153 pub static VNBodyLandmarkRegionKeyTorso: &'static VNRecognizedPointGroupKey;
154}
155
156extern "C" {
157 #[cfg(feature = "VNTypes")]
159 #[deprecated]
160 pub static VNBodyLandmarkRegionKeyLeftArm: &'static VNRecognizedPointGroupKey;
161}
162
163extern "C" {
164 #[cfg(feature = "VNTypes")]
166 #[deprecated]
167 pub static VNBodyLandmarkRegionKeyRightArm: &'static VNRecognizedPointGroupKey;
168}
169
170extern "C" {
171 #[cfg(feature = "VNTypes")]
173 #[deprecated]
174 pub static VNBodyLandmarkRegionKeyLeftLeg: &'static VNRecognizedPointGroupKey;
175}
176
177extern "C" {
178 #[cfg(feature = "VNTypes")]
180 #[deprecated]
181 pub static VNBodyLandmarkRegionKeyRightLeg: &'static VNRecognizedPointGroupKey;
182}
183
184#[cfg(feature = "VNTypes")]
187pub type VNHumanBodyPoseObservationJointName = VNRecognizedPointKey;
188
189extern "C" {
190 #[cfg(feature = "VNTypes")]
192 pub static VNHumanBodyPoseObservationJointNameNose:
193 &'static VNHumanBodyPoseObservationJointName;
194}
195
196extern "C" {
197 #[cfg(feature = "VNTypes")]
199 pub static VNHumanBodyPoseObservationJointNameLeftEye:
200 &'static VNHumanBodyPoseObservationJointName;
201}
202
203extern "C" {
204 #[cfg(feature = "VNTypes")]
206 pub static VNHumanBodyPoseObservationJointNameRightEye:
207 &'static VNHumanBodyPoseObservationJointName;
208}
209
210extern "C" {
211 #[cfg(feature = "VNTypes")]
213 pub static VNHumanBodyPoseObservationJointNameLeftEar:
214 &'static VNHumanBodyPoseObservationJointName;
215}
216
217extern "C" {
218 #[cfg(feature = "VNTypes")]
220 pub static VNHumanBodyPoseObservationJointNameRightEar:
221 &'static VNHumanBodyPoseObservationJointName;
222}
223
224extern "C" {
225 #[cfg(feature = "VNTypes")]
227 pub static VNHumanBodyPoseObservationJointNameLeftShoulder:
228 &'static VNHumanBodyPoseObservationJointName;
229}
230
231extern "C" {
232 #[cfg(feature = "VNTypes")]
234 pub static VNHumanBodyPoseObservationJointNameRightShoulder:
235 &'static VNHumanBodyPoseObservationJointName;
236}
237
238extern "C" {
239 #[cfg(feature = "VNTypes")]
241 pub static VNHumanBodyPoseObservationJointNameNeck:
242 &'static VNHumanBodyPoseObservationJointName;
243}
244
245extern "C" {
246 #[cfg(feature = "VNTypes")]
248 pub static VNHumanBodyPoseObservationJointNameLeftElbow:
249 &'static VNHumanBodyPoseObservationJointName;
250}
251
252extern "C" {
253 #[cfg(feature = "VNTypes")]
255 pub static VNHumanBodyPoseObservationJointNameRightElbow:
256 &'static VNHumanBodyPoseObservationJointName;
257}
258
259extern "C" {
260 #[cfg(feature = "VNTypes")]
262 pub static VNHumanBodyPoseObservationJointNameLeftWrist:
263 &'static VNHumanBodyPoseObservationJointName;
264}
265
266extern "C" {
267 #[cfg(feature = "VNTypes")]
269 pub static VNHumanBodyPoseObservationJointNameRightWrist:
270 &'static VNHumanBodyPoseObservationJointName;
271}
272
273extern "C" {
274 #[cfg(feature = "VNTypes")]
276 pub static VNHumanBodyPoseObservationJointNameLeftHip:
277 &'static VNHumanBodyPoseObservationJointName;
278}
279
280extern "C" {
281 #[cfg(feature = "VNTypes")]
283 pub static VNHumanBodyPoseObservationJointNameRightHip:
284 &'static VNHumanBodyPoseObservationJointName;
285}
286
287extern "C" {
288 #[cfg(feature = "VNTypes")]
290 pub static VNHumanBodyPoseObservationJointNameRoot:
291 &'static VNHumanBodyPoseObservationJointName;
292}
293
294extern "C" {
295 #[cfg(feature = "VNTypes")]
297 pub static VNHumanBodyPoseObservationJointNameLeftKnee:
298 &'static VNHumanBodyPoseObservationJointName;
299}
300
301extern "C" {
302 #[cfg(feature = "VNTypes")]
304 pub static VNHumanBodyPoseObservationJointNameRightKnee:
305 &'static VNHumanBodyPoseObservationJointName;
306}
307
308extern "C" {
309 #[cfg(feature = "VNTypes")]
311 pub static VNHumanBodyPoseObservationJointNameLeftAnkle:
312 &'static VNHumanBodyPoseObservationJointName;
313}
314
315extern "C" {
316 #[cfg(feature = "VNTypes")]
318 pub static VNHumanBodyPoseObservationJointNameRightAnkle:
319 &'static VNHumanBodyPoseObservationJointName;
320}
321
322#[cfg(feature = "VNTypes")]
325pub type VNHumanBodyPoseObservationJointsGroupName = VNRecognizedPointGroupKey;
326
327extern "C" {
328 #[cfg(feature = "VNTypes")]
330 pub static VNHumanBodyPoseObservationJointsGroupNameFace:
331 &'static VNHumanBodyPoseObservationJointsGroupName;
332}
333
334extern "C" {
335 #[cfg(feature = "VNTypes")]
337 pub static VNHumanBodyPoseObservationJointsGroupNameTorso:
338 &'static VNHumanBodyPoseObservationJointsGroupName;
339}
340
341extern "C" {
342 #[cfg(feature = "VNTypes")]
344 pub static VNHumanBodyPoseObservationJointsGroupNameLeftArm:
345 &'static VNHumanBodyPoseObservationJointsGroupName;
346}
347
348extern "C" {
349 #[cfg(feature = "VNTypes")]
351 pub static VNHumanBodyPoseObservationJointsGroupNameRightArm:
352 &'static VNHumanBodyPoseObservationJointsGroupName;
353}
354
355extern "C" {
356 #[cfg(feature = "VNTypes")]
358 pub static VNHumanBodyPoseObservationJointsGroupNameLeftLeg:
359 &'static VNHumanBodyPoseObservationJointsGroupName;
360}
361
362extern "C" {
363 #[cfg(feature = "VNTypes")]
365 pub static VNHumanBodyPoseObservationJointsGroupNameRightLeg:
366 &'static VNHumanBodyPoseObservationJointsGroupName;
367}
368
369extern "C" {
370 #[cfg(feature = "VNTypes")]
372 pub static VNHumanBodyPoseObservationJointsGroupNameAll:
373 &'static VNHumanBodyPoseObservationJointsGroupName;
374}
375
376extern_class!(
377 #[unsafe(super(VNRecognizedPointsObservation, VNObservation, NSObject))]
379 #[derive(Debug, PartialEq, Eq, Hash)]
380 #[cfg(feature = "VNObservation")]
381 pub struct VNHumanBodyPoseObservation;
382);
383
384#[cfg(feature = "VNObservation")]
385extern_conformance!(
386 unsafe impl NSCoding for VNHumanBodyPoseObservation {}
387);
388
389#[cfg(feature = "VNObservation")]
390extern_conformance!(
391 unsafe impl NSCopying for VNHumanBodyPoseObservation {}
392);
393
394#[cfg(feature = "VNObservation")]
395unsafe impl CopyingHelper for VNHumanBodyPoseObservation {
396 type Result = Self;
397}
398
399#[cfg(feature = "VNObservation")]
400extern_conformance!(
401 unsafe impl NSObjectProtocol for VNHumanBodyPoseObservation {}
402);
403
404#[cfg(feature = "VNObservation")]
405extern_conformance!(
406 unsafe impl NSSecureCoding for VNHumanBodyPoseObservation {}
407);
408
409#[cfg(all(feature = "VNObservation", feature = "VNRequestRevisionProviding"))]
410extern_conformance!(
411 unsafe impl VNRequestRevisionProviding for VNHumanBodyPoseObservation {}
412);
413
414#[cfg(feature = "VNObservation")]
415impl VNHumanBodyPoseObservation {
416 extern_methods!(
417 #[cfg(feature = "VNTypes")]
418 #[unsafe(method(availableJointNames))]
420 #[unsafe(method_family = none)]
421 pub unsafe fn availableJointNames(
422 &self,
423 ) -> Retained<NSArray<VNHumanBodyPoseObservationJointName>>;
424
425 #[cfg(feature = "VNTypes")]
426 #[unsafe(method(availableJointsGroupNames))]
428 #[unsafe(method_family = none)]
429 pub unsafe fn availableJointsGroupNames(
430 &self,
431 ) -> Retained<NSArray<VNHumanBodyPoseObservationJointsGroupName>>;
432
433 #[cfg(all(
434 feature = "VNDetectedPoint",
435 feature = "VNGeometry",
436 feature = "VNTypes"
437 ))]
438 #[unsafe(method(recognizedPointForJointName:error:_))]
447 #[unsafe(method_family = none)]
448 pub unsafe fn recognizedPointForJointName_error(
449 &self,
450 joint_name: &VNHumanBodyPoseObservationJointName,
451 ) -> Result<Retained<VNRecognizedPoint>, Retained<NSError>>;
452
453 #[cfg(all(
454 feature = "VNDetectedPoint",
455 feature = "VNGeometry",
456 feature = "VNTypes"
457 ))]
458 #[unsafe(method(recognizedPointsForJointsGroupName:error:_))]
470 #[unsafe(method_family = none)]
471 pub unsafe fn recognizedPointsForJointsGroupName_error(
472 &self,
473 joints_group_name: &VNHumanBodyPoseObservationJointsGroupName,
474 ) -> Result<
475 Retained<NSDictionary<VNHumanBodyPoseObservationJointName, VNRecognizedPoint>>,
476 Retained<NSError>,
477 >;
478 );
479}
480
481#[cfg(feature = "VNObservation")]
483impl VNHumanBodyPoseObservation {
484 extern_methods!(
485 #[unsafe(method(new))]
486 #[unsafe(method_family = new)]
487 pub unsafe fn new() -> Retained<Self>;
488
489 #[unsafe(method(init))]
490 #[unsafe(method_family = init)]
491 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
492 );
493}
494
495extern_class!(
496 #[unsafe(super(VNImageBasedRequest, VNRequest, NSObject))]
502 #[derive(Debug, PartialEq, Eq, Hash)]
503 #[cfg(feature = "VNRequest")]
504 pub struct VNDetectHumanBodyPoseRequest;
505);
506
507#[cfg(feature = "VNRequest")]
508extern_conformance!(
509 unsafe impl NSCopying for VNDetectHumanBodyPoseRequest {}
510);
511
512#[cfg(feature = "VNRequest")]
513unsafe impl CopyingHelper for VNDetectHumanBodyPoseRequest {
514 type Result = Self;
515}
516
517#[cfg(feature = "VNRequest")]
518extern_conformance!(
519 unsafe impl NSObjectProtocol for VNDetectHumanBodyPoseRequest {}
520);
521
522#[cfg(feature = "VNRequest")]
523impl VNDetectHumanBodyPoseRequest {
524 extern_methods!(
525 #[cfg(feature = "VNTypes")]
526 #[deprecated]
534 #[unsafe(method(supportedJointNamesForRevision:error:_))]
535 #[unsafe(method_family = none)]
536 pub unsafe fn supportedJointNamesForRevision_error(
537 revision: NSUInteger,
538 ) -> Result<Retained<NSArray<VNHumanBodyPoseObservationJointName>>, Retained<NSError>>;
539
540 #[cfg(feature = "VNTypes")]
541 #[unsafe(method(supportedJointNamesAndReturnError:_))]
547 #[unsafe(method_family = none)]
548 pub unsafe fn supportedJointNamesAndReturnError(
549 &self,
550 ) -> Result<Retained<NSArray<VNHumanBodyPoseObservationJointName>>, Retained<NSError>>;
551
552 #[cfg(feature = "VNTypes")]
553 #[deprecated]
561 #[unsafe(method(supportedJointsGroupNamesForRevision:error:_))]
562 #[unsafe(method_family = none)]
563 pub unsafe fn supportedJointsGroupNamesForRevision_error(
564 revision: NSUInteger,
565 ) -> Result<Retained<NSArray<VNHumanBodyPoseObservationJointsGroupName>>, Retained<NSError>>;
566
567 #[cfg(feature = "VNTypes")]
568 #[unsafe(method(supportedJointsGroupNamesAndReturnError:_))]
574 #[unsafe(method_family = none)]
575 pub unsafe fn supportedJointsGroupNamesAndReturnError(
576 &self,
577 ) -> Result<Retained<NSArray<VNHumanBodyPoseObservationJointsGroupName>>, Retained<NSError>>;
578
579 #[cfg(feature = "VNObservation")]
580 #[unsafe(method(results))]
582 #[unsafe(method_family = none)]
583 pub unsafe fn results(&self) -> Option<Retained<NSArray<VNHumanBodyPoseObservation>>>;
584 );
585}
586
587#[cfg(feature = "VNRequest")]
589impl VNDetectHumanBodyPoseRequest {
590 extern_methods!(
591 #[unsafe(method(init))]
593 #[unsafe(method_family = init)]
594 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
595
596 #[cfg(feature = "block2")]
597 #[unsafe(method(initWithCompletionHandler:))]
606 #[unsafe(method_family = init)]
607 pub unsafe fn initWithCompletionHandler(
608 this: Allocated<Self>,
609 completion_handler: VNRequestCompletionHandler,
610 ) -> Retained<Self>;
611 );
612}
613
614#[cfg(feature = "VNRequest")]
616impl VNDetectHumanBodyPoseRequest {
617 extern_methods!(
618 #[unsafe(method(new))]
619 #[unsafe(method_family = new)]
620 pub unsafe fn new() -> Retained<Self>;
621 );
622}
623
624pub static VNDetectHumanBodyPoseRequestRevision1: NSUInteger = 1;