]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/Devices/Sensors/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Devices / Sensors / mod.rs
CommitLineData
5e7ed085
FG
1#[cfg(feature = "Devices_Sensors_Custom")]
2pub mod Custom;
3pub type Accelerometer = *mut ::core::ffi::c_void;
4pub type AccelerometerDataThreshold = *mut ::core::ffi::c_void;
5pub type AccelerometerReading = *mut ::core::ffi::c_void;
6pub type AccelerometerReadingChangedEventArgs = *mut ::core::ffi::c_void;
04454e1e 7#[doc = "*Required features: `\"Devices_Sensors\"`*"]
5e7ed085
FG
8#[repr(transparent)]
9pub struct AccelerometerReadingType(pub i32);
10impl AccelerometerReadingType {
11 pub const Standard: Self = Self(0i32);
12 pub const Linear: Self = Self(1i32);
13 pub const Gravity: Self = Self(2i32);
14}
15impl ::core::marker::Copy for AccelerometerReadingType {}
16impl ::core::clone::Clone for AccelerometerReadingType {
17 fn clone(&self) -> Self {
18 *self
19 }
20}
21pub type AccelerometerShakenEventArgs = *mut ::core::ffi::c_void;
22pub type ActivitySensor = *mut ::core::ffi::c_void;
23pub type ActivitySensorReading = *mut ::core::ffi::c_void;
24pub type ActivitySensorReadingChangeReport = *mut ::core::ffi::c_void;
25pub type ActivitySensorReadingChangedEventArgs = *mut ::core::ffi::c_void;
04454e1e 26#[doc = "*Required features: `\"Devices_Sensors\"`*"]
5e7ed085
FG
27#[repr(transparent)]
28pub struct ActivitySensorReadingConfidence(pub i32);
29impl ActivitySensorReadingConfidence {
30 pub const High: Self = Self(0i32);
31 pub const Low: Self = Self(1i32);
32}
33impl ::core::marker::Copy for ActivitySensorReadingConfidence {}
34impl ::core::clone::Clone for ActivitySensorReadingConfidence {
35 fn clone(&self) -> Self {
36 *self
37 }
38}
39pub type ActivitySensorTriggerDetails = *mut ::core::ffi::c_void;
04454e1e 40#[doc = "*Required features: `\"Devices_Sensors\"`*"]
5e7ed085
FG
41#[repr(transparent)]
42pub struct ActivityType(pub i32);
43impl 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}
53impl ::core::marker::Copy for ActivityType {}
54impl ::core::clone::Clone for ActivityType {
55 fn clone(&self) -> Self {
56 *self
57 }
58}
59pub type Altimeter = *mut ::core::ffi::c_void;
60pub type AltimeterReading = *mut ::core::ffi::c_void;
61pub type AltimeterReadingChangedEventArgs = *mut ::core::ffi::c_void;
62pub type Barometer = *mut ::core::ffi::c_void;
63pub type BarometerDataThreshold = *mut ::core::ffi::c_void;
64pub type BarometerReading = *mut ::core::ffi::c_void;
65pub type BarometerReadingChangedEventArgs = *mut ::core::ffi::c_void;
66pub type Compass = *mut ::core::ffi::c_void;
67pub type CompassDataThreshold = *mut ::core::ffi::c_void;
68pub type CompassReading = *mut ::core::ffi::c_void;
69pub type CompassReadingChangedEventArgs = *mut ::core::ffi::c_void;
70pub type Gyrometer = *mut ::core::ffi::c_void;
71pub type GyrometerDataThreshold = *mut ::core::ffi::c_void;
72pub type GyrometerReading = *mut ::core::ffi::c_void;
73pub type GyrometerReadingChangedEventArgs = *mut ::core::ffi::c_void;
74pub type HingeAngleReading = *mut ::core::ffi::c_void;
75pub type HingeAngleSensor = *mut ::core::ffi::c_void;
76pub type HingeAngleSensorReadingChangedEventArgs = *mut ::core::ffi::c_void;
77pub type ISensorDataThreshold = *mut ::core::ffi::c_void;
78pub type Inclinometer = *mut ::core::ffi::c_void;
79pub type InclinometerDataThreshold = *mut ::core::ffi::c_void;
80pub type InclinometerReading = *mut ::core::ffi::c_void;
81pub type InclinometerReadingChangedEventArgs = *mut ::core::ffi::c_void;
82pub type LightSensor = *mut ::core::ffi::c_void;
83pub type LightSensorDataThreshold = *mut ::core::ffi::c_void;
84pub type LightSensorReading = *mut ::core::ffi::c_void;
85pub type LightSensorReadingChangedEventArgs = *mut ::core::ffi::c_void;
86pub type Magnetometer = *mut ::core::ffi::c_void;
04454e1e 87#[doc = "*Required features: `\"Devices_Sensors\"`*"]
5e7ed085
FG
88#[repr(transparent)]
89pub struct MagnetometerAccuracy(pub i32);
90impl 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}
96impl ::core::marker::Copy for MagnetometerAccuracy {}
97impl ::core::clone::Clone for MagnetometerAccuracy {
98 fn clone(&self) -> Self {
99 *self
100 }
101}
102pub type MagnetometerDataThreshold = *mut ::core::ffi::c_void;
103pub type MagnetometerReading = *mut ::core::ffi::c_void;
104pub type MagnetometerReadingChangedEventArgs = *mut ::core::ffi::c_void;
105pub type OrientationSensor = *mut ::core::ffi::c_void;
106pub type OrientationSensorReading = *mut ::core::ffi::c_void;
107pub type OrientationSensorReadingChangedEventArgs = *mut ::core::ffi::c_void;
108pub type Pedometer = *mut ::core::ffi::c_void;
109pub type PedometerDataThreshold = *mut ::core::ffi::c_void;
110pub type PedometerReading = *mut ::core::ffi::c_void;
111pub type PedometerReadingChangedEventArgs = *mut ::core::ffi::c_void;
04454e1e 112#[doc = "*Required features: `\"Devices_Sensors\"`*"]
5e7ed085
FG
113#[repr(transparent)]
114pub struct PedometerStepKind(pub i32);
115impl PedometerStepKind {
116 pub const Unknown: Self = Self(0i32);
117 pub const Walking: Self = Self(1i32);
118 pub const Running: Self = Self(2i32);
119}
120impl ::core::marker::Copy for PedometerStepKind {}
121impl ::core::clone::Clone for PedometerStepKind {
122 fn clone(&self) -> Self {
123 *self
124 }
125}
126pub type ProximitySensor = *mut ::core::ffi::c_void;
127pub type ProximitySensorDataThreshold = *mut ::core::ffi::c_void;
128pub type ProximitySensorDisplayOnOffController = *mut ::core::ffi::c_void;
129pub type ProximitySensorReading = *mut ::core::ffi::c_void;
130pub type ProximitySensorReadingChangedEventArgs = *mut ::core::ffi::c_void;
131pub type SensorDataThresholdTriggerDetails = *mut ::core::ffi::c_void;
04454e1e 132#[doc = "*Required features: `\"Devices_Sensors\"`*"]
5e7ed085
FG
133#[repr(transparent)]
134pub struct SensorOptimizationGoal(pub i32);
135impl SensorOptimizationGoal {
136 pub const Precision: Self = Self(0i32);
137 pub const PowerEfficiency: Self = Self(1i32);
138}
139impl ::core::marker::Copy for SensorOptimizationGoal {}
140impl ::core::clone::Clone for SensorOptimizationGoal {
141 fn clone(&self) -> Self {
142 *self
143 }
144}
145pub type SensorQuaternion = *mut ::core::ffi::c_void;
04454e1e 146#[doc = "*Required features: `\"Devices_Sensors\"`*"]
5e7ed085
FG
147#[repr(transparent)]
148pub struct SensorReadingType(pub i32);
149impl SensorReadingType {
150 pub const Absolute: Self = Self(0i32);
151 pub const Relative: Self = Self(1i32);
152}
153impl ::core::marker::Copy for SensorReadingType {}
154impl ::core::clone::Clone for SensorReadingType {
155 fn clone(&self) -> Self {
156 *self
157 }
158}
159pub type SensorRotationMatrix = *mut ::core::ffi::c_void;
04454e1e 160#[doc = "*Required features: `\"Devices_Sensors\"`*"]
5e7ed085
FG
161#[repr(transparent)]
162pub struct SensorType(pub i32);
163impl 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}
179impl ::core::marker::Copy for SensorType {}
180impl ::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)]
187pub struct SimpleOrientation(pub i32);
188impl 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}
196impl ::core::marker::Copy for SimpleOrientation {}
197impl ::core::clone::Clone for SimpleOrientation {
198 fn clone(&self) -> Self {
199 *self
200 }
201}
202pub type SimpleOrientationSensor = *mut ::core::ffi::c_void;
203pub type SimpleOrientationSensorOrientationChangedEventArgs = *mut ::core::ffi::c_void;