]>
git.proxmox.com Git - rustc.git/blob - vendor/windows-sys-0.42.0/src/Windows/Win32/UI/Magnification/mod.rs
1 #[cfg_attr(windows, link(name = "windows"))]
3 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
4 #[cfg(feature = "Win32_Foundation")]
5 pub fn MagGetColorEffect(hwnd
: super::super::Foundation
::HWND
, peffect
: *mut MAGCOLOREFFECT
) -> super::super::Foundation
::BOOL
;
6 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
7 #[cfg(feature = "Win32_Foundation")]
8 pub fn MagGetFullscreenColorEffect(peffect
: *mut MAGCOLOREFFECT
) -> super::super::Foundation
::BOOL
;
9 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
10 #[cfg(feature = "Win32_Foundation")]
11 pub fn MagGetFullscreenTransform(pmaglevel
: *mut f32, pxoffset
: *mut i32, pyoffset
: *mut i32) -> super::super::Foundation
::BOOL
;
12 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"]
13 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
14 pub fn MagGetImageScalingCallback(hwnd
: super::super::Foundation
::HWND
) -> MagImageScalingCallback
;
15 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
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
;
18 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
19 #[cfg(feature = "Win32_Foundation")]
20 pub fn MagGetWindowFilterList(hwnd
: super::super::Foundation
::HWND
, pdwfiltermode
: *mut MW_FILTERMODE
, count
: i32, phwnd
: *mut super::super::Foundation
::HWND
) -> i32;
21 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
22 #[cfg(feature = "Win32_Foundation")]
23 pub fn MagGetWindowSource(hwnd
: super::super::Foundation
::HWND
, prect
: *mut super::super::Foundation
::RECT
) -> super::super::Foundation
::BOOL
;
24 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
25 #[cfg(feature = "Win32_Foundation")]
26 pub fn MagGetWindowTransform(hwnd
: super::super::Foundation
::HWND
, ptransform
: *mut MAGTRANSFORM
) -> super::super::Foundation
::BOOL
;
27 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
28 #[cfg(feature = "Win32_Foundation")]
29 pub fn MagInitialize() -> super::super::Foundation
::BOOL
;
30 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
31 #[cfg(feature = "Win32_Foundation")]
32 pub fn MagSetColorEffect(hwnd
: super::super::Foundation
::HWND
, peffect
: *mut MAGCOLOREFFECT
) -> super::super::Foundation
::BOOL
;
33 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
34 #[cfg(feature = "Win32_Foundation")]
35 pub fn MagSetFullscreenColorEffect(peffect
: *const MAGCOLOREFFECT
) -> super::super::Foundation
::BOOL
;
36 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
37 #[cfg(feature = "Win32_Foundation")]
38 pub fn MagSetFullscreenTransform(maglevel
: f32, xoffset
: i32, yoffset
: i32) -> super::super::Foundation
::BOOL
;
39 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"]
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
;
42 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
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
;
45 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
46 #[cfg(feature = "Win32_Foundation")]
47 pub fn MagSetWindowFilterList(hwnd
: super::super::Foundation
::HWND
, dwfiltermode
: MW_FILTERMODE
, count
: i32, phwnd
: *mut super::super::Foundation
::HWND
) -> super::super::Foundation
::BOOL
;
48 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
49 #[cfg(feature = "Win32_Foundation")]
50 pub fn MagSetWindowSource(hwnd
: super::super::Foundation
::HWND
, rect
: super::super::Foundation
::RECT
) -> super::super::Foundation
::BOOL
;
51 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
52 #[cfg(feature = "Win32_Foundation")]
53 pub fn MagSetWindowTransform(hwnd
: super::super::Foundation
::HWND
, ptransform
: *mut MAGTRANSFORM
) -> super::super::Foundation
::BOOL
;
54 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
55 #[cfg(feature = "Win32_Foundation")]
56 pub fn MagShowSystemCursor(fshowcursor
: super::super::Foundation
::BOOL
) -> super::super::Foundation
::BOOL
;
57 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`*"]
58 #[cfg(feature = "Win32_Foundation")]
59 pub fn MagUninitialize() -> super::super::Foundation
::BOOL
;
61 #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"]
62 pub const MS_CLIPAROUNDCURSOR
: i32 = 2i32;
63 #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"]
64 pub const MS_INVERTCOLORS
: i32 = 4i32;
65 #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"]
66 pub const MS_SHOWMAGNIFIEDCURSOR
: i32 = 1i32;
67 #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"]
68 pub const WC_MAGNIFIER
: &str = "Magnifier";
69 #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"]
70 pub const WC_MAGNIFIERA
: &str = "Magnifier";
71 #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"]
72 pub const WC_MAGNIFIERW
: &str = "Magnifier";
73 #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"]
74 pub type MW_FILTERMODE
= u32;
75 #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"]
76 pub const MW_FILTERMODE_EXCLUDE
: MW_FILTERMODE
= 0u32;
77 #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"]
78 pub const MW_FILTERMODE_INCLUDE
: MW_FILTERMODE
= 1u32;
80 #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"]
81 pub struct MAGCOLOREFFECT
{
82 pub transform
: [f32; 25],
84 impl ::core
::marker
::Copy
for MAGCOLOREFFECT {}
85 impl ::core
::clone
::Clone
for MAGCOLOREFFECT
{
86 fn clone(&self) -> Self {
91 #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"]
92 pub struct MAGIMAGEHEADER
{
95 pub format
: ::windows_sys
::core
::GUID
,
100 impl ::core
::marker
::Copy
for MAGIMAGEHEADER {}
101 impl ::core
::clone
::Clone
for MAGIMAGEHEADER
{
102 fn clone(&self) -> Self {
107 #[doc = "*Required features: `\"Win32_UI_Magnification\"`*"]
108 pub struct MAGTRANSFORM
{
111 impl ::core
::marker
::Copy
for MAGTRANSFORM {}
112 impl ::core
::clone
::Clone
for MAGTRANSFORM
{
113 fn clone(&self) -> Self {
117 #[doc = "*Required features: `\"Win32_UI_Magnification\"`, `\"Win32_Foundation\"`, `\"Win32_Graphics_Gdi\"`*"]
118 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))]
119 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
>;