objc2_core_motion/generated/
CMRotationRateData.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(CMLogItem, NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 #[cfg(feature = "CMLogItem")]
14 pub struct CMRotationRateData;
15);
16
17#[cfg(feature = "CMLogItem")]
18unsafe impl NSCoding for CMRotationRateData {}
19
20#[cfg(feature = "CMLogItem")]
21unsafe impl NSCopying for CMRotationRateData {}
22
23#[cfg(feature = "CMLogItem")]
24unsafe impl CopyingHelper for CMRotationRateData {
25 type Result = Self;
26}
27
28#[cfg(feature = "CMLogItem")]
29unsafe impl NSObjectProtocol for CMRotationRateData {}
30
31#[cfg(feature = "CMLogItem")]
32unsafe impl NSSecureCoding for CMRotationRateData {}
33
34#[cfg(feature = "CMLogItem")]
35impl CMRotationRateData {
36 extern_methods!(
37 #[cfg(feature = "CMGyro")]
38 #[unsafe(method(rotationRate))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn rotationRate(&self) -> CMRotationRate;
41 );
42}
43
44#[cfg(feature = "CMLogItem")]
46impl CMRotationRateData {
47 extern_methods!(
48 #[unsafe(method(init))]
49 #[unsafe(method_family = init)]
50 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
51
52 #[unsafe(method(new))]
53 #[unsafe(method_family = new)]
54 pub unsafe fn new() -> Retained<Self>;
55 );
56}
57
58extern_class!(
59 #[unsafe(super(CMRotationRateData, CMLogItem, NSObject))]
61 #[derive(Debug, PartialEq, Eq, Hash)]
62 #[cfg(feature = "CMLogItem")]
63 pub struct CMRecordedRotationRateData;
64);
65
66#[cfg(feature = "CMLogItem")]
67unsafe impl NSCoding for CMRecordedRotationRateData {}
68
69#[cfg(feature = "CMLogItem")]
70unsafe impl NSCopying for CMRecordedRotationRateData {}
71
72#[cfg(feature = "CMLogItem")]
73unsafe impl CopyingHelper for CMRecordedRotationRateData {
74 type Result = Self;
75}
76
77#[cfg(feature = "CMLogItem")]
78unsafe impl NSObjectProtocol for CMRecordedRotationRateData {}
79
80#[cfg(feature = "CMLogItem")]
81unsafe impl NSSecureCoding for CMRecordedRotationRateData {}
82
83#[cfg(feature = "CMLogItem")]
84impl CMRecordedRotationRateData {
85 extern_methods!(
86 #[unsafe(method(startDate))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn startDate(&self) -> Retained<NSDate>;
89 );
90}
91
92#[cfg(feature = "CMLogItem")]
94impl CMRecordedRotationRateData {
95 extern_methods!(
96 #[unsafe(method(init))]
97 #[unsafe(method_family = init)]
98 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
99
100 #[unsafe(method(new))]
101 #[unsafe(method_family = new)]
102 pub unsafe fn new() -> Retained<Self>;
103 );
104}