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"))]
28extern_conformance!(
29    unsafe impl NSCoding for ARWorldMap {}
30);
31
32#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
33extern_conformance!(
34    unsafe impl NSCopying for ARWorldMap {}
35);
36
37#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
38unsafe impl CopyingHelper for ARWorldMap {
39    type Result = Self;
40}
41
42#[cfg(feature = "objc2")]
43extern_conformance!(
44    unsafe impl NSObjectProtocol for ARWorldMap {}
45);
46
47#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
48extern_conformance!(
49    unsafe impl NSSecureCoding for ARWorldMap {}
50);
51
52#[cfg(feature = "objc2")]
53impl ARWorldMap {
54    extern_methods!(
55        #[cfg(all(feature = "ARAnchor", feature = "objc2-foundation"))]
56        /// A list of anchors in the map.
57        #[unsafe(method(anchors))]
58        #[unsafe(method_family = none)]
59        pub unsafe fn anchors(&self) -> Retained<NSArray<ARAnchor>>;
60
61        #[cfg(all(feature = "ARAnchor", feature = "objc2-foundation"))]
62        /// Setter for [`anchors`][Self::anchors].
63        ///
64        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
65        #[unsafe(method(setAnchors:))]
66        #[unsafe(method_family = none)]
67        pub unsafe fn setAnchors(&self, anchors: &NSArray<ARAnchor>);
68
69        #[cfg(feature = "ARPointCloud")]
70        /// The feature points in the map.
71        #[unsafe(method(rawFeaturePoints))]
72        #[unsafe(method_family = none)]
73        pub unsafe fn rawFeaturePoints(&self) -> Retained<ARPointCloud>;
74
75        /// Unavailable
76        #[unsafe(method(init))]
77        #[unsafe(method_family = init)]
78        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
79
80        #[unsafe(method(new))]
81        #[unsafe(method_family = new)]
82        pub unsafe fn new() -> Retained<Self>;
83    );
84}