]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
1 | #[cfg(feature = "Devices_Sensors_Custom")] |
2 | pub mod Custom; | |
3 | pub type Accelerometer = *mut ::core::ffi::c_void; | |
4 | pub type AccelerometerDataThreshold = *mut ::core::ffi::c_void; | |
5 | pub type AccelerometerReading = *mut ::core::ffi::c_void; | |
6 | pub type AccelerometerReadingChangedEventArgs = *mut ::core::ffi::c_void; | |
04454e1e | 7 | #[doc = "*Required features: `\"Devices_Sensors\"`*"] |
5e7ed085 FG |
8 | #[repr(transparent)] |
9 | pub struct AccelerometerReadingType(pub i32); | |
10 | impl AccelerometerReadingType { | |
11 | pub const Standard: Self = Self(0i32); | |
12 | pub const Linear: Self = Self(1i32); | |
13 | pub const Gravity: Self = Self(2i32); | |
14 | } | |
15 | impl ::core::marker::Copy for AccelerometerReadingType {} | |
16 | impl ::core::clone::Clone for AccelerometerReadingType { | |
17 | fn clone(&self) -> Self { | |
18 | *self | |
19 | } | |
20 | } | |
21 | pub type AccelerometerShakenEventArgs = *mut ::core::ffi::c_void; | |
22 | pub type ActivitySensor = *mut ::core::ffi::c_void; | |
23 | pub type ActivitySensorReading = *mut ::core::ffi::c_void; | |
24 | pub type ActivitySensorReadingChangeReport = *mut ::core::ffi::c_void; | |
25 | pub type ActivitySensorReadingChangedEventArgs = *mut ::core::ffi::c_void; | |
04454e1e | 26 | #[doc = "*Required features: `\"Devices_Sensors\"`*"] |
5e7ed085 FG |
27 | #[repr(transparent)] |
28 | pub struct ActivitySensorReadingConfidence(pub i32); | |
29 | impl ActivitySensorReadingConfidence { | |
30 | pub const High: Self = Self(0i32); | |
31 | pub const Low: Self = Self(1i32); | |
32 | } | |
33 | impl ::core::marker::Copy for ActivitySensorReadingConfidence {} | |
34 | impl ::core::clone::Clone for ActivitySensorReadingConfidence { | |
35 | fn clone(&self) -> Self { | |
36 | *self | |
37 | } | |
38 | } | |
39 | pub type ActivitySensorTriggerDetails = *mut ::core::ffi::c_void; | |
04454e1e | 40 | #[doc = "*Required features: `\"Devices_Sensors\"`*"] |
5e7ed085 FG |
41 | #[repr(transparent)] |
42 | pub struct ActivityType(pub i32); | |
43 | impl ActivityType { | |
44 | pub const Unknown: Self = Self(0i32); | |
45 | pub const Idle: Self = Self(1i32); | |
46 | pub const Stationary: Self = Self(2i32); | |
47 | pub const Fidgeting: Self = Self(3i32); | |
48 | pub const Walking: Self = Self(4i32); | |
49 | pub const Running: Self = Self(5i32); | |
50 | pub const InVehicle: Self = Self(6i32); | |
51 | pub const Biking: Self = Self(7i32); | |
52 | } | |
53 | impl ::core::marker::Copy for ActivityType {} | |
54 | impl ::core::clone::Clone for ActivityType { | |
55 | fn clone(&self) -> Self { | |
56 | *self | |
57 | } | |
58 | } | |
59 | pub type Altimeter = *mut ::core::ffi::c_void; | |
60 | pub type AltimeterReading = *mut ::core::ffi::c_void; | |
61 | pub type AltimeterReadingChangedEventArgs = *mut ::core::ffi::c_void; | |
62 | pub type Barometer = *mut ::core::ffi::c_void; | |
63 | pub type BarometerDataThreshold = *mut ::core::ffi::c_void; | |
64 | pub type BarometerReading = *mut ::core::ffi::c_void; | |
65 | pub type BarometerReadingChangedEventArgs = *mut ::core::ffi::c_void; | |
66 | pub type Compass = *mut ::core::ffi::c_void; | |
67 | pub type CompassDataThreshold = *mut ::core::ffi::c_void; | |
68 | pub type CompassReading = *mut ::core::ffi::c_void; | |
69 | pub type CompassReadingChangedEventArgs = *mut ::core::ffi::c_void; | |
70 | pub type Gyrometer = *mut ::core::ffi::c_void; | |
71 | pub type GyrometerDataThreshold = *mut ::core::ffi::c_void; | |
72 | pub type GyrometerReading = *mut ::core::ffi::c_void; | |
73 | pub type GyrometerReadingChangedEventArgs = *mut ::core::ffi::c_void; | |
74 | pub type HingeAngleReading = *mut ::core::ffi::c_void; | |
75 | pub type HingeAngleSensor = *mut ::core::ffi::c_void; | |
76 | pub type HingeAngleSensorReadingChangedEventArgs = *mut ::core::ffi::c_void; | |
77 | pub type ISensorDataThreshold = *mut ::core::ffi::c_void; | |
78 | pub type Inclinometer = *mut ::core::ffi::c_void; | |
79 | pub type InclinometerDataThreshold = *mut ::core::ffi::c_void; | |
80 | pub type InclinometerReading = *mut ::core::ffi::c_void; | |
81 | pub type InclinometerReadingChangedEventArgs = *mut ::core::ffi::c_void; | |
82 | pub type LightSensor = *mut ::core::ffi::c_void; | |
83 | pub type LightSensorDataThreshold = *mut ::core::ffi::c_void; | |
84 | pub type LightSensorReading = *mut ::core::ffi::c_void; | |
85 | pub type LightSensorReadingChangedEventArgs = *mut ::core::ffi::c_void; | |
86 | pub type Magnetometer = *mut ::core::ffi::c_void; | |
04454e1e | 87 | #[doc = "*Required features: `\"Devices_Sensors\"`*"] |
5e7ed085 FG |
88 | #[repr(transparent)] |
89 | pub struct MagnetometerAccuracy(pub i32); | |
90 | impl MagnetometerAccuracy { | |
91 | pub const Unknown: Self = Self(0i32); | |
92 | pub const Unreliable: Self = Self(1i32); | |
93 | pub const Approximate: Self = Self(2i32); | |
94 | pub const High: Self = Self(3i32); | |
95 | } | |
96 | impl ::core::marker::Copy for MagnetometerAccuracy {} | |
97 | impl ::core::clone::Clone for MagnetometerAccuracy { | |
98 | fn clone(&self) -> Self { | |
99 | *self | |
100 | } | |
101 | } | |
102 | pub type MagnetometerDataThreshold = *mut ::core::ffi::c_void; | |
103 | pub type MagnetometerReading = *mut ::core::ffi::c_void; | |
104 | pub type MagnetometerReadingChangedEventArgs = *mut ::core::ffi::c_void; | |
105 | pub type OrientationSensor = *mut ::core::ffi::c_void; | |
106 | pub type OrientationSensorReading = *mut ::core::ffi::c_void; | |
107 | pub type OrientationSensorReadingChangedEventArgs = *mut ::core::ffi::c_void; | |
108 | pub type Pedometer = *mut ::core::ffi::c_void; | |
109 | pub type PedometerDataThreshold = *mut ::core::ffi::c_void; | |
110 | pub type PedometerReading = *mut ::core::ffi::c_void; | |
111 | pub type PedometerReadingChangedEventArgs = *mut ::core::ffi::c_void; | |
04454e1e | 112 | #[doc = "*Required features: `\"Devices_Sensors\"`*"] |
5e7ed085 FG |
113 | #[repr(transparent)] |
114 | pub struct PedometerStepKind(pub i32); | |
115 | impl PedometerStepKind { | |
116 | pub const Unknown: Self = Self(0i32); | |
117 | pub const Walking: Self = Self(1i32); | |
118 | pub const Running: Self = Self(2i32); | |
119 | } | |
120 | impl ::core::marker::Copy for PedometerStepKind {} | |
121 | impl ::core::clone::Clone for PedometerStepKind { | |
122 | fn clone(&self) -> Self { | |
123 | *self | |
124 | } | |
125 | } | |
126 | pub type ProximitySensor = *mut ::core::ffi::c_void; | |
127 | pub type ProximitySensorDataThreshold = *mut ::core::ffi::c_void; | |
128 | pub type ProximitySensorDisplayOnOffController = *mut ::core::ffi::c_void; | |
129 | pub type ProximitySensorReading = *mut ::core::ffi::c_void; | |
130 | pub type ProximitySensorReadingChangedEventArgs = *mut ::core::ffi::c_void; | |
131 | pub type SensorDataThresholdTriggerDetails = *mut ::core::ffi::c_void; | |
04454e1e | 132 | #[doc = "*Required features: `\"Devices_Sensors\"`*"] |
5e7ed085 FG |
133 | #[repr(transparent)] |
134 | pub struct SensorOptimizationGoal(pub i32); | |
135 | impl SensorOptimizationGoal { | |
136 | pub const Precision: Self = Self(0i32); | |
137 | pub const PowerEfficiency: Self = Self(1i32); | |
138 | } | |
139 | impl ::core::marker::Copy for SensorOptimizationGoal {} | |
140 | impl ::core::clone::Clone for SensorOptimizationGoal { | |
141 | fn clone(&self) -> Self { | |
142 | *self | |
143 | } | |
144 | } | |
145 | pub type SensorQuaternion = *mut ::core::ffi::c_void; | |
04454e1e | 146 | #[doc = "*Required features: `\"Devices_Sensors\"`*"] |
5e7ed085 FG |
147 | #[repr(transparent)] |
148 | pub struct SensorReadingType(pub i32); | |
149 | impl SensorReadingType { | |
150 | pub const Absolute: Self = Self(0i32); | |
151 | pub const Relative: Self = Self(1i32); | |
152 | } | |
153 | impl ::core::marker::Copy for SensorReadingType {} | |
154 | impl ::core::clone::Clone for SensorReadingType { | |
155 | fn clone(&self) -> Self { | |
156 | *self | |
157 | } | |
158 | } | |
159 | pub type SensorRotationMatrix = *mut ::core::ffi::c_void; | |
04454e1e | 160 | #[doc = "*Required features: `\"Devices_Sensors\"`*"] |
5e7ed085 FG |
161 | #[repr(transparent)] |
162 | pub struct SensorType(pub i32); | |
163 | impl SensorType { | |
164 | pub const Accelerometer: Self = Self(0i32); | |
165 | pub const ActivitySensor: Self = Self(1i32); | |
166 | pub const Barometer: Self = Self(2i32); | |
167 | pub const Compass: Self = Self(3i32); | |
168 | pub const CustomSensor: Self = Self(4i32); | |
169 | pub const Gyroscope: Self = Self(5i32); | |
170 | pub const ProximitySensor: Self = Self(6i32); | |
171 | pub const Inclinometer: Self = Self(7i32); | |
172 | pub const LightSensor: Self = Self(8i32); | |
173 | pub const OrientationSensor: Self = Self(9i32); | |
174 | pub const Pedometer: Self = Self(10i32); | |
175 | pub const RelativeInclinometer: Self = Self(11i32); | |
176 | pub const RelativeOrientationSensor: Self = Self(12i32); | |
177 | pub const SimpleOrientationSensor: Self = Self(13i32); | |
178 | } | |
179 | impl ::core::marker::Copy for SensorType {} | |
180 | impl ::core::clone::Clone for SensorType { | |
181 | fn clone(&self) -> Self { | |
182 | *self | |
183 | } | |
184 | } | |
04454e1e | 185 | #[doc = "*Required features: `\"Devices_Sensors\"`*"] |
5e7ed085 FG |
186 | #[repr(transparent)] |
187 | pub struct SimpleOrientation(pub i32); | |
188 | impl SimpleOrientation { | |
189 | pub const NotRotated: Self = Self(0i32); | |
190 | pub const Rotated90DegreesCounterclockwise: Self = Self(1i32); | |
191 | pub const Rotated180DegreesCounterclockwise: Self = Self(2i32); | |
192 | pub const Rotated270DegreesCounterclockwise: Self = Self(3i32); | |
193 | pub const Faceup: Self = Self(4i32); | |
194 | pub const Facedown: Self = Self(5i32); | |
195 | } | |
196 | impl ::core::marker::Copy for SimpleOrientation {} | |
197 | impl ::core::clone::Clone for SimpleOrientation { | |
198 | fn clone(&self) -> Self { | |
199 | *self | |
200 | } | |
201 | } | |
202 | pub type SimpleOrientationSensor = *mut ::core::ffi::c_void; | |
203 | pub type SimpleOrientationSensorOrientationChangedEventArgs = *mut ::core::ffi::c_void; |