]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Devices/Input/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Devices / Input / mod.rs
1 #[cfg(feature = "Devices_Input_Preview")]
2 pub mod Preview;
3 pub type KeyboardCapabilities = *mut ::core::ffi::c_void;
4 pub type MouseCapabilities = *mut ::core::ffi::c_void;
5 #[repr(C)]
6 #[doc = "*Required features: `\"Devices_Input\"`*"]
7 pub struct MouseDelta {
8 pub X: i32,
9 pub Y: i32,
10 }
11 impl ::core::marker::Copy for MouseDelta {}
12 impl ::core::clone::Clone for MouseDelta {
13 fn clone(&self) -> Self {
14 *self
15 }
16 }
17 pub type MouseDevice = *mut ::core::ffi::c_void;
18 pub type MouseEventArgs = *mut ::core::ffi::c_void;
19 pub type PenButtonListener = *mut ::core::ffi::c_void;
20 pub type PenDevice = *mut ::core::ffi::c_void;
21 pub type PenDockListener = *mut ::core::ffi::c_void;
22 pub type PenDockedEventArgs = *mut ::core::ffi::c_void;
23 pub type PenTailButtonClickedEventArgs = *mut ::core::ffi::c_void;
24 pub type PenTailButtonDoubleClickedEventArgs = *mut ::core::ffi::c_void;
25 pub type PenTailButtonLongPressedEventArgs = *mut ::core::ffi::c_void;
26 pub type PenUndockedEventArgs = *mut ::core::ffi::c_void;
27 pub type PointerDevice = *mut ::core::ffi::c_void;
28 #[doc = "*Required features: `\"Devices_Input\"`*"]
29 #[repr(transparent)]
30 pub struct PointerDeviceType(pub i32);
31 impl PointerDeviceType {
32 pub const Touch: Self = Self(0i32);
33 pub const Pen: Self = Self(1i32);
34 pub const Mouse: Self = Self(2i32);
35 }
36 impl ::core::marker::Copy for PointerDeviceType {}
37 impl ::core::clone::Clone for PointerDeviceType {
38 fn clone(&self) -> Self {
39 *self
40 }
41 }
42 #[repr(C)]
43 #[doc = "*Required features: `\"Devices_Input\"`*"]
44 pub struct PointerDeviceUsage {
45 pub UsagePage: u32,
46 pub Usage: u32,
47 pub MinLogical: i32,
48 pub MaxLogical: i32,
49 pub MinPhysical: i32,
50 pub MaxPhysical: i32,
51 pub Unit: u32,
52 pub PhysicalMultiplier: f32,
53 }
54 impl ::core::marker::Copy for PointerDeviceUsage {}
55 impl ::core::clone::Clone for PointerDeviceUsage {
56 fn clone(&self) -> Self {
57 *self
58 }
59 }
60 pub type TouchCapabilities = *mut ::core::ffi::c_void;