objc2_ar_kit/generated/
ARPointCloud.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4#[cfg(feature = "objc2")]
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-foundation")]
7use objc2_foundation::*;
8
9use crate::*;
10
11#[cfg(feature = "objc2")]
12extern_class!(
13    /// [Apple's documentation](https://developer.apple.com/documentation/arkit/arpointcloud?language=objc)
14    #[unsafe(super(NSObject))]
15    #[derive(Debug, PartialEq, Eq, Hash)]
16    #[cfg(feature = "objc2")]
17    pub struct ARPointCloud;
18);
19
20#[cfg(feature = "objc2")]
21unsafe impl Send for ARPointCloud {}
22
23#[cfg(feature = "objc2")]
24unsafe impl Sync for ARPointCloud {}
25
26#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
27extern_conformance!(
28    unsafe impl NSCoding for ARPointCloud {}
29);
30
31#[cfg(feature = "objc2")]
32extern_conformance!(
33    unsafe impl NSObjectProtocol for ARPointCloud {}
34);
35
36#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
37extern_conformance!(
38    unsafe impl NSSecureCoding for ARPointCloud {}
39);
40
41#[cfg(feature = "objc2")]
42impl ARPointCloud {
43    extern_methods!(
44        /// The number of points in the point cloud.
45        ///
46        /// This property is not atomic.
47        ///
48        /// # Safety
49        ///
50        /// This might not be thread-safe.
51        #[unsafe(method(count))]
52        #[unsafe(method_family = none)]
53        pub unsafe fn count(&self) -> NSUInteger;
54
55        /// The 3D point identifiers comprising the point cloud.
56        ///
57        /// This property is not atomic.
58        ///
59        /// # Safety
60        ///
61        /// This might not be thread-safe.
62        #[unsafe(method(identifiers))]
63        #[unsafe(method_family = none)]
64        pub unsafe fn identifiers(&self) -> NonNull<u64>;
65
66        /// Unavailable
67        #[unsafe(method(init))]
68        #[unsafe(method_family = init)]
69        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
70
71        #[unsafe(method(new))]
72        #[unsafe(method_family = new)]
73        pub unsafe fn new() -> Retained<Self>;
74    );
75}