objc2_ar_kit/generated/
ARWorldMap.rs1use core::ffi::*;
4use core::ptr::NonNull;
5#[cfg(feature = "objc2")]
6use objc2::__framework_prelude::*;
7#[cfg(feature = "objc2-foundation")]
8use objc2_foundation::*;
9
10use crate::*;
11
12#[cfg(feature = "objc2")]
13extern_class!(
14 #[unsafe(super(NSObject))]
22 #[derive(Debug, PartialEq, Eq, Hash)]
23 #[cfg(feature = "objc2")]
24 pub struct ARWorldMap;
25);
26
27#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
28unsafe impl NSCoding for ARWorldMap {}
29
30#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
31unsafe impl NSCopying for ARWorldMap {}
32
33#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
34unsafe impl CopyingHelper for ARWorldMap {
35 type Result = Self;
36}
37
38#[cfg(feature = "objc2")]
39unsafe impl NSObjectProtocol for ARWorldMap {}
40
41#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
42unsafe impl NSSecureCoding for ARWorldMap {}
43
44#[cfg(feature = "objc2")]
45impl ARWorldMap {
46 extern_methods!(
47 #[cfg(all(feature = "ARAnchor", feature = "objc2-foundation"))]
48 #[unsafe(method(anchors))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn anchors(&self) -> Retained<NSArray<ARAnchor>>;
52
53 #[cfg(all(feature = "ARAnchor", feature = "objc2-foundation"))]
54 #[unsafe(method(setAnchors:))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn setAnchors(&self, anchors: &NSArray<ARAnchor>);
58
59 #[cfg(feature = "ARPointCloud")]
60 #[unsafe(method(rawFeaturePoints))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn rawFeaturePoints(&self) -> Retained<ARPointCloud>;
64
65 #[unsafe(method(init))]
67 #[unsafe(method_family = init)]
68 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
69
70 #[unsafe(method(new))]
71 #[unsafe(method_family = new)]
72 pub unsafe fn new() -> Retained<Self>;
73 );
74}