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")]
86extern_conformance!(
87 unsafe impl NSObjectProtocol for ARSkeletonDefinition {}
88);
89
90#[cfg(feature = "objc2")]
91impl ARSkeletonDefinition {
92 extern_methods!(
93 #[unsafe(method(defaultBody3DSkeletonDefinition))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn defaultBody3DSkeletonDefinition() -> Retained<ARSkeletonDefinition>;
101
102 #[unsafe(method(defaultBody2DSkeletonDefinition))]
106 #[unsafe(method_family = none)]
107 pub unsafe fn defaultBody2DSkeletonDefinition() -> Retained<ARSkeletonDefinition>;
108
109 #[unsafe(method(jointCount))]
111 #[unsafe(method_family = none)]
112 pub unsafe fn jointCount(&self) -> NSUInteger;
113
114 #[cfg(feature = "objc2-foundation")]
115 #[unsafe(method(jointNames))]
117 #[unsafe(method_family = none)]
118 pub unsafe fn jointNames(&self) -> Retained<NSArray<NSString>>;
119
120 #[cfg(feature = "objc2-foundation")]
121 #[unsafe(method(parentIndices))]
127 #[unsafe(method_family = none)]
128 pub unsafe fn parentIndices(&self) -> Retained<NSArray<NSNumber>>;
129
130 #[cfg(feature = "ARSkeleton")]
131 #[unsafe(method(neutralBodySkeleton3D))]
135 #[unsafe(method_family = none)]
136 pub unsafe fn neutralBodySkeleton3D(&self) -> Option<Retained<ARSkeleton3D>>;
137
138 #[cfg(feature = "objc2-foundation")]
139 #[unsafe(method(indexForJointName:))]
148 #[unsafe(method_family = none)]
149 pub unsafe fn indexForJointName(&self, joint_name: &ARSkeletonJointName) -> NSUInteger;
150
151 #[unsafe(method(init))]
153 #[unsafe(method_family = init)]
154 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
155
156 #[unsafe(method(new))]
157 #[unsafe(method_family = new)]
158 pub unsafe fn new() -> Retained<Self>;
159 );
160}