]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Graphics/Printing/mod.rs
2846a0de3f3bceb874323c98ad316c5a1d19bf23
[rustc.git] / vendor / windows-sys / src / Windows / Graphics / Printing / mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[cfg(feature = "Graphics_Printing_OptionDetails")]
3 pub mod OptionDetails;
4 #[cfg(feature = "Graphics_Printing_PrintSupport")]
5 pub mod PrintSupport;
6 #[cfg(feature = "Graphics_Printing_PrintTicket")]
7 pub mod PrintTicket;
8 #[cfg(feature = "Graphics_Printing_Workflow")]
9 pub mod Workflow;
10 pub type IPrintDocumentSource = *mut ::core::ffi::c_void;
11 pub type IPrintTaskOptionsCore = *mut ::core::ffi::c_void;
12 pub type IPrintTaskOptionsCoreProperties = *mut ::core::ffi::c_void;
13 pub type IPrintTaskOptionsCoreUIConfiguration = *mut ::core::ffi::c_void;
14 #[doc = "*Required features: `\"Graphics_Printing\"`*"]
15 #[repr(transparent)]
16 pub struct PrintBinding(pub i32);
17 impl PrintBinding {
18 pub const Default: Self = Self(0i32);
19 pub const NotAvailable: Self = Self(1i32);
20 pub const PrinterCustom: Self = Self(2i32);
21 pub const None: Self = Self(3i32);
22 pub const Bale: Self = Self(4i32);
23 pub const BindBottom: Self = Self(5i32);
24 pub const BindLeft: Self = Self(6i32);
25 pub const BindRight: Self = Self(7i32);
26 pub const BindTop: Self = Self(8i32);
27 pub const Booklet: Self = Self(9i32);
28 pub const EdgeStitchBottom: Self = Self(10i32);
29 pub const EdgeStitchLeft: Self = Self(11i32);
30 pub const EdgeStitchRight: Self = Self(12i32);
31 pub const EdgeStitchTop: Self = Self(13i32);
32 pub const Fold: Self = Self(14i32);
33 pub const JogOffset: Self = Self(15i32);
34 pub const Trim: Self = Self(16i32);
35 }
36 impl ::core::marker::Copy for PrintBinding {}
37 impl ::core::clone::Clone for PrintBinding {
38 fn clone(&self) -> Self {
39 *self
40 }
41 }
42 #[doc = "*Required features: `\"Graphics_Printing\"`*"]
43 #[repr(transparent)]
44 pub struct PrintBordering(pub i32);
45 impl PrintBordering {
46 pub const Default: Self = Self(0i32);
47 pub const NotAvailable: Self = Self(1i32);
48 pub const PrinterCustom: Self = Self(2i32);
49 pub const Bordered: Self = Self(3i32);
50 pub const Borderless: Self = Self(4i32);
51 }
52 impl ::core::marker::Copy for PrintBordering {}
53 impl ::core::clone::Clone for PrintBordering {
54 fn clone(&self) -> Self {
55 *self
56 }
57 }
58 #[doc = "*Required features: `\"Graphics_Printing\"`*"]
59 #[repr(transparent)]
60 pub struct PrintCollation(pub i32);
61 impl PrintCollation {
62 pub const Default: Self = Self(0i32);
63 pub const NotAvailable: Self = Self(1i32);
64 pub const PrinterCustom: Self = Self(2i32);
65 pub const Collated: Self = Self(3i32);
66 pub const Uncollated: Self = Self(4i32);
67 }
68 impl ::core::marker::Copy for PrintCollation {}
69 impl ::core::clone::Clone for PrintCollation {
70 fn clone(&self) -> Self {
71 *self
72 }
73 }
74 #[doc = "*Required features: `\"Graphics_Printing\"`*"]
75 #[repr(transparent)]
76 pub struct PrintColorMode(pub i32);
77 impl PrintColorMode {
78 pub const Default: Self = Self(0i32);
79 pub const NotAvailable: Self = Self(1i32);
80 pub const PrinterCustom: Self = Self(2i32);
81 pub const Color: Self = Self(3i32);
82 pub const Grayscale: Self = Self(4i32);
83 pub const Monochrome: Self = Self(5i32);
84 }
85 impl ::core::marker::Copy for PrintColorMode {}
86 impl ::core::clone::Clone for PrintColorMode {
87 fn clone(&self) -> Self {
88 *self
89 }
90 }
91 #[doc = "*Required features: `\"Graphics_Printing\"`*"]
92 #[repr(transparent)]
93 pub struct PrintDuplex(pub i32);
94 impl PrintDuplex {
95 pub const Default: Self = Self(0i32);
96 pub const NotAvailable: Self = Self(1i32);
97 pub const PrinterCustom: Self = Self(2i32);
98 pub const OneSided: Self = Self(3i32);
99 pub const TwoSidedShortEdge: Self = Self(4i32);
100 pub const TwoSidedLongEdge: Self = Self(5i32);
101 }
102 impl ::core::marker::Copy for PrintDuplex {}
103 impl ::core::clone::Clone for PrintDuplex {
104 fn clone(&self) -> Self {
105 *self
106 }
107 }
108 #[doc = "*Required features: `\"Graphics_Printing\"`*"]
109 #[repr(transparent)]
110 pub struct PrintHolePunch(pub i32);
111 impl PrintHolePunch {
112 pub const Default: Self = Self(0i32);
113 pub const NotAvailable: Self = Self(1i32);
114 pub const PrinterCustom: Self = Self(2i32);
115 pub const None: Self = Self(3i32);
116 pub const LeftEdge: Self = Self(4i32);
117 pub const RightEdge: Self = Self(5i32);
118 pub const TopEdge: Self = Self(6i32);
119 pub const BottomEdge: Self = Self(7i32);
120 }
121 impl ::core::marker::Copy for PrintHolePunch {}
122 impl ::core::clone::Clone for PrintHolePunch {
123 fn clone(&self) -> Self {
124 *self
125 }
126 }
127 pub type PrintManager = *mut ::core::ffi::c_void;
128 #[doc = "*Required features: `\"Graphics_Printing\"`*"]
129 #[repr(transparent)]
130 pub struct PrintMediaSize(pub i32);
131 impl PrintMediaSize {
132 pub const Default: Self = Self(0i32);
133 pub const NotAvailable: Self = Self(1i32);
134 pub const PrinterCustom: Self = Self(2i32);
135 pub const BusinessCard: Self = Self(3i32);
136 pub const CreditCard: Self = Self(4i32);
137 pub const IsoA0: Self = Self(5i32);
138 pub const IsoA1: Self = Self(6i32);
139 pub const IsoA10: Self = Self(7i32);
140 pub const IsoA2: Self = Self(8i32);
141 pub const IsoA3: Self = Self(9i32);
142 pub const IsoA3Extra: Self = Self(10i32);
143 pub const IsoA3Rotated: Self = Self(11i32);
144 pub const IsoA4: Self = Self(12i32);
145 pub const IsoA4Extra: Self = Self(13i32);
146 pub const IsoA4Rotated: Self = Self(14i32);
147 pub const IsoA5: Self = Self(15i32);
148 pub const IsoA5Extra: Self = Self(16i32);
149 pub const IsoA5Rotated: Self = Self(17i32);
150 pub const IsoA6: Self = Self(18i32);
151 pub const IsoA6Rotated: Self = Self(19i32);
152 pub const IsoA7: Self = Self(20i32);
153 pub const IsoA8: Self = Self(21i32);
154 pub const IsoA9: Self = Self(22i32);
155 pub const IsoB0: Self = Self(23i32);
156 pub const IsoB1: Self = Self(24i32);
157 pub const IsoB10: Self = Self(25i32);
158 pub const IsoB2: Self = Self(26i32);
159 pub const IsoB3: Self = Self(27i32);
160 pub const IsoB4: Self = Self(28i32);
161 pub const IsoB4Envelope: Self = Self(29i32);
162 pub const IsoB5Envelope: Self = Self(30i32);
163 pub const IsoB5Extra: Self = Self(31i32);
164 pub const IsoB7: Self = Self(32i32);
165 pub const IsoB8: Self = Self(33i32);
166 pub const IsoB9: Self = Self(34i32);
167 pub const IsoC0: Self = Self(35i32);
168 pub const IsoC1: Self = Self(36i32);
169 pub const IsoC10: Self = Self(37i32);
170 pub const IsoC2: Self = Self(38i32);
171 pub const IsoC3: Self = Self(39i32);
172 pub const IsoC3Envelope: Self = Self(40i32);
173 pub const IsoC4: Self = Self(41i32);
174 pub const IsoC4Envelope: Self = Self(42i32);
175 pub const IsoC5: Self = Self(43i32);
176 pub const IsoC5Envelope: Self = Self(44i32);
177 pub const IsoC6: Self = Self(45i32);
178 pub const IsoC6C5Envelope: Self = Self(46i32);
179 pub const IsoC6Envelope: Self = Self(47i32);
180 pub const IsoC7: Self = Self(48i32);
181 pub const IsoC8: Self = Self(49i32);
182 pub const IsoC9: Self = Self(50i32);
183 pub const IsoDLEnvelope: Self = Self(51i32);
184 pub const IsoDLEnvelopeRotated: Self = Self(52i32);
185 pub const IsoSRA3: Self = Self(53i32);
186 pub const Japan2LPhoto: Self = Self(54i32);
187 pub const JapanChou3Envelope: Self = Self(55i32);
188 pub const JapanChou3EnvelopeRotated: Self = Self(56i32);
189 pub const JapanChou4Envelope: Self = Self(57i32);
190 pub const JapanChou4EnvelopeRotated: Self = Self(58i32);
191 pub const JapanDoubleHagakiPostcard: Self = Self(59i32);
192 pub const JapanDoubleHagakiPostcardRotated: Self = Self(60i32);
193 pub const JapanHagakiPostcard: Self = Self(61i32);
194 pub const JapanHagakiPostcardRotated: Self = Self(62i32);
195 pub const JapanKaku2Envelope: Self = Self(63i32);
196 pub const JapanKaku2EnvelopeRotated: Self = Self(64i32);
197 pub const JapanKaku3Envelope: Self = Self(65i32);
198 pub const JapanKaku3EnvelopeRotated: Self = Self(66i32);
199 pub const JapanLPhoto: Self = Self(67i32);
200 pub const JapanQuadrupleHagakiPostcard: Self = Self(68i32);
201 pub const JapanYou1Envelope: Self = Self(69i32);
202 pub const JapanYou2Envelope: Self = Self(70i32);
203 pub const JapanYou3Envelope: Self = Self(71i32);
204 pub const JapanYou4Envelope: Self = Self(72i32);
205 pub const JapanYou4EnvelopeRotated: Self = Self(73i32);
206 pub const JapanYou6Envelope: Self = Self(74i32);
207 pub const JapanYou6EnvelopeRotated: Self = Self(75i32);
208 pub const JisB0: Self = Self(76i32);
209 pub const JisB1: Self = Self(77i32);
210 pub const JisB10: Self = Self(78i32);
211 pub const JisB2: Self = Self(79i32);
212 pub const JisB3: Self = Self(80i32);
213 pub const JisB4: Self = Self(81i32);
214 pub const JisB4Rotated: Self = Self(82i32);
215 pub const JisB5: Self = Self(83i32);
216 pub const JisB5Rotated: Self = Self(84i32);
217 pub const JisB6: Self = Self(85i32);
218 pub const JisB6Rotated: Self = Self(86i32);
219 pub const JisB7: Self = Self(87i32);
220 pub const JisB8: Self = Self(88i32);
221 pub const JisB9: Self = Self(89i32);
222 pub const NorthAmerica10x11: Self = Self(90i32);
223 pub const NorthAmerica10x12: Self = Self(91i32);
224 pub const NorthAmerica10x14: Self = Self(92i32);
225 pub const NorthAmerica11x17: Self = Self(93i32);
226 pub const NorthAmerica14x17: Self = Self(94i32);
227 pub const NorthAmerica4x6: Self = Self(95i32);
228 pub const NorthAmerica4x8: Self = Self(96i32);
229 pub const NorthAmerica5x7: Self = Self(97i32);
230 pub const NorthAmerica8x10: Self = Self(98i32);
231 pub const NorthAmerica9x11: Self = Self(99i32);
232 pub const NorthAmericaArchitectureASheet: Self = Self(100i32);
233 pub const NorthAmericaArchitectureBSheet: Self = Self(101i32);
234 pub const NorthAmericaArchitectureCSheet: Self = Self(102i32);
235 pub const NorthAmericaArchitectureDSheet: Self = Self(103i32);
236 pub const NorthAmericaArchitectureESheet: Self = Self(104i32);
237 pub const NorthAmericaCSheet: Self = Self(105i32);
238 pub const NorthAmericaDSheet: Self = Self(106i32);
239 pub const NorthAmericaESheet: Self = Self(107i32);
240 pub const NorthAmericaExecutive: Self = Self(108i32);
241 pub const NorthAmericaGermanLegalFanfold: Self = Self(109i32);
242 pub const NorthAmericaGermanStandardFanfold: Self = Self(110i32);
243 pub const NorthAmericaLegal: Self = Self(111i32);
244 pub const NorthAmericaLegalExtra: Self = Self(112i32);
245 pub const NorthAmericaLetter: Self = Self(113i32);
246 pub const NorthAmericaLetterExtra: Self = Self(114i32);
247 pub const NorthAmericaLetterPlus: Self = Self(115i32);
248 pub const NorthAmericaLetterRotated: Self = Self(116i32);
249 pub const NorthAmericaMonarchEnvelope: Self = Self(117i32);
250 pub const NorthAmericaNote: Self = Self(118i32);
251 pub const NorthAmericaNumber10Envelope: Self = Self(119i32);
252 pub const NorthAmericaNumber10EnvelopeRotated: Self = Self(120i32);
253 pub const NorthAmericaNumber11Envelope: Self = Self(121i32);
254 pub const NorthAmericaNumber12Envelope: Self = Self(122i32);
255 pub const NorthAmericaNumber14Envelope: Self = Self(123i32);
256 pub const NorthAmericaNumber9Envelope: Self = Self(124i32);
257 pub const NorthAmericaPersonalEnvelope: Self = Self(125i32);
258 pub const NorthAmericaQuarto: Self = Self(126i32);
259 pub const NorthAmericaStatement: Self = Self(127i32);
260 pub const NorthAmericaSuperA: Self = Self(128i32);
261 pub const NorthAmericaSuperB: Self = Self(129i32);
262 pub const NorthAmericaTabloid: Self = Self(130i32);
263 pub const NorthAmericaTabloidExtra: Self = Self(131i32);
264 pub const OtherMetricA3Plus: Self = Self(132i32);
265 pub const OtherMetricA4Plus: Self = Self(133i32);
266 pub const OtherMetricFolio: Self = Self(134i32);
267 pub const OtherMetricInviteEnvelope: Self = Self(135i32);
268 pub const OtherMetricItalianEnvelope: Self = Self(136i32);
269 pub const Prc10Envelope: Self = Self(137i32);
270 pub const Prc10EnvelopeRotated: Self = Self(138i32);
271 pub const Prc16K: Self = Self(139i32);
272 pub const Prc16KRotated: Self = Self(140i32);
273 pub const Prc1Envelope: Self = Self(141i32);
274 pub const Prc1EnvelopeRotated: Self = Self(142i32);
275 pub const Prc2Envelope: Self = Self(143i32);
276 pub const Prc2EnvelopeRotated: Self = Self(144i32);
277 pub const Prc32K: Self = Self(145i32);
278 pub const Prc32KBig: Self = Self(146i32);
279 pub const Prc32KRotated: Self = Self(147i32);
280 pub const Prc3Envelope: Self = Self(148i32);
281 pub const Prc3EnvelopeRotated: Self = Self(149i32);
282 pub const Prc4Envelope: Self = Self(150i32);
283 pub const Prc4EnvelopeRotated: Self = Self(151i32);
284 pub const Prc5Envelope: Self = Self(152i32);
285 pub const Prc5EnvelopeRotated: Self = Self(153i32);
286 pub const Prc6Envelope: Self = Self(154i32);
287 pub const Prc6EnvelopeRotated: Self = Self(155i32);
288 pub const Prc7Envelope: Self = Self(156i32);
289 pub const Prc7EnvelopeRotated: Self = Self(157i32);
290 pub const Prc8Envelope: Self = Self(158i32);
291 pub const Prc8EnvelopeRotated: Self = Self(159i32);
292 pub const Prc9Envelope: Self = Self(160i32);
293 pub const Prc9EnvelopeRotated: Self = Self(161i32);
294 pub const Roll04Inch: Self = Self(162i32);
295 pub const Roll06Inch: Self = Self(163i32);
296 pub const Roll08Inch: Self = Self(164i32);
297 pub const Roll12Inch: Self = Self(165i32);
298 pub const Roll15Inch: Self = Self(166i32);
299 pub const Roll18Inch: Self = Self(167i32);
300 pub const Roll22Inch: Self = Self(168i32);
301 pub const Roll24Inch: Self = Self(169i32);
302 pub const Roll30Inch: Self = Self(170i32);
303 pub const Roll36Inch: Self = Self(171i32);
304 pub const Roll54Inch: Self = Self(172i32);
305 }
306 impl ::core::marker::Copy for PrintMediaSize {}
307 impl ::core::clone::Clone for PrintMediaSize {
308 fn clone(&self) -> Self {
309 *self
310 }
311 }
312 #[doc = "*Required features: `\"Graphics_Printing\"`*"]
313 #[repr(transparent)]
314 pub struct PrintMediaType(pub i32);
315 impl PrintMediaType {
316 pub const Default: Self = Self(0i32);
317 pub const NotAvailable: Self = Self(1i32);
318 pub const PrinterCustom: Self = Self(2i32);
319 pub const AutoSelect: Self = Self(3i32);
320 pub const Archival: Self = Self(4i32);
321 pub const BackPrintFilm: Self = Self(5i32);
322 pub const Bond: Self = Self(6i32);
323 pub const CardStock: Self = Self(7i32);
324 pub const Continuous: Self = Self(8i32);
325 pub const EnvelopePlain: Self = Self(9i32);
326 pub const EnvelopeWindow: Self = Self(10i32);
327 pub const Fabric: Self = Self(11i32);
328 pub const HighResolution: Self = Self(12i32);
329 pub const Label: Self = Self(13i32);
330 pub const MultiLayerForm: Self = Self(14i32);
331 pub const MultiPartForm: Self = Self(15i32);
332 pub const Photographic: Self = Self(16i32);
333 pub const PhotographicFilm: Self = Self(17i32);
334 pub const PhotographicGlossy: Self = Self(18i32);
335 pub const PhotographicHighGloss: Self = Self(19i32);
336 pub const PhotographicMatte: Self = Self(20i32);
337 pub const PhotographicSatin: Self = Self(21i32);
338 pub const PhotographicSemiGloss: Self = Self(22i32);
339 pub const Plain: Self = Self(23i32);
340 pub const Screen: Self = Self(24i32);
341 pub const ScreenPaged: Self = Self(25i32);
342 pub const Stationery: Self = Self(26i32);
343 pub const TabStockFull: Self = Self(27i32);
344 pub const TabStockPreCut: Self = Self(28i32);
345 pub const Transparency: Self = Self(29i32);
346 pub const TShirtTransfer: Self = Self(30i32);
347 pub const None: Self = Self(31i32);
348 }
349 impl ::core::marker::Copy for PrintMediaType {}
350 impl ::core::clone::Clone for PrintMediaType {
351 fn clone(&self) -> Self {
352 *self
353 }
354 }
355 #[doc = "*Required features: `\"Graphics_Printing\"`*"]
356 #[repr(transparent)]
357 pub struct PrintOrientation(pub i32);
358 impl PrintOrientation {
359 pub const Default: Self = Self(0i32);
360 pub const NotAvailable: Self = Self(1i32);
361 pub const PrinterCustom: Self = Self(2i32);
362 pub const Portrait: Self = Self(3i32);
363 pub const PortraitFlipped: Self = Self(4i32);
364 pub const Landscape: Self = Self(5i32);
365 pub const LandscapeFlipped: Self = Self(6i32);
366 }
367 impl ::core::marker::Copy for PrintOrientation {}
368 impl ::core::clone::Clone for PrintOrientation {
369 fn clone(&self) -> Self {
370 *self
371 }
372 }
373 #[repr(C)]
374 #[doc = "*Required features: `\"Graphics_Printing\"`, `\"Foundation\"`*"]
375 #[cfg(feature = "Foundation")]
376 pub struct PrintPageDescription {
377 pub PageSize: super::super::Foundation::Size,
378 pub ImageableRect: super::super::Foundation::Rect,
379 pub DpiX: u32,
380 pub DpiY: u32,
381 }
382 #[cfg(feature = "Foundation")]
383 impl ::core::marker::Copy for PrintPageDescription {}
384 #[cfg(feature = "Foundation")]
385 impl ::core::clone::Clone for PrintPageDescription {
386 fn clone(&self) -> Self {
387 *self
388 }
389 }
390 pub type PrintPageInfo = *mut ::core::ffi::c_void;
391 pub type PrintPageRange = *mut ::core::ffi::c_void;
392 pub type PrintPageRangeOptions = *mut ::core::ffi::c_void;
393 #[doc = "*Required features: `\"Graphics_Printing\"`*"]
394 #[repr(transparent)]
395 pub struct PrintQuality(pub i32);
396 impl PrintQuality {
397 pub const Default: Self = Self(0i32);
398 pub const NotAvailable: Self = Self(1i32);
399 pub const PrinterCustom: Self = Self(2i32);
400 pub const Automatic: Self = Self(3i32);
401 pub const Draft: Self = Self(4i32);
402 pub const Fax: Self = Self(5i32);
403 pub const High: Self = Self(6i32);
404 pub const Normal: Self = Self(7i32);
405 pub const Photographic: Self = Self(8i32);
406 pub const Text: Self = Self(9i32);
407 }
408 impl ::core::marker::Copy for PrintQuality {}
409 impl ::core::clone::Clone for PrintQuality {
410 fn clone(&self) -> Self {
411 *self
412 }
413 }
414 #[doc = "*Required features: `\"Graphics_Printing\"`*"]
415 #[repr(transparent)]
416 pub struct PrintStaple(pub i32);
417 impl PrintStaple {
418 pub const Default: Self = Self(0i32);
419 pub const NotAvailable: Self = Self(1i32);
420 pub const PrinterCustom: Self = Self(2i32);
421 pub const None: Self = Self(3i32);
422 pub const StapleTopLeft: Self = Self(4i32);
423 pub const StapleTopRight: Self = Self(5i32);
424 pub const StapleBottomLeft: Self = Self(6i32);
425 pub const StapleBottomRight: Self = Self(7i32);
426 pub const StapleDualLeft: Self = Self(8i32);
427 pub const StapleDualRight: Self = Self(9i32);
428 pub const StapleDualTop: Self = Self(10i32);
429 pub const StapleDualBottom: Self = Self(11i32);
430 pub const SaddleStitch: Self = Self(12i32);
431 }
432 impl ::core::marker::Copy for PrintStaple {}
433 impl ::core::clone::Clone for PrintStaple {
434 fn clone(&self) -> Self {
435 *self
436 }
437 }
438 pub type PrintTask = *mut ::core::ffi::c_void;
439 pub type PrintTaskCompletedEventArgs = *mut ::core::ffi::c_void;
440 #[doc = "*Required features: `\"Graphics_Printing\"`*"]
441 #[repr(transparent)]
442 pub struct PrintTaskCompletion(pub i32);
443 impl PrintTaskCompletion {
444 pub const Abandoned: Self = Self(0i32);
445 pub const Canceled: Self = Self(1i32);
446 pub const Failed: Self = Self(2i32);
447 pub const Submitted: Self = Self(3i32);
448 }
449 impl ::core::marker::Copy for PrintTaskCompletion {}
450 impl ::core::clone::Clone for PrintTaskCompletion {
451 fn clone(&self) -> Self {
452 *self
453 }
454 }
455 pub type PrintTaskOptions = *mut ::core::ffi::c_void;
456 pub type PrintTaskProgressingEventArgs = *mut ::core::ffi::c_void;
457 pub type PrintTaskRequest = *mut ::core::ffi::c_void;
458 pub type PrintTaskRequestedDeferral = *mut ::core::ffi::c_void;
459 pub type PrintTaskRequestedEventArgs = *mut ::core::ffi::c_void;
460 pub type PrintTaskSourceRequestedArgs = *mut ::core::ffi::c_void;
461 pub type PrintTaskSourceRequestedDeferral = *mut ::core::ffi::c_void;
462 pub type PrintTaskSourceRequestedHandler = *mut ::core::ffi::c_void;