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")]
27unsafe impl NSObjectProtocol for ARBody2D {}
28
29#[cfg(feature = "objc2")]
30impl ARBody2D {
31    extern_methods!(
32        #[cfg(feature = "ARSkeleton")]
33        /// The body's skeleton.
34        #[unsafe(method(skeleton))]
35        #[unsafe(method_family = none)]
36        pub unsafe fn skeleton(&self) -> Retained<ARSkeleton2D>;
37
38        /// Unavailable
39        #[unsafe(method(init))]
40        #[unsafe(method_family = init)]
41        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
42
43        #[unsafe(method(new))]
44        #[unsafe(method_family = new)]
45        pub unsafe fn new() -> Retained<Self>;
46    );
47}