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")]
218extern_conformance!(
219 unsafe impl NSCoding for VNHumanHandPoseObservation {}
220);
221
222#[cfg(feature = "VNObservation")]
223extern_conformance!(
224 unsafe impl NSCopying for VNHumanHandPoseObservation {}
225);
226
227#[cfg(feature = "VNObservation")]
228unsafe impl CopyingHelper for VNHumanHandPoseObservation {
229 type Result = Self;
230}
231
232#[cfg(feature = "VNObservation")]
233extern_conformance!(
234 unsafe impl NSObjectProtocol for VNHumanHandPoseObservation {}
235);
236
237#[cfg(feature = "VNObservation")]
238extern_conformance!(
239 unsafe impl NSSecureCoding for VNHumanHandPoseObservation {}
240);
241
242#[cfg(all(feature = "VNObservation", feature = "VNRequestRevisionProviding"))]
243extern_conformance!(
244 unsafe impl VNRequestRevisionProviding for VNHumanHandPoseObservation {}
245);
246
247#[cfg(feature = "VNObservation")]
248impl VNHumanHandPoseObservation {
249 extern_methods!(
250 #[cfg(feature = "VNTypes")]
251 #[unsafe(method(availableJointNames))]
253 #[unsafe(method_family = none)]
254 pub unsafe fn availableJointNames(
255 &self,
256 ) -> Retained<NSArray<VNHumanHandPoseObservationJointName>>;
257
258 #[cfg(feature = "VNTypes")]
259 #[unsafe(method(availableJointsGroupNames))]
261 #[unsafe(method_family = none)]
262 pub unsafe fn availableJointsGroupNames(
263 &self,
264 ) -> Retained<NSArray<VNHumanHandPoseObservationJointsGroupName>>;
265
266 #[cfg(all(
267 feature = "VNDetectedPoint",
268 feature = "VNGeometry",
269 feature = "VNTypes"
270 ))]
271 #[unsafe(method(recognizedPointForJointName:error:_))]
280 #[unsafe(method_family = none)]
281 pub unsafe fn recognizedPointForJointName_error(
282 &self,
283 joint_name: &VNHumanHandPoseObservationJointName,
284 ) -> Result<Retained<VNRecognizedPoint>, Retained<NSError>>;
285
286 #[cfg(all(
287 feature = "VNDetectedPoint",
288 feature = "VNGeometry",
289 feature = "VNTypes"
290 ))]
291 #[unsafe(method(recognizedPointsForJointsGroupName:error:_))]
303 #[unsafe(method_family = none)]
304 pub unsafe fn recognizedPointsForJointsGroupName_error(
305 &self,
306 joints_group_name: &VNHumanHandPoseObservationJointsGroupName,
307 ) -> Result<
308 Retained<NSDictionary<VNHumanHandPoseObservationJointName, VNRecognizedPoint>>,
309 Retained<NSError>,
310 >;
311
312 #[cfg(feature = "VNTypes")]
313 #[unsafe(method(chirality))]
315 #[unsafe(method_family = none)]
316 pub unsafe fn chirality(&self) -> VNChirality;
317 );
318}
319
320#[cfg(feature = "VNObservation")]
322impl VNHumanHandPoseObservation {
323 extern_methods!(
324 #[unsafe(method(new))]
325 #[unsafe(method_family = new)]
326 pub unsafe fn new() -> Retained<Self>;
327
328 #[unsafe(method(init))]
329 #[unsafe(method_family = init)]
330 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
331 );
332}
333
334extern_class!(
335 #[unsafe(super(VNImageBasedRequest, VNRequest, NSObject))]
341 #[derive(Debug, PartialEq, Eq, Hash)]
342 #[cfg(feature = "VNRequest")]
343 pub struct VNDetectHumanHandPoseRequest;
344);
345
346#[cfg(feature = "VNRequest")]
347extern_conformance!(
348 unsafe impl NSCopying for VNDetectHumanHandPoseRequest {}
349);
350
351#[cfg(feature = "VNRequest")]
352unsafe impl CopyingHelper for VNDetectHumanHandPoseRequest {
353 type Result = Self;
354}
355
356#[cfg(feature = "VNRequest")]
357extern_conformance!(
358 unsafe impl NSObjectProtocol for VNDetectHumanHandPoseRequest {}
359);
360
361#[cfg(feature = "VNRequest")]
362impl VNDetectHumanHandPoseRequest {
363 extern_methods!(
364 #[cfg(feature = "VNTypes")]
365 #[deprecated]
373 #[unsafe(method(supportedJointNamesForRevision:error:_))]
374 #[unsafe(method_family = none)]
375 pub unsafe fn supportedJointNamesForRevision_error(
376 revision: NSUInteger,
377 ) -> Result<Retained<NSArray<VNHumanHandPoseObservationJointName>>, Retained<NSError>>;
378
379 #[cfg(feature = "VNTypes")]
380 #[unsafe(method(supportedJointNamesAndReturnError:_))]
386 #[unsafe(method_family = none)]
387 pub unsafe fn supportedJointNamesAndReturnError(
388 &self,
389 ) -> Result<Retained<NSArray<VNHumanHandPoseObservationJointName>>, Retained<NSError>>;
390
391 #[cfg(feature = "VNTypes")]
392 #[deprecated]
400 #[unsafe(method(supportedJointsGroupNamesForRevision:error:_))]
401 #[unsafe(method_family = none)]
402 pub unsafe fn supportedJointsGroupNamesForRevision_error(
403 revision: NSUInteger,
404 ) -> Result<Retained<NSArray<VNHumanHandPoseObservationJointsGroupName>>, Retained<NSError>>;
405
406 #[cfg(feature = "VNTypes")]
407 #[unsafe(method(supportedJointsGroupNamesAndReturnError:_))]
413 #[unsafe(method_family = none)]
414 pub unsafe fn supportedJointsGroupNamesAndReturnError(
415 &self,
416 ) -> Result<Retained<NSArray<VNHumanHandPoseObservationJointsGroupName>>, Retained<NSError>>;
417
418 #[unsafe(method(maximumHandCount))]
422 #[unsafe(method_family = none)]
423 pub unsafe fn maximumHandCount(&self) -> NSUInteger;
424
425 #[unsafe(method(setMaximumHandCount:))]
427 #[unsafe(method_family = none)]
428 pub unsafe fn setMaximumHandCount(&self, maximum_hand_count: NSUInteger);
429
430 #[cfg(feature = "VNObservation")]
431 #[unsafe(method(results))]
433 #[unsafe(method_family = none)]
434 pub unsafe fn results(&self) -> Option<Retained<NSArray<VNHumanHandPoseObservation>>>;
435 );
436}
437
438#[cfg(feature = "VNRequest")]
440impl VNDetectHumanHandPoseRequest {
441 extern_methods!(
442 #[unsafe(method(init))]
444 #[unsafe(method_family = init)]
445 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
446
447 #[cfg(feature = "block2")]
448 #[unsafe(method(initWithCompletionHandler:))]
453 #[unsafe(method_family = init)]
454 pub unsafe fn initWithCompletionHandler(
455 this: Allocated<Self>,
456 completion_handler: VNRequestCompletionHandler,
457 ) -> Retained<Self>;
458 );
459}
460
461#[cfg(feature = "VNRequest")]
463impl VNDetectHumanHandPoseRequest {
464 extern_methods!(
465 #[unsafe(method(new))]
466 #[unsafe(method_family = new)]
467 pub unsafe fn new() -> Retained<Self>;
468 );
469}
470
471pub static VNDetectHumanHandPoseRequestRevision1: NSUInteger = 1;