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        #[unsafe(method(skeleton))]
37        #[unsafe(method_family = none)]
38        pub unsafe fn skeleton(&self) -> Retained<ARSkeleton2D>;
39
40        /// Unavailable
41        #[unsafe(method(init))]
42        #[unsafe(method_family = init)]
43        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
44
45        #[unsafe(method(new))]
46        #[unsafe(method_family = new)]
47        pub unsafe fn new() -> Retained<Self>;
48    );
49}