objc2_ar_kit/generated/
ARBodyAnchor.rs1use core::ptr::NonNull;
4#[cfg(feature = "objc2")]
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8#[cfg(feature = "objc2-foundation")]
9use objc2_foundation::*;
10
11use crate::*;
12
13#[cfg(feature = "objc2")]
14extern_class!(
15 #[unsafe(super(ARAnchor, NSObject))]
19 #[derive(Debug, PartialEq, Eq, Hash)]
20 #[cfg(all(feature = "ARAnchor", feature = "objc2"))]
21 pub struct ARBodyAnchor;
22);
23
24#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
25unsafe impl Send for ARBodyAnchor {}
26
27#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
28unsafe impl Sync for ARBodyAnchor {}
29
30#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
31extern_conformance!(
32 unsafe impl ARAnchorCopying for ARBodyAnchor {}
33);
34
35#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
36extern_conformance!(
37 unsafe impl ARTrackable for ARBodyAnchor {}
38);
39
40#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
41extern_conformance!(
42 unsafe impl NSCoding for ARBodyAnchor {}
43);
44
45#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
46extern_conformance!(
47 unsafe impl NSCopying for ARBodyAnchor {}
48);
49
50#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
51unsafe impl CopyingHelper for ARBodyAnchor {
52 type Result = Self;
53}
54
55#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
56extern_conformance!(
57 unsafe impl NSObjectProtocol for ARBodyAnchor {}
58);
59
60#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
61extern_conformance!(
62 unsafe impl NSSecureCoding for ARBodyAnchor {}
63);
64
65#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
66impl ARBodyAnchor {
67 extern_methods!(
68 #[cfg(feature = "ARSkeleton")]
69 #[unsafe(method(skeleton))]
79 #[unsafe(method_family = none)]
80 pub unsafe fn skeleton(&self) -> Retained<ARSkeleton3D>;
81
82 #[cfg(feature = "objc2-core-foundation")]
83 #[unsafe(method(estimatedScaleFactor))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn estimatedScaleFactor(&self) -> CGFloat;
99 );
100}
101
102#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
104impl ARBodyAnchor {
105 extern_methods!(
106 #[unsafe(method(init))]
108 #[unsafe(method_family = init)]
109 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
110
111 #[unsafe(method(new))]
112 #[unsafe(method_family = new)]
113 pub unsafe fn new() -> Retained<Self>;
114 );
115}