windows-sys 0.27.0

Rust for Windows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
#[link(name = "windows")]
extern "system" {}
#[repr(transparent)]
pub struct CoreTextCompositionCompletedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for CoreTextCompositionCompletedEventArgs {}
impl ::core::clone::Clone for CoreTextCompositionCompletedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextCompositionSegment(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for CoreTextCompositionSegment {}
impl ::core::clone::Clone for CoreTextCompositionSegment {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextCompositionStartedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for CoreTextCompositionStartedEventArgs {}
impl ::core::clone::Clone for CoreTextCompositionStartedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextEditContext(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for CoreTextEditContext {}
impl ::core::clone::Clone for CoreTextEditContext {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextFormatUpdatingEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for CoreTextFormatUpdatingEventArgs {}
impl ::core::clone::Clone for CoreTextFormatUpdatingEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextFormatUpdatingReason(pub i32);
impl CoreTextFormatUpdatingReason {
    pub const None: Self = Self(0i32);
    pub const CompositionUnconverted: Self = Self(1i32);
    pub const CompositionConverted: Self = Self(2i32);
    pub const CompositionTargetUnconverted: Self = Self(3i32);
    pub const CompositionTargetConverted: Self = Self(4i32);
}
impl ::core::marker::Copy for CoreTextFormatUpdatingReason {}
impl ::core::clone::Clone for CoreTextFormatUpdatingReason {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextFormatUpdatingResult(pub i32);
impl CoreTextFormatUpdatingResult {
    pub const Succeeded: Self = Self(0i32);
    pub const Failed: Self = Self(1i32);
}
impl ::core::marker::Copy for CoreTextFormatUpdatingResult {}
impl ::core::clone::Clone for CoreTextFormatUpdatingResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextInputPaneDisplayPolicy(pub i32);
impl CoreTextInputPaneDisplayPolicy {
    pub const Automatic: Self = Self(0i32);
    pub const Manual: Self = Self(1i32);
}
impl ::core::marker::Copy for CoreTextInputPaneDisplayPolicy {}
impl ::core::clone::Clone for CoreTextInputPaneDisplayPolicy {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextInputScope(pub i32);
impl CoreTextInputScope {
    pub const Default: Self = Self(0i32);
    pub const Url: Self = Self(1i32);
    pub const FilePath: Self = Self(2i32);
    pub const FileName: Self = Self(3i32);
    pub const EmailUserName: Self = Self(4i32);
    pub const EmailAddress: Self = Self(5i32);
    pub const UserName: Self = Self(6i32);
    pub const PersonalFullName: Self = Self(7i32);
    pub const PersonalNamePrefix: Self = Self(8i32);
    pub const PersonalGivenName: Self = Self(9i32);
    pub const PersonalMiddleName: Self = Self(10i32);
    pub const PersonalSurname: Self = Self(11i32);
    pub const PersonalNameSuffix: Self = Self(12i32);
    pub const Address: Self = Self(13i32);
    pub const AddressPostalCode: Self = Self(14i32);
    pub const AddressStreet: Self = Self(15i32);
    pub const AddressStateOrProvince: Self = Self(16i32);
    pub const AddressCity: Self = Self(17i32);
    pub const AddressCountryName: Self = Self(18i32);
    pub const AddressCountryShortName: Self = Self(19i32);
    pub const CurrencyAmountAndSymbol: Self = Self(20i32);
    pub const CurrencyAmount: Self = Self(21i32);
    pub const Date: Self = Self(22i32);
    pub const DateMonth: Self = Self(23i32);
    pub const DateDay: Self = Self(24i32);
    pub const DateYear: Self = Self(25i32);
    pub const DateMonthName: Self = Self(26i32);
    pub const DateDayName: Self = Self(27i32);
    pub const Number: Self = Self(29i32);
    pub const SingleCharacter: Self = Self(30i32);
    pub const Password: Self = Self(31i32);
    pub const TelephoneNumber: Self = Self(32i32);
    pub const TelephoneCountryCode: Self = Self(33i32);
    pub const TelephoneAreaCode: Self = Self(34i32);
    pub const TelephoneLocalNumber: Self = Self(35i32);
    pub const Time: Self = Self(36i32);
    pub const TimeHour: Self = Self(37i32);
    pub const TimeMinuteOrSecond: Self = Self(38i32);
    pub const NumberFullWidth: Self = Self(39i32);
    pub const AlphanumericHalfWidth: Self = Self(40i32);
    pub const AlphanumericFullWidth: Self = Self(41i32);
    pub const CurrencyChinese: Self = Self(42i32);
    pub const Bopomofo: Self = Self(43i32);
    pub const Hiragana: Self = Self(44i32);
    pub const KatakanaHalfWidth: Self = Self(45i32);
    pub const KatakanaFullWidth: Self = Self(46i32);
    pub const Hanja: Self = Self(47i32);
    pub const HangulHalfWidth: Self = Self(48i32);
    pub const HangulFullWidth: Self = Self(49i32);
    pub const Search: Self = Self(50i32);
    pub const Formula: Self = Self(51i32);
    pub const SearchIncremental: Self = Self(52i32);
    pub const ChineseHalfWidth: Self = Self(53i32);
    pub const ChineseFullWidth: Self = Self(54i32);
    pub const NativeScript: Self = Self(55i32);
    pub const Text: Self = Self(57i32);
    pub const Chat: Self = Self(58i32);
    pub const NameOrPhoneNumber: Self = Self(59i32);
    pub const EmailUserNameOrAddress: Self = Self(60i32);
    pub const Private: Self = Self(61i32);
    pub const Maps: Self = Self(62i32);
    pub const PasswordNumeric: Self = Self(63i32);
    pub const FormulaNumber: Self = Self(67i32);
    pub const ChatWithoutEmoji: Self = Self(68i32);
    pub const Digits: Self = Self(28i32);
    pub const PinNumeric: Self = Self(64i32);
    pub const PinAlphanumeric: Self = Self(65i32);
}
impl ::core::marker::Copy for CoreTextInputScope {}
impl ::core::clone::Clone for CoreTextInputScope {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextLayoutBounds(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for CoreTextLayoutBounds {}
impl ::core::clone::Clone for CoreTextLayoutBounds {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextLayoutRequest(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for CoreTextLayoutRequest {}
impl ::core::clone::Clone for CoreTextLayoutRequest {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextLayoutRequestedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for CoreTextLayoutRequestedEventArgs {}
impl ::core::clone::Clone for CoreTextLayoutRequestedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
pub struct CoreTextRange {
    pub StartCaretPosition: i32,
    pub EndCaretPosition: i32,
}
impl ::core::marker::Copy for CoreTextRange {}
impl ::core::clone::Clone for CoreTextRange {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextSelectionRequest(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for CoreTextSelectionRequest {}
impl ::core::clone::Clone for CoreTextSelectionRequest {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextSelectionRequestedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for CoreTextSelectionRequestedEventArgs {}
impl ::core::clone::Clone for CoreTextSelectionRequestedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextSelectionUpdatingEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for CoreTextSelectionUpdatingEventArgs {}
impl ::core::clone::Clone for CoreTextSelectionUpdatingEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextSelectionUpdatingResult(pub i32);
impl CoreTextSelectionUpdatingResult {
    pub const Succeeded: Self = Self(0i32);
    pub const Failed: Self = Self(1i32);
}
impl ::core::marker::Copy for CoreTextSelectionUpdatingResult {}
impl ::core::clone::Clone for CoreTextSelectionUpdatingResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextServicesManager(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for CoreTextServicesManager {}
impl ::core::clone::Clone for CoreTextServicesManager {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextTextRequest(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for CoreTextTextRequest {}
impl ::core::clone::Clone for CoreTextTextRequest {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextTextRequestedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for CoreTextTextRequestedEventArgs {}
impl ::core::clone::Clone for CoreTextTextRequestedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextTextUpdatingEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for CoreTextTextUpdatingEventArgs {}
impl ::core::clone::Clone for CoreTextTextUpdatingEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CoreTextTextUpdatingResult(pub i32);
impl CoreTextTextUpdatingResult {
    pub const Succeeded: Self = Self(0i32);
    pub const Failed: Self = Self(1i32);
}
impl ::core::marker::Copy for CoreTextTextUpdatingResult {}
impl ::core::clone::Clone for CoreTextTextUpdatingResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextCompositionCompletedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextCompositionCompletedEventArgs {}
impl ::core::clone::Clone for ICoreTextCompositionCompletedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextCompositionSegment(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextCompositionSegment {}
impl ::core::clone::Clone for ICoreTextCompositionSegment {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextCompositionStartedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextCompositionStartedEventArgs {}
impl ::core::clone::Clone for ICoreTextCompositionStartedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextEditContext(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextEditContext {}
impl ::core::clone::Clone for ICoreTextEditContext {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextEditContext2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextEditContext2 {}
impl ::core::clone::Clone for ICoreTextEditContext2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextFormatUpdatingEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextFormatUpdatingEventArgs {}
impl ::core::clone::Clone for ICoreTextFormatUpdatingEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextLayoutBounds(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextLayoutBounds {}
impl ::core::clone::Clone for ICoreTextLayoutBounds {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextLayoutRequest(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextLayoutRequest {}
impl ::core::clone::Clone for ICoreTextLayoutRequest {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextLayoutRequest2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextLayoutRequest2 {}
impl ::core::clone::Clone for ICoreTextLayoutRequest2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextLayoutRequestedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextLayoutRequestedEventArgs {}
impl ::core::clone::Clone for ICoreTextLayoutRequestedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextSelectionRequest(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextSelectionRequest {}
impl ::core::clone::Clone for ICoreTextSelectionRequest {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextSelectionRequestedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextSelectionRequestedEventArgs {}
impl ::core::clone::Clone for ICoreTextSelectionRequestedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextSelectionUpdatingEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextSelectionUpdatingEventArgs {}
impl ::core::clone::Clone for ICoreTextSelectionUpdatingEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextServicesManager(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextServicesManager {}
impl ::core::clone::Clone for ICoreTextServicesManager {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextServicesManagerStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextServicesManagerStatics {}
impl ::core::clone::Clone for ICoreTextServicesManagerStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextServicesStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextServicesStatics {}
impl ::core::clone::Clone for ICoreTextServicesStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextTextRequest(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextTextRequest {}
impl ::core::clone::Clone for ICoreTextTextRequest {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextTextRequestedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextTextRequestedEventArgs {}
impl ::core::clone::Clone for ICoreTextTextRequestedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ICoreTextTextUpdatingEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ICoreTextTextUpdatingEventArgs {}
impl ::core::clone::Clone for ICoreTextTextUpdatingEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}