Debian Codegraph @

.cargo/vendor/windows-sys/src/Windows/Win32/UI/Magnification/mod.rs

raw
1 #[cfg(feature = "Win32_Foundation")]
2 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagGetColorEffect(hwnd : super::super::Foundation:: HWND, peffect : *mut MAGCOLOREFFECT) -> super::super::Foundation:: BOOL);
3 #[cfg(feature = "Win32_Foundation")]
4 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagGetFullscreenColorEffect(peffect : *mut MAGCOLOREFFECT) -> super::super::Foundation:: BOOL);
5 #[cfg(feature = "Win32_Foundation")]
6 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagGetFullscreenTransform(pmaglevel : *mut f32, pxoffset : *mut i32, pyoffset : *mut i32) -> super::super::Foundation:: BOOL);
7 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
8 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`"] fn MagGetImageScalingCallback(hwnd : super::super::Foundation:: HWND) -> MagImageScalingCallback);
9 #[cfg(feature = "Win32_Foundation")]
10 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagGetInputTransform(pfenabled : *mut super::super::Foundation:: BOOL, prectsource : *mut super::super::Foundation:: RECT, prectdest : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL);
11 #[cfg(feature = "Win32_Foundation")]
12 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagGetWindowFilterList(hwnd : super::super::Foundation:: HWND, pdwfiltermode : *mut MW_FILTERMODE, count : i32, phwnd : *mut super::super::Foundation:: HWND) -> i32);
13 #[cfg(feature = "Win32_Foundation")]
14 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagGetWindowSource(hwnd : super::super::Foundation:: HWND, prect : *mut super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL);
15 #[cfg(feature = "Win32_Foundation")]
16 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagGetWindowTransform(hwnd : super::super::Foundation:: HWND, ptransform : *mut MAGTRANSFORM) -> super::super::Foundation:: BOOL);
17 #[cfg(feature = "Win32_Foundation")]
18 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagInitialize() -> super::super::Foundation:: BOOL);
19 #[cfg(feature = "Win32_Foundation")]
20 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagSetColorEffect(hwnd : super::super::Foundation:: HWND, peffect : *mut MAGCOLOREFFECT) -> super::super::Foundation:: BOOL);
21 #[cfg(feature = "Win32_Foundation")]
22 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagSetFullscreenColorEffect(peffect : *const MAGCOLOREFFECT) -> super::super::Foundation:: BOOL);
23 #[cfg(feature = "Win32_Foundation")]
24 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagSetFullscreenTransform(maglevel : f32, xoffset : i32, yoffset : i32) -> super::super::Foundation:: BOOL);
25 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
26 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`"] fn MagSetImageScalingCallback(hwnd : super::super::Foundation:: HWND, callback : MagImageScalingCallback) -> super::super::Foundation:: BOOL);
27 #[cfg(feature = "Win32_Foundation")]
28 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagSetInputTransform(fenabled : super::super::Foundation:: BOOL, prectsource : *const super::super::Foundation:: RECT, prectdest : *const super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL);
29 #[cfg(feature = "Win32_Foundation")]
30 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagSetWindowFilterList(hwnd : super::super::Foundation:: HWND, dwfiltermode : MW_FILTERMODE, count : i32, phwnd : *mut super::super::Foundation:: HWND) -> super::super::Foundation:: BOOL);
31 #[cfg(feature = "Win32_Foundation")]
32 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagSetWindowSource(hwnd : super::super::Foundation:: HWND, rect : super::super::Foundation:: RECT) -> super::super::Foundation:: BOOL);
33 #[cfg(feature = "Win32_Foundation")]
34 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagSetWindowTransform(hwnd : super::super::Foundation:: HWND, ptransform : *mut MAGTRANSFORM) -> super::super::Foundation:: BOOL);
35 #[cfg(feature = "Win32_Foundation")]
36 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagShowSystemCursor(fshowcursor : super::super::Foundation:: BOOL) -> super::super::Foundation:: BOOL);
37 #[cfg(feature = "Win32_Foundation")]
38 ::windows_targets::link!("magnification.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn MagUninitialize() -> super::super::Foundation:: BOOL);
39 pub const MS_CLIPAROUNDCURSOR: i32 = 2i32;
40 pub const MS_INVERTCOLORS: i32 = 4i32;
41 pub const MS_SHOWMAGNIFIEDCURSOR: i32 = 1i32;
42 pub const MW_FILTERMODE_EXCLUDE: MW_FILTERMODE = 0u32;
43 pub const MW_FILTERMODE_INCLUDE: MW_FILTERMODE = 1u32;
44 pub const WC_MAGNIFIER: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Magnifier");
45 pub const WC_MAGNIFIERA: ::windows_sys::core::PCSTR = ::windows_sys::core::s!("Magnifier");
46 pub const WC_MAGNIFIERW: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("Magnifier");
47 pub type MW_FILTERMODE = u32;
48 #[repr(C)]
49 pub struct MAGCOLOREFFECT {
50 pub transform: [f32; 25],
51 }
52 impl ::core::marker::Copy for MAGCOLOREFFECT {}
53 impl ::core::clone::Clone for MAGCOLOREFFECT {
54 fn clone(&self) -> Self {
55 *self
56 }
57 }
58 #[repr(C)]
59 pub struct MAGIMAGEHEADER {
60 pub width: u32,
61 pub height: u32,
62 pub format: ::windows_sys::core::GUID,
63 pub stride: u32,
64 pub offset: u32,
65 pub cbSize: usize,
66 }
67 impl ::core::marker::Copy for MAGIMAGEHEADER {}
68 impl ::core::clone::Clone for MAGIMAGEHEADER {
69 fn clone(&self) -> Self {
70 *self
71 }
72 }
73 #[repr(C)]
74 pub struct MAGTRANSFORM {
75 pub v: [f32; 9],
76 }
77 impl ::core::marker::Copy for MAGTRANSFORM {}
78 impl ::core::clone::Clone for MAGTRANSFORM {
79 fn clone(&self) -> Self {
80 *self
81 }
82 }
83 #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`"]
84 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
85 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>;