objc2_ar_kit/generated/
ARMeshAnchor.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/armeshanchor?language=objc)
14    #[unsafe(super(ARAnchor, NSObject))]
15    #[derive(Debug, PartialEq, Eq, Hash)]
16    #[cfg(all(feature = "ARAnchor", feature = "objc2"))]
17    pub struct ARMeshAnchor;
18);
19
20#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
21unsafe impl Send for ARMeshAnchor {}
22
23#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
24unsafe impl Sync for ARMeshAnchor {}
25
26#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
27unsafe impl ARAnchorCopying for ARMeshAnchor {}
28
29#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
30unsafe impl NSCoding for ARMeshAnchor {}
31
32#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
33unsafe impl NSCopying for ARMeshAnchor {}
34
35#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
36unsafe impl CopyingHelper for ARMeshAnchor {
37    type Result = Self;
38}
39
40#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
41unsafe impl NSObjectProtocol for ARMeshAnchor {}
42
43#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
44unsafe impl NSSecureCoding for ARMeshAnchor {}
45
46#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
47impl ARMeshAnchor {
48    extern_methods!(
49        #[cfg(feature = "ARMeshGeometry")]
50        /// Geometry of the mesh in anchor's coordinate system.
51        #[unsafe(method(geometry))]
52        #[unsafe(method_family = none)]
53        pub unsafe fn geometry(&self) -> Retained<ARMeshGeometry>;
54    );
55}
56
57/// Methods declared on superclass `ARAnchor`.
58#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
59impl ARMeshAnchor {
60    extern_methods!(
61        /// Unavailable
62        #[unsafe(method(init))]
63        #[unsafe(method_family = init)]
64        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
65
66        #[unsafe(method(new))]
67        #[unsafe(method_family = new)]
68        pub unsafe fn new() -> Retained<Self>;
69    );
70}