]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/UI/Input/Preview/Injection/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / UI / Input / Preview / Injection / mod.rs
CommitLineData
04454e1e 1#[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"]
5e7ed085
FG
2#[repr(transparent)]
3pub struct InjectedInputButtonChangeKind(pub i32);
4impl InjectedInputButtonChangeKind {
5 pub const None: Self = Self(0i32);
6 pub const FirstButtonDown: Self = Self(1i32);
7 pub const FirstButtonUp: Self = Self(2i32);
8 pub const SecondButtonDown: Self = Self(3i32);
9 pub const SecondButtonUp: Self = Self(4i32);
10 pub const ThirdButtonDown: Self = Self(5i32);
11 pub const ThirdButtonUp: Self = Self(6i32);
12 pub const FourthButtonDown: Self = Self(7i32);
13 pub const FourthButtonUp: Self = Self(8i32);
14 pub const FifthButtonDown: Self = Self(9i32);
15 pub const FifthButtonUp: Self = Self(10i32);
16}
17impl ::core::marker::Copy for InjectedInputButtonChangeKind {}
18impl ::core::clone::Clone for InjectedInputButtonChangeKind {
19 fn clone(&self) -> Self {
20 *self
21 }
22}
23pub type InjectedInputGamepadInfo = *mut ::core::ffi::c_void;
04454e1e 24#[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"]
5e7ed085
FG
25#[repr(transparent)]
26pub struct InjectedInputKeyOptions(pub u32);
27impl InjectedInputKeyOptions {
28 pub const None: Self = Self(0u32);
29 pub const ExtendedKey: Self = Self(1u32);
30 pub const KeyUp: Self = Self(2u32);
31 pub const ScanCode: Self = Self(8u32);
32 pub const Unicode: Self = Self(4u32);
33}
34impl ::core::marker::Copy for InjectedInputKeyOptions {}
35impl ::core::clone::Clone for InjectedInputKeyOptions {
36 fn clone(&self) -> Self {
37 *self
38 }
39}
40pub type InjectedInputKeyboardInfo = *mut ::core::ffi::c_void;
41pub type InjectedInputMouseInfo = *mut ::core::ffi::c_void;
04454e1e 42#[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"]
5e7ed085
FG
43#[repr(transparent)]
44pub struct InjectedInputMouseOptions(pub u32);
45impl InjectedInputMouseOptions {
46 pub const None: Self = Self(0u32);
47 pub const Move: Self = Self(1u32);
48 pub const LeftDown: Self = Self(2u32);
49 pub const LeftUp: Self = Self(4u32);
50 pub const RightDown: Self = Self(8u32);
51 pub const RightUp: Self = Self(16u32);
52 pub const MiddleDown: Self = Self(32u32);
53 pub const MiddleUp: Self = Self(64u32);
54 pub const XDown: Self = Self(128u32);
55 pub const XUp: Self = Self(256u32);
56 pub const Wheel: Self = Self(2048u32);
57 pub const HWheel: Self = Self(4096u32);
58 pub const MoveNoCoalesce: Self = Self(8192u32);
59 pub const VirtualDesk: Self = Self(16384u32);
60 pub const Absolute: Self = Self(32768u32);
61}
62impl ::core::marker::Copy for InjectedInputMouseOptions {}
63impl ::core::clone::Clone for InjectedInputMouseOptions {
64 fn clone(&self) -> Self {
65 *self
66 }
67}
04454e1e 68#[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"]
5e7ed085
FG
69#[repr(transparent)]
70pub struct InjectedInputPenButtons(pub u32);
71impl InjectedInputPenButtons {
72 pub const None: Self = Self(0u32);
73 pub const Barrel: Self = Self(1u32);
74 pub const Inverted: Self = Self(2u32);
75 pub const Eraser: Self = Self(4u32);
76}
77impl ::core::marker::Copy for InjectedInputPenButtons {}
78impl ::core::clone::Clone for InjectedInputPenButtons {
79 fn clone(&self) -> Self {
80 *self
81 }
82}
83pub type InjectedInputPenInfo = *mut ::core::ffi::c_void;
04454e1e 84#[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"]
5e7ed085
FG
85#[repr(transparent)]
86pub struct InjectedInputPenParameters(pub u32);
87impl InjectedInputPenParameters {
88 pub const None: Self = Self(0u32);
89 pub const Pressure: Self = Self(1u32);
90 pub const Rotation: Self = Self(2u32);
91 pub const TiltX: Self = Self(4u32);
92 pub const TiltY: Self = Self(8u32);
93}
94impl ::core::marker::Copy for InjectedInputPenParameters {}
95impl ::core::clone::Clone for InjectedInputPenParameters {
96 fn clone(&self) -> Self {
97 *self
98 }
99}
100#[repr(C)]
04454e1e 101#[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"]
5e7ed085
FG
102pub struct InjectedInputPoint {
103 pub PositionX: i32,
104 pub PositionY: i32,
105}
106impl ::core::marker::Copy for InjectedInputPoint {}
107impl ::core::clone::Clone for InjectedInputPoint {
108 fn clone(&self) -> Self {
109 *self
110 }
111}
112#[repr(C)]
04454e1e 113#[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"]
5e7ed085
FG
114pub struct InjectedInputPointerInfo {
115 pub PointerId: u32,
116 pub PointerOptions: InjectedInputPointerOptions,
117 pub PixelLocation: InjectedInputPoint,
118 pub TimeOffsetInMilliseconds: u32,
119 pub PerformanceCount: u64,
120}
121impl ::core::marker::Copy for InjectedInputPointerInfo {}
122impl ::core::clone::Clone for InjectedInputPointerInfo {
123 fn clone(&self) -> Self {
124 *self
125 }
126}
04454e1e 127#[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"]
5e7ed085
FG
128#[repr(transparent)]
129pub struct InjectedInputPointerOptions(pub u32);
130impl InjectedInputPointerOptions {
131 pub const None: Self = Self(0u32);
132 pub const New: Self = Self(1u32);
133 pub const InRange: Self = Self(2u32);
134 pub const InContact: Self = Self(4u32);
135 pub const FirstButton: Self = Self(16u32);
136 pub const SecondButton: Self = Self(32u32);
137 pub const Primary: Self = Self(8192u32);
138 pub const Confidence: Self = Self(16384u32);
139 pub const Canceled: Self = Self(32768u32);
140 pub const PointerDown: Self = Self(65536u32);
141 pub const Update: Self = Self(131072u32);
142 pub const PointerUp: Self = Self(262144u32);
143 pub const CaptureChanged: Self = Self(2097152u32);
144}
145impl ::core::marker::Copy for InjectedInputPointerOptions {}
146impl ::core::clone::Clone for InjectedInputPointerOptions {
147 fn clone(&self) -> Self {
148 *self
149 }
150}
151#[repr(C)]
04454e1e 152#[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"]
5e7ed085
FG
153pub struct InjectedInputRectangle {
154 pub Left: i32,
155 pub Top: i32,
156 pub Bottom: i32,
157 pub Right: i32,
158}
159impl ::core::marker::Copy for InjectedInputRectangle {}
160impl ::core::clone::Clone for InjectedInputRectangle {
161 fn clone(&self) -> Self {
162 *self
163 }
164}
04454e1e 165#[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"]
5e7ed085
FG
166#[repr(transparent)]
167pub struct InjectedInputShortcut(pub i32);
168impl InjectedInputShortcut {
169 pub const Back: Self = Self(0i32);
170 pub const Start: Self = Self(1i32);
171 pub const Search: Self = Self(2i32);
172}
173impl ::core::marker::Copy for InjectedInputShortcut {}
174impl ::core::clone::Clone for InjectedInputShortcut {
175 fn clone(&self) -> Self {
176 *self
177 }
178}
179pub type InjectedInputTouchInfo = *mut ::core::ffi::c_void;
04454e1e 180#[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"]
5e7ed085
FG
181#[repr(transparent)]
182pub struct InjectedInputTouchParameters(pub u32);
183impl InjectedInputTouchParameters {
184 pub const None: Self = Self(0u32);
185 pub const Contact: Self = Self(1u32);
186 pub const Orientation: Self = Self(2u32);
187 pub const Pressure: Self = Self(4u32);
188}
189impl ::core::marker::Copy for InjectedInputTouchParameters {}
190impl ::core::clone::Clone for InjectedInputTouchParameters {
191 fn clone(&self) -> Self {
192 *self
193 }
194}
04454e1e 195#[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"]
5e7ed085
FG
196#[repr(transparent)]
197pub struct InjectedInputVisualizationMode(pub i32);
198impl InjectedInputVisualizationMode {
199 pub const None: Self = Self(0i32);
200 pub const Default: Self = Self(1i32);
201 pub const Indirect: Self = Self(2i32);
202}
203impl ::core::marker::Copy for InjectedInputVisualizationMode {}
204impl ::core::clone::Clone for InjectedInputVisualizationMode {
205 fn clone(&self) -> Self {
206 *self
207 }
208}
209pub type InputInjector = *mut ::core::ffi::c_void;