]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
1 | #[link(name = "windows")] |
2 | extern "system" { | |
04454e1e | 3 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
4 | #[cfg(feature = "Win32_Foundation")] |
5 | pub fn MagGetColorEffect(hwnd: super::super::Foundation::HWND, peffect: *mut MAGCOLOREFFECT) -> super::super::Foundation::BOOL; | |
04454e1e | 6 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
7 | #[cfg(feature = "Win32_Foundation")] |
8 | pub fn MagGetFullscreenColorEffect(peffect: *mut MAGCOLOREFFECT) -> super::super::Foundation::BOOL; | |
04454e1e | 9 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
10 | #[cfg(feature = "Win32_Foundation")] |
11 | pub fn MagGetFullscreenTransform(pmaglevel: *mut f32, pxoffset: *mut i32, pyoffset: *mut i32) -> super::super::Foundation::BOOL; | |
04454e1e | 12 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] |
5e7ed085 FG |
13 | #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] |
14 | pub fn MagGetImageScalingCallback(hwnd: super::super::Foundation::HWND) -> MagImageScalingCallback; | |
04454e1e | 15 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
16 | #[cfg(feature = "Win32_Foundation")] |
17 | pub fn MagGetInputTransform(pfenabled: *mut super::super::Foundation::BOOL, prectsource: *mut super::super::Foundation::RECT, prectdest: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL; | |
04454e1e | 18 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
19 | #[cfg(feature = "Win32_Foundation")] |
20 | pub fn MagGetWindowFilterList(hwnd: super::super::Foundation::HWND, pdwfiltermode: *mut u32, count: i32, phwnd: *mut super::super::Foundation::HWND) -> i32; | |
04454e1e | 21 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
22 | #[cfg(feature = "Win32_Foundation")] |
23 | pub fn MagGetWindowSource(hwnd: super::super::Foundation::HWND, prect: *mut super::super::Foundation::RECT) -> super::super::Foundation::BOOL; | |
04454e1e | 24 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
25 | #[cfg(feature = "Win32_Foundation")] |
26 | pub fn MagGetWindowTransform(hwnd: super::super::Foundation::HWND, ptransform: *mut MAGTRANSFORM) -> super::super::Foundation::BOOL; | |
04454e1e | 27 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
28 | #[cfg(feature = "Win32_Foundation")] |
29 | pub fn MagInitialize() -> super::super::Foundation::BOOL; | |
04454e1e | 30 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
31 | #[cfg(feature = "Win32_Foundation")] |
32 | pub fn MagSetColorEffect(hwnd: super::super::Foundation::HWND, peffect: *mut MAGCOLOREFFECT) -> super::super::Foundation::BOOL; | |
04454e1e | 33 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
34 | #[cfg(feature = "Win32_Foundation")] |
35 | pub fn MagSetFullscreenColorEffect(peffect: *const MAGCOLOREFFECT) -> super::super::Foundation::BOOL; | |
04454e1e | 36 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
37 | #[cfg(feature = "Win32_Foundation")] |
38 | pub fn MagSetFullscreenTransform(maglevel: f32, xoffset: i32, yoffset: i32) -> super::super::Foundation::BOOL; | |
04454e1e | 39 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] |
5e7ed085 FG |
40 | #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] |
41 | pub fn MagSetImageScalingCallback(hwnd: super::super::Foundation::HWND, callback: MagImageScalingCallback) -> super::super::Foundation::BOOL; | |
04454e1e | 42 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
43 | #[cfg(feature = "Win32_Foundation")] |
44 | pub fn MagSetInputTransform(fenabled: super::super::Foundation::BOOL, prectsource: *const super::super::Foundation::RECT, prectdest: *const super::super::Foundation::RECT) -> super::super::Foundation::BOOL; | |
04454e1e | 45 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
46 | #[cfg(feature = "Win32_Foundation")] |
47 | pub fn MagSetWindowFilterList(hwnd: super::super::Foundation::HWND, dwfiltermode: u32, count: i32, phwnd: *mut super::super::Foundation::HWND) -> super::super::Foundation::BOOL; | |
04454e1e | 48 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
49 | #[cfg(feature = "Win32_Foundation")] |
50 | pub fn MagSetWindowSource(hwnd: super::super::Foundation::HWND, rect: super::super::Foundation::RECT) -> super::super::Foundation::BOOL; | |
04454e1e | 51 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
52 | #[cfg(feature = "Win32_Foundation")] |
53 | pub fn MagSetWindowTransform(hwnd: super::super::Foundation::HWND, ptransform: *mut MAGTRANSFORM) -> super::super::Foundation::BOOL; | |
04454e1e | 54 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
55 | #[cfg(feature = "Win32_Foundation")] |
56 | pub fn MagShowSystemCursor(fshowcursor: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; | |
04454e1e | 57 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"] |
5e7ed085 FG |
58 | #[cfg(feature = "Win32_Foundation")] |
59 | pub fn MagUninitialize() -> super::super::Foundation::BOOL; | |
60 | } | |
61 | #[repr(C)] | |
04454e1e | 62 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"] |
5e7ed085 FG |
63 | pub struct MAGCOLOREFFECT { |
64 | pub transform: [f32; 25], | |
65 | } | |
66 | impl ::core::marker::Copy for MAGCOLOREFFECT {} | |
67 | impl ::core::clone::Clone for MAGCOLOREFFECT { | |
68 | fn clone(&self) -> Self { | |
69 | *self | |
70 | } | |
71 | } | |
72 | #[repr(C)] | |
04454e1e | 73 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"] |
5e7ed085 FG |
74 | pub struct MAGIMAGEHEADER { |
75 | pub width: u32, | |
76 | pub height: u32, | |
77 | pub format: ::windows_sys::core::GUID, | |
78 | pub stride: u32, | |
79 | pub offset: u32, | |
80 | pub cbSize: usize, | |
81 | } | |
82 | impl ::core::marker::Copy for MAGIMAGEHEADER {} | |
83 | impl ::core::clone::Clone for MAGIMAGEHEADER { | |
84 | fn clone(&self) -> Self { | |
85 | *self | |
86 | } | |
87 | } | |
88 | #[repr(C)] | |
04454e1e | 89 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"] |
5e7ed085 FG |
90 | pub struct MAGTRANSFORM { |
91 | pub v: [f32; 9], | |
92 | } | |
93 | impl ::core::marker::Copy for MAGTRANSFORM {} | |
94 | impl ::core::clone::Clone for MAGTRANSFORM { | |
95 | fn clone(&self) -> Self { | |
96 | *self | |
97 | } | |
98 | } | |
04454e1e | 99 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"] |
5e7ed085 | 100 | pub const MS_CLIPAROUNDCURSOR: i32 = 2i32; |
04454e1e | 101 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"] |
5e7ed085 | 102 | pub const MS_INVERTCOLORS: i32 = 4i32; |
04454e1e | 103 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"] |
5e7ed085 | 104 | pub const MS_SHOWMAGNIFIEDCURSOR: i32 = 1i32; |
04454e1e | 105 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"] |
5e7ed085 | 106 | pub const MW_FILTERMODE_EXCLUDE: u32 = 0u32; |
04454e1e | 107 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"] |
5e7ed085 | 108 | pub const MW_FILTERMODE_INCLUDE: u32 = 1u32; |
04454e1e | 109 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"] |
5e7ed085 FG |
110 | #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] |
111 | pub type MagImageScalingCallback = ::core::option::Option<unsafe extern "system" fn(hwnd: super::super::Foundation::HWND, srcdata: *mut ::core::ffi::c_void, srcheader: MAGIMAGEHEADER, destdata: *mut ::core::ffi::c_void, destheader: MAGIMAGEHEADER, unclipped: super::super::Foundation::RECT, clipped: super::super::Foundation::RECT, dirty: super::super::Graphics::Gdi::HRGN) -> super::super::Foundation::BOOL>; | |
04454e1e | 112 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"] |
923072b8 | 113 | pub const WC_MAGNIFIER: &str = "Magnifier"; |
04454e1e | 114 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"] |
923072b8 | 115 | pub const WC_MAGNIFIERA: &str = "Magnifier"; |
04454e1e | 116 | #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"] |
923072b8 | 117 | pub const WC_MAGNIFIERW: &str = "Magnifier"; |