]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Devices/Scanners/mod.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Devices / Scanners / mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 pub type IImageScannerFormatConfiguration = *mut ::core::ffi::c_void;
3 pub type IImageScannerSourceConfiguration = *mut ::core::ffi::c_void;
4 pub type ImageScanner = *mut ::core::ffi::c_void;
5 pub type ImageScannerAutoConfiguration = *mut ::core::ffi::c_void;
6 #[doc = "*Required features: 'Devices_Scanners'*"]
7 #[repr(transparent)]
8 pub struct ImageScannerAutoCroppingMode(pub i32);
9 impl ImageScannerAutoCroppingMode {
10 pub const Disabled: Self = Self(0i32);
11 pub const SingleRegion: Self = Self(1i32);
12 pub const MultipleRegion: Self = Self(2i32);
13 }
14 impl ::core::marker::Copy for ImageScannerAutoCroppingMode {}
15 impl ::core::clone::Clone for ImageScannerAutoCroppingMode {
16 fn clone(&self) -> Self {
17 *self
18 }
19 }
20 #[doc = "*Required features: 'Devices_Scanners'*"]
21 #[repr(transparent)]
22 pub struct ImageScannerColorMode(pub i32);
23 impl ImageScannerColorMode {
24 pub const Color: Self = Self(0i32);
25 pub const Grayscale: Self = Self(1i32);
26 pub const Monochrome: Self = Self(2i32);
27 pub const AutoColor: Self = Self(3i32);
28 }
29 impl ::core::marker::Copy for ImageScannerColorMode {}
30 impl ::core::clone::Clone for ImageScannerColorMode {
31 fn clone(&self) -> Self {
32 *self
33 }
34 }
35 pub type ImageScannerFeederConfiguration = *mut ::core::ffi::c_void;
36 pub type ImageScannerFlatbedConfiguration = *mut ::core::ffi::c_void;
37 #[doc = "*Required features: 'Devices_Scanners'*"]
38 #[repr(transparent)]
39 pub struct ImageScannerFormat(pub i32);
40 impl ImageScannerFormat {
41 pub const Jpeg: Self = Self(0i32);
42 pub const Png: Self = Self(1i32);
43 pub const DeviceIndependentBitmap: Self = Self(2i32);
44 pub const Tiff: Self = Self(3i32);
45 pub const Xps: Self = Self(4i32);
46 pub const OpenXps: Self = Self(5i32);
47 pub const Pdf: Self = Self(6i32);
48 }
49 impl ::core::marker::Copy for ImageScannerFormat {}
50 impl ::core::clone::Clone for ImageScannerFormat {
51 fn clone(&self) -> Self {
52 *self
53 }
54 }
55 pub type ImageScannerPreviewResult = *mut ::core::ffi::c_void;
56 #[repr(C)]
57 #[doc = "*Required features: 'Devices_Scanners'*"]
58 pub struct ImageScannerResolution {
59 pub DpiX: f32,
60 pub DpiY: f32,
61 }
62 impl ::core::marker::Copy for ImageScannerResolution {}
63 impl ::core::clone::Clone for ImageScannerResolution {
64 fn clone(&self) -> Self {
65 *self
66 }
67 }
68 pub type ImageScannerScanResult = *mut ::core::ffi::c_void;
69 #[doc = "*Required features: 'Devices_Scanners'*"]
70 #[repr(transparent)]
71 pub struct ImageScannerScanSource(pub i32);
72 impl ImageScannerScanSource {
73 pub const Default: Self = Self(0i32);
74 pub const Flatbed: Self = Self(1i32);
75 pub const Feeder: Self = Self(2i32);
76 pub const AutoConfigured: Self = Self(3i32);
77 }
78 impl ::core::marker::Copy for ImageScannerScanSource {}
79 impl ::core::clone::Clone for ImageScannerScanSource {
80 fn clone(&self) -> Self {
81 *self
82 }
83 }