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"))]
31unsafe impl ARAnchorCopying for ARBodyAnchor {}
32
33#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
34unsafe impl ARTrackable for ARBodyAnchor {}
35
36#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
37unsafe impl NSCoding for ARBodyAnchor {}
38
39#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
40unsafe impl NSCopying for ARBodyAnchor {}
41
42#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
43unsafe impl CopyingHelper for ARBodyAnchor {
44 type Result = Self;
45}
46
47#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
48unsafe impl NSObjectProtocol for ARBodyAnchor {}
49
50#[cfg(all(feature = "ARAnchor", feature = "objc2", feature = "objc2-foundation"))]
51unsafe impl NSSecureCoding for ARBodyAnchor {}
52
53#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
54impl ARBodyAnchor {
55 extern_methods!(
56 #[cfg(feature = "ARSkeleton")]
57 #[unsafe(method(skeleton))]
61 #[unsafe(method_family = none)]
62 pub unsafe fn skeleton(&self) -> Retained<ARSkeleton3D>;
63
64 #[cfg(feature = "objc2-core-foundation")]
65 #[unsafe(method(estimatedScaleFactor))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn estimatedScaleFactor(&self) -> CGFloat;
75 );
76}
77
78#[cfg(all(feature = "ARAnchor", feature = "objc2"))]
80impl ARBodyAnchor {
81 extern_methods!(
82 #[unsafe(method(init))]
84 #[unsafe(method_family = init)]
85 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
86
87 #[unsafe(method(new))]
88 #[unsafe(method_family = new)]
89 pub unsafe fn new() -> Retained<Self>;
90 );
91}