objc2_ar_kit/generated/
ARSkeletonDefinition.rs1use core::ptr::NonNull;
4#[cfg(feature = "objc2")]
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-foundation")]
7use objc2_foundation::*;
8
9use crate::*;
10
11#[cfg(feature = "objc2-foundation")]
14pub type ARSkeletonJointName = NSString;
15
16extern "C" {
17 #[cfg(feature = "objc2-foundation")]
19 pub static ARSkeletonJointNameRoot: &'static ARSkeletonJointName;
20}
21
22extern "C" {
23 #[cfg(feature = "objc2-foundation")]
25 pub static ARSkeletonJointNameHead: &'static ARSkeletonJointName;
26}
27
28extern "C" {
29 #[cfg(feature = "objc2-foundation")]
31 pub static ARSkeletonJointNameLeftHand: &'static ARSkeletonJointName;
32}
33
34extern "C" {
35 #[cfg(feature = "objc2-foundation")]
37 pub static ARSkeletonJointNameRightHand: &'static ARSkeletonJointName;
38}
39
40extern "C" {
41 #[cfg(feature = "objc2-foundation")]
43 pub static ARSkeletonJointNameLeftFoot: &'static ARSkeletonJointName;
44}
45
46extern "C" {
47 #[cfg(feature = "objc2-foundation")]
49 pub static ARSkeletonJointNameRightFoot: &'static ARSkeletonJointName;
50}
51
52extern "C" {
53 #[cfg(feature = "objc2-foundation")]
55 pub static ARSkeletonJointNameLeftShoulder: &'static ARSkeletonJointName;
56}
57
58extern "C" {
59 #[cfg(feature = "objc2-foundation")]
61 pub static ARSkeletonJointNameRightShoulder: &'static ARSkeletonJointName;
62}
63
64#[cfg(feature = "objc2")]
65extern_class!(
66 #[unsafe(super(NSObject))]
74 #[derive(Debug, PartialEq, Eq, Hash)]
75 #[cfg(feature = "objc2")]
76 pub struct ARSkeletonDefinition;
77);
78
79#[cfg(feature = "objc2")]
80unsafe impl Send for ARSkeletonDefinition {}
81
82#[cfg(feature = "objc2")]
83unsafe impl Sync for ARSkeletonDefinition {}
84
85#[cfg(feature = "objc2")]
86unsafe impl NSObjectProtocol for ARSkeletonDefinition {}
87
88#[cfg(feature = "objc2")]
89impl ARSkeletonDefinition {
90 extern_methods!(
91 #[unsafe(method(defaultBody3DSkeletonDefinition))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn defaultBody3DSkeletonDefinition() -> Retained<ARSkeletonDefinition>;
99
100 #[unsafe(method(defaultBody2DSkeletonDefinition))]
104 #[unsafe(method_family = none)]
105 pub unsafe fn defaultBody2DSkeletonDefinition() -> Retained<ARSkeletonDefinition>;
106
107 #[unsafe(method(jointCount))]
109 #[unsafe(method_family = none)]
110 pub unsafe fn jointCount(&self) -> NSUInteger;
111
112 #[cfg(feature = "objc2-foundation")]
113 #[unsafe(method(jointNames))]
115 #[unsafe(method_family = none)]
116 pub unsafe fn jointNames(&self) -> Retained<NSArray<NSString>>;
117
118 #[cfg(feature = "objc2-foundation")]
119 #[unsafe(method(parentIndices))]
125 #[unsafe(method_family = none)]
126 pub unsafe fn parentIndices(&self) -> Retained<NSArray<NSNumber>>;
127
128 #[cfg(feature = "ARSkeleton")]
129 #[unsafe(method(neutralBodySkeleton3D))]
133 #[unsafe(method_family = none)]
134 pub unsafe fn neutralBodySkeleton3D(&self) -> Option<Retained<ARSkeleton3D>>;
135
136 #[cfg(feature = "objc2-foundation")]
137 #[unsafe(method(indexForJointName:))]
146 #[unsafe(method_family = none)]
147 pub unsafe fn indexForJointName(&self, joint_name: &ARSkeletonJointName) -> NSUInteger;
148
149 #[unsafe(method(init))]
151 #[unsafe(method_family = init)]
152 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
153
154 #[unsafe(method(new))]
155 #[unsafe(method_family = new)]
156 pub unsafe fn new() -> Retained<Self>;
157 );
158}