objc2_vision/generated/
VNDetectedPoint.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13 #[unsafe(super(VNPoint, NSObject))]
19 #[derive(Debug, PartialEq, Eq, Hash)]
20 #[cfg(feature = "VNGeometry")]
21 pub struct VNDetectedPoint;
22);
23
24#[cfg(feature = "VNGeometry")]
25extern_conformance!(
26 unsafe impl NSCoding for VNDetectedPoint {}
27);
28
29#[cfg(feature = "VNGeometry")]
30extern_conformance!(
31 unsafe impl NSCopying for VNDetectedPoint {}
32);
33
34#[cfg(feature = "VNGeometry")]
35unsafe impl CopyingHelper for VNDetectedPoint {
36 type Result = Self;
37}
38
39#[cfg(feature = "VNGeometry")]
40extern_conformance!(
41 unsafe impl NSObjectProtocol for VNDetectedPoint {}
42);
43
44#[cfg(feature = "VNGeometry")]
45extern_conformance!(
46 unsafe impl NSSecureCoding for VNDetectedPoint {}
47);
48
49#[cfg(feature = "VNGeometry")]
50impl VNDetectedPoint {
51 extern_methods!(
52 #[unsafe(method(new))]
53 #[unsafe(method_family = new)]
54 pub unsafe fn new() -> Retained<Self>;
55
56 #[unsafe(method(init))]
57 #[unsafe(method_family = init)]
58 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
59
60 #[unsafe(method(initWithX:y:))]
61 #[unsafe(method_family = init)]
62 pub unsafe fn initWithX_y(
63 this: Allocated<Self>,
64 x: c_double,
65 y: c_double,
66 ) -> Retained<Self>;
67
68 #[cfg(feature = "objc2-core-foundation")]
69 #[unsafe(method(initWithLocation:))]
70 #[unsafe(method_family = init)]
71 pub unsafe fn initWithLocation(this: Allocated<Self>, location: CGPoint) -> Retained<Self>;
72
73 #[cfg(feature = "VNTypes")]
74 #[unsafe(method(confidence))]
76 #[unsafe(method_family = none)]
77 pub unsafe fn confidence(&self) -> VNConfidence;
78 );
79}
80
81extern_class!(
82 #[unsafe(super(VNDetectedPoint, VNPoint, NSObject))]
88 #[derive(Debug, PartialEq, Eq, Hash)]
89 #[cfg(feature = "VNGeometry")]
90 pub struct VNRecognizedPoint;
91);
92
93#[cfg(feature = "VNGeometry")]
94extern_conformance!(
95 unsafe impl NSCoding for VNRecognizedPoint {}
96);
97
98#[cfg(feature = "VNGeometry")]
99extern_conformance!(
100 unsafe impl NSCopying for VNRecognizedPoint {}
101);
102
103#[cfg(feature = "VNGeometry")]
104unsafe impl CopyingHelper for VNRecognizedPoint {
105 type Result = Self;
106}
107
108#[cfg(feature = "VNGeometry")]
109extern_conformance!(
110 unsafe impl NSObjectProtocol for VNRecognizedPoint {}
111);
112
113#[cfg(feature = "VNGeometry")]
114extern_conformance!(
115 unsafe impl NSSecureCoding for VNRecognizedPoint {}
116);
117
118#[cfg(feature = "VNGeometry")]
119impl VNRecognizedPoint {
120 extern_methods!(
121 #[cfg(feature = "VNTypes")]
122 #[unsafe(method(identifier))]
126 #[unsafe(method_family = none)]
127 pub unsafe fn identifier(&self) -> Retained<VNRecognizedPointKey>;
128 );
129}
130
131#[cfg(feature = "VNGeometry")]
133impl VNRecognizedPoint {
134 extern_methods!(
135 #[unsafe(method(new))]
136 #[unsafe(method_family = new)]
137 pub unsafe fn new() -> Retained<Self>;
138
139 #[unsafe(method(init))]
140 #[unsafe(method_family = init)]
141 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
142
143 #[unsafe(method(initWithX:y:))]
144 #[unsafe(method_family = init)]
145 pub unsafe fn initWithX_y(
146 this: Allocated<Self>,
147 x: c_double,
148 y: c_double,
149 ) -> Retained<Self>;
150
151 #[cfg(feature = "objc2-core-foundation")]
152 #[unsafe(method(initWithLocation:))]
153 #[unsafe(method_family = init)]
154 pub unsafe fn initWithLocation(this: Allocated<Self>, location: CGPoint) -> Retained<Self>;
155 );
156}