objc2_model_io/generated/
MDLValueTypes.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct MDLMatrix4x4Array;
15);
16
17unsafe impl NSCopying for MDLMatrix4x4Array {}
18
19unsafe impl CopyingHelper for MDLMatrix4x4Array {
20 type Result = Self;
21}
22
23unsafe impl NSObjectProtocol for MDLMatrix4x4Array {}
24
25impl MDLMatrix4x4Array {
26 extern_methods!(
27 #[unsafe(method(elementCount))]
28 #[unsafe(method_family = none)]
29 pub unsafe fn elementCount(&self) -> NSUInteger;
30
31 #[cfg(feature = "MDLTypes")]
32 #[unsafe(method(precision))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn precision(&self) -> MDLDataPrecision;
35
36 #[unsafe(method(clear))]
37 #[unsafe(method_family = none)]
38 pub unsafe fn clear(&self);
39
40 #[unsafe(method(initWithElementCount:))]
41 #[unsafe(method_family = init)]
42 pub unsafe fn initWithElementCount(
43 this: Allocated<Self>,
44 array_element_count: NSUInteger,
45 ) -> Retained<Self>;
46 );
47}
48
49impl MDLMatrix4x4Array {
51 extern_methods!(
52 #[unsafe(method(init))]
53 #[unsafe(method_family = init)]
54 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
55
56 #[unsafe(method(new))]
57 #[unsafe(method_family = new)]
58 pub unsafe fn new() -> Retained<Self>;
59 );
60}