objc2_ar_kit/generated/
ARWorldMap.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use 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    /// Object representing the mapping of a physical 3D space.
15    ///
16    /// ARWorldMap supports archiving and unarchiving across devices
17    /// and versions with NSDecodingFailurePolicySetErrorAndReturn, providing an error
18    /// if the map format is not supported.
19    ///
20    /// See also [Apple's documentation](https://developer.apple.com/documentation/arkit/arworldmap?language=objc)
21    #[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        /// A list of anchors in the map.
49        #[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        /// Setter for [`anchors`][Self::anchors].
55        #[unsafe(method(setAnchors:))]
56        #[unsafe(method_family = none)]
57        pub unsafe fn setAnchors(&self, anchors: &NSArray<ARAnchor>);
58
59        #[cfg(feature = "ARPointCloud")]
60        /// The feature points in the map.
61        #[unsafe(method(rawFeaturePoints))]
62        #[unsafe(method_family = none)]
63        pub unsafe fn rawFeaturePoints(&self) -> Retained<ARPointCloud>;
64
65        /// Unavailable
66        #[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}