objc2_vision/generated/
VNDetectHumanRectanglesRequest.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(VNImageBasedRequest, VNRequest, NSObject))]
18 #[derive(Debug, PartialEq, Eq, Hash)]
19 #[cfg(feature = "VNRequest")]
20 pub struct VNDetectHumanRectanglesRequest;
21);
22
23#[cfg(feature = "VNRequest")]
24unsafe impl NSCopying for VNDetectHumanRectanglesRequest {}
25
26#[cfg(feature = "VNRequest")]
27unsafe impl CopyingHelper for VNDetectHumanRectanglesRequest {
28 type Result = Self;
29}
30
31#[cfg(feature = "VNRequest")]
32unsafe impl NSObjectProtocol for VNDetectHumanRectanglesRequest {}
33
34#[cfg(feature = "VNRequest")]
35impl VNDetectHumanRectanglesRequest {
36 extern_methods!(
37 #[unsafe(method(upperBodyOnly))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn upperBodyOnly(&self) -> bool;
41
42 #[unsafe(method(setUpperBodyOnly:))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn setUpperBodyOnly(&self, upper_body_only: bool);
46
47 #[cfg(feature = "VNObservation")]
48 #[unsafe(method(results))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn results(&self) -> Option<Retained<NSArray<VNHumanObservation>>>;
52 );
53}
54
55#[cfg(feature = "VNRequest")]
57impl VNDetectHumanRectanglesRequest {
58 extern_methods!(
59 #[unsafe(method(init))]
61 #[unsafe(method_family = init)]
62 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
63
64 #[cfg(feature = "block2")]
65 #[unsafe(method(initWithCompletionHandler:))]
70 #[unsafe(method_family = init)]
71 pub unsafe fn initWithCompletionHandler(
72 this: Allocated<Self>,
73 completion_handler: VNRequestCompletionHandler,
74 ) -> Retained<Self>;
75 );
76}
77
78#[cfg(feature = "VNRequest")]
80impl VNDetectHumanRectanglesRequest {
81 extern_methods!(
82 #[unsafe(method(new))]
83 #[unsafe(method_family = new)]
84 pub unsafe fn new() -> Retained<Self>;
85 );
86}
87
88pub static VNDetectHumanRectanglesRequestRevision1: NSUInteger = 1;
92
93pub static VNDetectHumanRectanglesRequestRevision2: NSUInteger = 2;