objc2_model_io/generated/
MDLTransform.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_protocol!(
11 #[cfg(feature = "MDLTypes")]
20 pub unsafe trait MDLTransformComponent: MDLComponent {
21 #[unsafe(method(resetsTransform))]
23 #[unsafe(method_family = none)]
24 unsafe fn resetsTransform(&self) -> bool;
25
26 #[unsafe(method(setResetsTransform:))]
28 #[unsafe(method_family = none)]
29 unsafe fn setResetsTransform(&self, resets_transform: bool);
30
31 #[unsafe(method(minimumTime))]
33 #[unsafe(method_family = none)]
34 unsafe fn minimumTime(&self) -> NSTimeInterval;
35
36 #[unsafe(method(maximumTime))]
37 #[unsafe(method_family = none)]
38 unsafe fn maximumTime(&self) -> NSTimeInterval;
39
40 #[unsafe(method(keyTimes))]
43 #[unsafe(method_family = none)]
44 unsafe fn keyTimes(&self) -> Retained<NSArray<NSNumber>>;
45 }
46);
47
48extern_class!(
49 #[unsafe(super(NSObject))]
62 #[derive(Debug, PartialEq, Eq, Hash)]
63 pub struct MDLTransform;
64);
65
66#[cfg(feature = "MDLTypes")]
67unsafe impl MDLComponent for MDLTransform {}
68
69#[cfg(feature = "MDLTypes")]
70unsafe impl MDLTransformComponent for MDLTransform {}
71
72unsafe impl NSCopying for MDLTransform {}
73
74unsafe impl CopyingHelper for MDLTransform {
75 type Result = Self;
76}
77
78unsafe impl NSObjectProtocol for MDLTransform {}
79
80impl MDLTransform {
81 extern_methods!(
82 #[unsafe(method(init))]
84 #[unsafe(method_family = init)]
85 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
86
87 #[deprecated]
88 #[unsafe(method(initWithIdentity))]
89 #[unsafe(method_family = init)]
90 pub unsafe fn initWithIdentity(this: Allocated<Self>) -> Retained<Self>;
91
92 #[cfg(feature = "MDLTypes")]
93 #[unsafe(method(initWithTransformComponent:))]
94 #[unsafe(method_family = init)]
95 pub unsafe fn initWithTransformComponent(
96 this: Allocated<Self>,
97 component: &ProtocolObject<dyn MDLTransformComponent>,
98 ) -> Retained<Self>;
99
100 #[cfg(feature = "MDLTypes")]
101 #[unsafe(method(initWithTransformComponent:resetsTransform:))]
102 #[unsafe(method_family = init)]
103 pub unsafe fn initWithTransformComponent_resetsTransform(
104 this: Allocated<Self>,
105 component: &ProtocolObject<dyn MDLTransformComponent>,
106 resets_transform: bool,
107 ) -> Retained<Self>;
108
109 #[unsafe(method(setIdentity))]
111 #[unsafe(method_family = none)]
112 pub unsafe fn setIdentity(&self);
113 );
114}
115
116impl MDLTransform {
118 extern_methods!(
119 #[unsafe(method(new))]
120 #[unsafe(method_family = new)]
121 pub unsafe fn new() -> Retained<Self>;
122 );
123}