objc2_ar_kit/generated/
ARPlaneGeometry.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    /// Object representing the geometry of a plane.
14    ///
15    /// The plane geometry will have a growing number of triangles
16    /// and vertices updated from frame to frame.
17    ///
18    /// See also [Apple's documentation](https://developer.apple.com/documentation/arkit/arplanegeometry?language=objc)
19    #[unsafe(super(NSObject))]
20    #[derive(Debug, PartialEq, Eq, Hash)]
21    #[cfg(feature = "objc2")]
22    pub struct ARPlaneGeometry;
23);
24
25#[cfg(feature = "objc2")]
26unsafe impl Send for ARPlaneGeometry {}
27
28#[cfg(feature = "objc2")]
29unsafe impl Sync for ARPlaneGeometry {}
30
31#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
32extern_conformance!(
33    unsafe impl NSCoding for ARPlaneGeometry {}
34);
35
36#[cfg(feature = "objc2")]
37extern_conformance!(
38    unsafe impl NSObjectProtocol for ARPlaneGeometry {}
39);
40
41#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
42extern_conformance!(
43    unsafe impl NSSecureCoding for ARPlaneGeometry {}
44);
45
46#[cfg(feature = "objc2")]
47impl ARPlaneGeometry {
48    extern_methods!(
49        /// The number of mesh vertices of the geometry.
50        ///
51        /// This property is not atomic.
52        ///
53        /// # Safety
54        ///
55        /// This might not be thread-safe.
56        #[unsafe(method(vertexCount))]
57        #[unsafe(method_family = none)]
58        pub unsafe fn vertexCount(&self) -> NSUInteger;
59
60        /// The number of texture coordinates of the geometry.
61        ///
62        /// This property is not atomic.
63        ///
64        /// # Safety
65        ///
66        /// This might not be thread-safe.
67        #[unsafe(method(textureCoordinateCount))]
68        #[unsafe(method_family = none)]
69        pub unsafe fn textureCoordinateCount(&self) -> NSUInteger;
70
71        /// The number of triangles of the geometry.
72        ///
73        /// This property is not atomic.
74        ///
75        /// # Safety
76        ///
77        /// This might not be thread-safe.
78        #[unsafe(method(triangleCount))]
79        #[unsafe(method_family = none)]
80        pub unsafe fn triangleCount(&self) -> NSUInteger;
81
82        /// The triangle indices of the geometry.
83        ///
84        /// This property is not atomic.
85        ///
86        /// # Safety
87        ///
88        /// This might not be thread-safe.
89        #[unsafe(method(triangleIndices))]
90        #[unsafe(method_family = none)]
91        pub unsafe fn triangleIndices(&self) -> NonNull<i16>;
92
93        /// The number of boundary vertices of the geometry.
94        ///
95        /// This property is not atomic.
96        ///
97        /// # Safety
98        ///
99        /// This might not be thread-safe.
100        #[unsafe(method(boundaryVertexCount))]
101        #[unsafe(method_family = none)]
102        pub unsafe fn boundaryVertexCount(&self) -> NSUInteger;
103
104        /// Unavailable
105        #[unsafe(method(init))]
106        #[unsafe(method_family = init)]
107        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
108
109        #[unsafe(method(new))]
110        #[unsafe(method_family = new)]
111        pub unsafe fn new() -> Retained<Self>;
112    );
113}