]>
Commit | Line | Data |
---|---|---|
04454e1e | 1 | #[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"] |
5e7ed085 FG |
2 | #[repr(transparent)] |
3 | pub struct InjectedInputButtonChangeKind(pub i32); | |
4 | impl 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 | } | |
17 | impl ::core::marker::Copy for InjectedInputButtonChangeKind {} | |
18 | impl ::core::clone::Clone for InjectedInputButtonChangeKind { | |
19 | fn clone(&self) -> Self { | |
20 | *self | |
21 | } | |
22 | } | |
23 | pub type InjectedInputGamepadInfo = *mut ::core::ffi::c_void; | |
04454e1e | 24 | #[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"] |
5e7ed085 FG |
25 | #[repr(transparent)] |
26 | pub struct InjectedInputKeyOptions(pub u32); | |
27 | impl 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 | } | |
34 | impl ::core::marker::Copy for InjectedInputKeyOptions {} | |
35 | impl ::core::clone::Clone for InjectedInputKeyOptions { | |
36 | fn clone(&self) -> Self { | |
37 | *self | |
38 | } | |
39 | } | |
40 | pub type InjectedInputKeyboardInfo = *mut ::core::ffi::c_void; | |
41 | pub type InjectedInputMouseInfo = *mut ::core::ffi::c_void; | |
04454e1e | 42 | #[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"] |
5e7ed085 FG |
43 | #[repr(transparent)] |
44 | pub struct InjectedInputMouseOptions(pub u32); | |
45 | impl 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 | } | |
62 | impl ::core::marker::Copy for InjectedInputMouseOptions {} | |
63 | impl ::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)] |
70 | pub struct InjectedInputPenButtons(pub u32); | |
71 | impl 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 | } | |
77 | impl ::core::marker::Copy for InjectedInputPenButtons {} | |
78 | impl ::core::clone::Clone for InjectedInputPenButtons { | |
79 | fn clone(&self) -> Self { | |
80 | *self | |
81 | } | |
82 | } | |
83 | pub type InjectedInputPenInfo = *mut ::core::ffi::c_void; | |
04454e1e | 84 | #[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"] |
5e7ed085 FG |
85 | #[repr(transparent)] |
86 | pub struct InjectedInputPenParameters(pub u32); | |
87 | impl 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 | } | |
94 | impl ::core::marker::Copy for InjectedInputPenParameters {} | |
95 | impl ::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 |
102 | pub struct InjectedInputPoint { |
103 | pub PositionX: i32, | |
104 | pub PositionY: i32, | |
105 | } | |
106 | impl ::core::marker::Copy for InjectedInputPoint {} | |
107 | impl ::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 |
114 | pub struct InjectedInputPointerInfo { |
115 | pub PointerId: u32, | |
116 | pub PointerOptions: InjectedInputPointerOptions, | |
117 | pub PixelLocation: InjectedInputPoint, | |
118 | pub TimeOffsetInMilliseconds: u32, | |
119 | pub PerformanceCount: u64, | |
120 | } | |
121 | impl ::core::marker::Copy for InjectedInputPointerInfo {} | |
122 | impl ::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)] |
129 | pub struct InjectedInputPointerOptions(pub u32); | |
130 | impl 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 | } | |
145 | impl ::core::marker::Copy for InjectedInputPointerOptions {} | |
146 | impl ::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 |
153 | pub struct InjectedInputRectangle { |
154 | pub Left: i32, | |
155 | pub Top: i32, | |
156 | pub Bottom: i32, | |
157 | pub Right: i32, | |
158 | } | |
159 | impl ::core::marker::Copy for InjectedInputRectangle {} | |
160 | impl ::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)] |
167 | pub struct InjectedInputShortcut(pub i32); | |
168 | impl InjectedInputShortcut { | |
169 | pub const Back: Self = Self(0i32); | |
170 | pub const Start: Self = Self(1i32); | |
171 | pub const Search: Self = Self(2i32); | |
172 | } | |
173 | impl ::core::marker::Copy for InjectedInputShortcut {} | |
174 | impl ::core::clone::Clone for InjectedInputShortcut { | |
175 | fn clone(&self) -> Self { | |
176 | *self | |
177 | } | |
178 | } | |
179 | pub type InjectedInputTouchInfo = *mut ::core::ffi::c_void; | |
04454e1e | 180 | #[doc = "*Required features: `\"UI_Input_Preview_Injection\"`*"] |
5e7ed085 FG |
181 | #[repr(transparent)] |
182 | pub struct InjectedInputTouchParameters(pub u32); | |
183 | impl 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 | } | |
189 | impl ::core::marker::Copy for InjectedInputTouchParameters {} | |
190 | impl ::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)] |
197 | pub struct InjectedInputVisualizationMode(pub i32); | |
198 | impl InjectedInputVisualizationMode { | |
199 | pub const None: Self = Self(0i32); | |
200 | pub const Default: Self = Self(1i32); | |
201 | pub const Indirect: Self = Self(2i32); | |
202 | } | |
203 | impl ::core::marker::Copy for InjectedInputVisualizationMode {} | |
204 | impl ::core::clone::Clone for InjectedInputVisualizationMode { | |
205 | fn clone(&self) -> Self { | |
206 | *self | |
207 | } | |
208 | } | |
209 | pub type InputInjector = *mut ::core::ffi::c_void; |