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