objc2_vision/generated/
VNDetectHorizonRequest.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(VNImageBasedRequest, VNRequest, NSObject))]
17 #[derive(Debug, PartialEq, Eq, Hash)]
18 #[cfg(feature = "VNRequest")]
19 pub struct VNDetectHorizonRequest;
20);
21
22#[cfg(feature = "VNRequest")]
23unsafe impl NSCopying for VNDetectHorizonRequest {}
24
25#[cfg(feature = "VNRequest")]
26unsafe impl CopyingHelper for VNDetectHorizonRequest {
27 type Result = Self;
28}
29
30#[cfg(feature = "VNRequest")]
31unsafe impl NSObjectProtocol for VNDetectHorizonRequest {}
32
33#[cfg(feature = "VNRequest")]
34impl VNDetectHorizonRequest {
35 extern_methods!(
36 #[cfg(feature = "VNObservation")]
37 #[unsafe(method(results))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn results(&self) -> Option<Retained<NSArray<VNHorizonObservation>>>;
41 );
42}
43
44#[cfg(feature = "VNRequest")]
46impl VNDetectHorizonRequest {
47 extern_methods!(
48 #[unsafe(method(init))]
50 #[unsafe(method_family = init)]
51 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
52
53 #[cfg(feature = "block2")]
54 #[unsafe(method(initWithCompletionHandler:))]
59 #[unsafe(method_family = init)]
60 pub unsafe fn initWithCompletionHandler(
61 this: Allocated<Self>,
62 completion_handler: VNRequestCompletionHandler,
63 ) -> Retained<Self>;
64 );
65}
66
67#[cfg(feature = "VNRequest")]
69impl VNDetectHorizonRequest {
70 extern_methods!(
71 #[unsafe(method(new))]
72 #[unsafe(method_family = new)]
73 pub unsafe fn new() -> Retained<Self>;
74 );
75}
76
77pub static VNDetectHorizonRequestRevision1: NSUInteger = 1;