objc2_ar_kit/generated/
ARBody2D.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
7use crate::*;
8
9#[cfg(feature = "objc2")]
10extern_class!(
11    /// Representation of a body in 2D.
12    ///
13    /// See also [Apple's documentation](https://developer.apple.com/documentation/arkit/arbody2d?language=objc)
14    #[unsafe(super(NSObject))]
15    #[derive(Debug, PartialEq, Eq, Hash)]
16    #[cfg(feature = "objc2")]
17    pub struct ARBody2D;
18);
19
20#[cfg(feature = "objc2")]
21unsafe impl Send for ARBody2D {}
22
23#[cfg(feature = "objc2")]
24unsafe impl Sync for ARBody2D {}
25
26#[cfg(feature = "objc2")]
27extern_conformance!(
28    unsafe impl NSObjectProtocol for ARBody2D {}
29);
30
31#[cfg(feature = "objc2")]
32impl ARBody2D {
33    extern_methods!(
34        #[cfg(feature = "ARSkeleton")]
35        /// The body's skeleton.
36        ///
37        /// This property is not atomic.
38        ///
39        /// # Safety
40        ///
41        /// This might not be thread-safe.
42        #[unsafe(method(skeleton))]
43        #[unsafe(method_family = none)]
44        pub unsafe fn skeleton(&self) -> Retained<ARSkeleton2D>;
45
46        /// Unavailable
47        #[unsafe(method(init))]
48        #[unsafe(method_family = init)]
49        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
50
51        #[unsafe(method(new))]
52        #[unsafe(method_family = new)]
53        pub unsafe fn new() -> Retained<Self>;
54    );
55}