pub struct DeleteDCGuard { /* private fields */ }
kernel
and gdi
only.Expand description
Implementations§
Source§impl DeleteDCGuard
impl DeleteDCGuard
Sourcepub const unsafe fn new(handle: HDC) -> Self
pub const unsafe fn new(handle: HDC) -> Self
Constructs the guard by taking ownership of the handle.
This method can be used as an escape hatch to interoperate with other libraries.
§Safety
Be sure the handle must be freed with the specified function at the end of scope.
Sourcepub fn leak(&mut self) -> HDC
pub fn leak(&mut self) -> HDC
Ejects the underlying handle, leaving a
Handle::INVALID
in its
place.
Since the internal handle will be invalidated, the destructor will not run. It’s your responsability to run it, otherwise you’ll cause a resource leak.
Methods from Deref<Target = HDC>§
Sourcepub fn AbortPath(&self) -> SysResult<()>
pub fn AbortPath(&self) -> SysResult<()>
AborthPath
function.
Sourcepub fn AlphaBlend(
&self,
origin_dest: RECT,
hdc_src: &HDC,
origin_src: RECT,
ftn: &BLENDFUNCTION,
) -> SysResult<()>
pub fn AlphaBlend( &self, origin_dest: RECT, hdc_src: &HDC, origin_src: RECT, ftn: &BLENDFUNCTION, ) -> SysResult<()>
AlphaBlend
function.
Sourcepub fn AngleArc(
&self,
center: POINT,
radius: u32,
start_angle: f32,
sweep_angle: f32,
) -> SysResult<()>
pub fn AngleArc( &self, center: POINT, radius: u32, start_angle: f32, sweep_angle: f32, ) -> SysResult<()>
AngleArc
function.
Sourcepub fn Arc(
&self,
bound: RECT,
radial_start: POINT,
radial_end: POINT,
) -> SysResult<()>
pub fn Arc( &self, bound: RECT, radial_start: POINT, radial_end: POINT, ) -> SysResult<()>
Arc
function.
Sourcepub fn ArcTo(
&self,
bound: RECT,
radial_start: POINT,
radial_end: POINT,
) -> SysResult<()>
pub fn ArcTo( &self, bound: RECT, radial_start: POINT, radial_end: POINT, ) -> SysResult<()>
ArcTo
function.
Sourcepub fn BitBlt(
&self,
dest_pos: POINT,
sz: SIZE,
hdc_src: &HDC,
src_src: POINT,
rop: ROP,
) -> SysResult<()>
pub fn BitBlt( &self, dest_pos: POINT, sz: SIZE, hdc_src: &HDC, src_src: POINT, rop: ROP, ) -> SysResult<()>
BitBlt
function.
Sourcepub fn ChoosePixelFormat(&self, pfd: &PIXELFORMATDESCRIPTOR) -> SysResult<i32>
pub fn ChoosePixelFormat(&self, pfd: &PIXELFORMATDESCRIPTOR) -> SysResult<i32>
ChoosePixelFormat
function.
Sourcepub fn Chord(
&self,
bounds: RECT,
start_radial: POINT,
end_radial: POINT,
) -> SysResult<()>
pub fn Chord( &self, bounds: RECT, start_radial: POINT, end_radial: POINT, ) -> SysResult<()>
Chord
function.
Sourcepub fn CloseFigure(&self) -> SysResult<()>
pub fn CloseFigure(&self) -> SysResult<()>
CloseFigure
function.
Sourcepub fn CreateCompatibleBitmap(
&self,
cx: i32,
cy: i32,
) -> SysResult<DeleteObjectGuard<HBITMAP>>
pub fn CreateCompatibleBitmap( &self, cx: i32, cy: i32, ) -> SysResult<DeleteObjectGuard<HBITMAP>>
CreateCompatibleBitmap
function.
Sourcepub fn CreateCompatibleDC(&self) -> SysResult<DeleteDCGuard>
pub fn CreateCompatibleDC(&self) -> SysResult<DeleteDCGuard>
CreateCompatibleDC
function.
Sourcepub fn CreateHalftonePalette(&self) -> SysResult<DeleteObjectPaletteGuard>
pub fn CreateHalftonePalette(&self) -> SysResult<DeleteObjectPaletteGuard>
CreateHalftonePalette
function.
Sourcepub fn DescribePixelFormat(
&self,
index: i32,
) -> SysResult<PIXELFORMATDESCRIPTOR>
pub fn DescribePixelFormat( &self, index: i32, ) -> SysResult<PIXELFORMATDESCRIPTOR>
DescribePixelFormat
function.
Sourcepub fn ExcludeClipRect(&self, rc: RECT) -> SysResult<REGION>
pub fn ExcludeClipRect(&self, rc: RECT) -> SysResult<REGION>
ExcludeClipRect
function.
Sourcepub fn FlattenPath(&self) -> SysResult<()>
pub fn FlattenPath(&self) -> SysResult<()>
FlattenPath
function.
Sourcepub fn FrameRgn(
&self,
rgn: &HRGN,
brush: &HBRUSH,
w: i32,
h: i32,
) -> SysResult<()>
pub fn FrameRgn( &self, rgn: &HRGN, brush: &HBRUSH, w: i32, h: i32, ) -> SysResult<()>
FrameRgn
function.
Sourcepub fn GetBkColor(&self) -> SysResult<COLORREF>
pub fn GetBkColor(&self) -> SysResult<COLORREF>
GetBkColor
function.
Sourcepub fn GetCurrentObject(&self, kind: CUR_OBJ) -> SysResult<CurObj>
pub fn GetCurrentObject(&self, kind: CUR_OBJ) -> SysResult<CurObj>
GetCurrentObject
function.
§Examples
use winsafe::{self as w, prelude::*, co};
let hdc: w::HDC; // initialized somewhere
let obj = hdc.GetCurrentObject(co::CUR_OBJ::BRUSH)?;
let w::CurObj::Brush(hbrush) = obj else { unreachable!() };
println!("HBRUSH: {}", hbrush);
w::SysResult::Ok(())
Sourcepub fn GetCurrentPositionEx(&self) -> SysResult<POINT>
pub fn GetCurrentPositionEx(&self) -> SysResult<POINT>
GetCurrentPositionEx
function.
Sourcepub fn GetDCBrushColor(&self) -> SysResult<COLORREF>
pub fn GetDCBrushColor(&self) -> SysResult<COLORREF>
GetDCBrushColor
function.
Sourcepub fn GetDCPenColor(&self) -> SysResult<COLORREF>
pub fn GetDCPenColor(&self) -> SysResult<COLORREF>
GetDCPenColor
function.
Sourcepub fn GetDeviceCaps(&self, index: GDC) -> i32
pub fn GetDeviceCaps(&self, index: GDC) -> i32
GetDeviceCaps
function.
Sourcepub unsafe fn GetDIBits(
&self,
hbm: &HBITMAP,
first_scan_line: u32,
num_scan_lines: u32,
bmp_data_buf: Option<&mut [u8]>,
bmi: &mut BITMAPINFO,
usage: DIB,
) -> SysResult<i32>
pub unsafe fn GetDIBits( &self, hbm: &HBITMAP, first_scan_line: u32, num_scan_lines: u32, bmp_data_buf: Option<&mut [u8]>, bmi: &mut BITMAPINFO, usage: DIB, ) -> SysResult<i32>
GetDIBits
function.
§Safety
If bmpDataBuf
is smaller than needed, you’ll have a buffer overflow.
§Examples
Taking a screenshot and saving to file:
use winsafe::{self as w, prelude::*, co};
let cx_screen = w::GetSystemMetrics(co::SM::CXSCREEN);
let cy_screen = w::GetSystemMetrics(co::SM::CYSCREEN);
let hdc_screen = w::HWND::DESKTOP.GetDC()?;
let hbmp = hdc_screen.CreateCompatibleBitmap(cx_screen, cy_screen)?;
let hdc_mem = hdc_screen.CreateCompatibleDC()?;
let _hbmp_guard = hdc_mem.SelectObject(&*hbmp)?;
hdc_mem.BitBlt(
w::POINT::new(),
w::SIZE::with(cx_screen, cy_screen),
&hdc_screen,
w::POINT::new(),
co::ROP::SRCCOPY,
)?;
let bmp_obj = hbmp.GetObject()?;
let mut bi = w::BITMAPINFO::default();
bi.bmiHeader.biWidth = cx_screen;
bi.bmiHeader.biHeight = cy_screen;
bi.bmiHeader.biPlanes = 1;
bi.bmiHeader.biBitCount = 32;
bi.bmiHeader.biCompression = co::BI::RGB;
let bmp_size = (bmp_obj.bmWidth * (bi.bmiHeader.biBitCount as i32) + 31)
/ 32 * 4 * bmp_obj.bmHeight;
let mut data_buf = vec![0u8; bmp_size as _];
unsafe {
hdc_screen.GetDIBits(
&hbmp,
0,
cy_screen as _,
Some(&mut data_buf),
&mut bi,
co::DIB::RGB_COLORS,
)?;
}
let mut bfh = w::BITMAPFILEHEADER::default();
bfh.bfOffBits = (std::mem::size_of::<w::BITMAPFILEHEADER>()
+ std::mem::size_of::<w::BITMAPINFOHEADER>()) as _;
bfh.bfSize = bfh.bfOffBits + (bmp_size as u32);
let fo = w::File::open("C:\\Temp\\foo.bmp", w::FileAccess::OpenOrCreateRW)?;
fo.write(bfh.serialize())?;
fo.write(bi.bmiHeader.serialize())?;
fo.write(&data_buf)?;
Sourcepub fn GetPixelFormat(&self) -> SysResult<i32>
pub fn GetPixelFormat(&self) -> SysResult<i32>
GetPixelFormat
function.
Sourcepub fn GetStretchBltMode(&self) -> SysResult<STRETCH_MODE>
pub fn GetStretchBltMode(&self) -> SysResult<STRETCH_MODE>
GetStretchBltMode
function.
Sourcepub fn GetTextColor(&self) -> SysResult<COLORREF>
pub fn GetTextColor(&self) -> SysResult<COLORREF>
GetTextColor
function.
Sourcepub fn GetTextExtentPoint32(&self, text: &str) -> SysResult<SIZE>
pub fn GetTextExtentPoint32(&self, text: &str) -> SysResult<SIZE>
GetTextExtentPoint32
function.
Sourcepub fn GetTextFace(&self) -> SysResult<String>
pub fn GetTextFace(&self) -> SysResult<String>
GetTextFace
function.
Sourcepub fn GetTextMetrics(&self) -> SysResult<TEXTMETRIC>
pub fn GetTextMetrics(&self) -> SysResult<TEXTMETRIC>
GetTextMetrics
function.
Sourcepub fn GetViewportExtEx(&self) -> SysResult<SIZE>
pub fn GetViewportExtEx(&self) -> SysResult<SIZE>
GetViewportExtEx
function.
Sourcepub fn GetViewportOrgEx(&self) -> SysResult<POINT>
pub fn GetViewportOrgEx(&self) -> SysResult<POINT>
GetViewportOrgEx
function.
Sourcepub fn GetWindowExtEx(&self) -> SysResult<SIZE>
pub fn GetWindowExtEx(&self) -> SysResult<SIZE>
GetWindowExtEx
function.
Sourcepub fn GetWindowOrgEx(&self) -> SysResult<POINT>
pub fn GetWindowOrgEx(&self) -> SysResult<POINT>
GetWindowOrgEx
function.
Sourcepub fn HiMetricToPixel(&self, x: i32, y: i32) -> (i32, i32)
pub fn HiMetricToPixel(&self, x: i32, y: i32) -> (i32, i32)
AtlHiMetricToPixel
function.
Converts HIMETRIC units to pixels. The inverse operation is
HDC::PixelToHiMetric
.
Sourcepub fn IntersectClipRect(&self, rc: RECT) -> SysResult<()>
pub fn IntersectClipRect(&self, rc: RECT) -> SysResult<()>
IntersectClipRect
function.
Sourcepub fn MaskBlt(
&self,
dest_top_left: POINT,
sz: SIZE,
hdc_src: &HDC,
src_top_left: POINT,
hbm_mask: &HBITMAP,
mask_offset: POINT,
rop: ROP,
) -> SysResult<()>
pub fn MaskBlt( &self, dest_top_left: POINT, sz: SIZE, hdc_src: &HDC, src_top_left: POINT, hbm_mask: &HBITMAP, mask_offset: POINT, rop: ROP, ) -> SysResult<()>
MaskBlt
function.
Sourcepub fn MoveToEx(&self, x: i32, y: i32, pt: Option<&mut POINT>) -> SysResult<()>
pub fn MoveToEx(&self, x: i32, y: i32, pt: Option<&mut POINT>) -> SysResult<()>
MoveToEx
function.
Sourcepub fn PathToRegion(&self) -> SysResult<DeleteObjectGuard<HRGN>>
pub fn PathToRegion(&self) -> SysResult<DeleteObjectGuard<HRGN>>
PathToRegion
function.
Sourcepub fn Pie(
&self,
bounds: RECT,
radial_1: POINT,
radial_2: POINT,
) -> SysResult<()>
pub fn Pie( &self, bounds: RECT, radial_1: POINT, radial_2: POINT, ) -> SysResult<()>
Pie
function.
Sourcepub fn PixelToHiMetric(&self, x: i32, y: i32) -> (i32, i32)
pub fn PixelToHiMetric(&self, x: i32, y: i32) -> (i32, i32)
AtlPixelToHiMetric
function.
Converts pixels to HIMETRIC units. The inverse operation is
HDC::HiMetricToPixel
.
Sourcepub fn PolyBezier(&self, pts: &[POINT]) -> SysResult<()>
pub fn PolyBezier(&self, pts: &[POINT]) -> SysResult<()>
PolyBezier
function.
Sourcepub fn PolyBezierTo(&self, pts: &[POINT]) -> SysResult<()>
pub fn PolyBezierTo(&self, pts: &[POINT]) -> SysResult<()>
PolyBezierTo
function.
Sourcepub fn PolylineTo(&self, pts: &[POINT]) -> SysResult<()>
pub fn PolylineTo(&self, pts: &[POINT]) -> SysResult<()>
PolylineTo
function.
Sourcepub fn PolyPolygon(&self, polygons: &[&[POINT]]) -> SysResult<()>
pub fn PolyPolygon(&self, polygons: &[&[POINT]]) -> SysResult<()>
PolyPolygon
function.
Sourcepub fn PolyPolyline(&self, polylines: &[&[POINT]]) -> SysResult<()>
pub fn PolyPolyline(&self, polylines: &[&[POINT]]) -> SysResult<()>
PolyPolyline
function.
Sourcepub fn RealizePalette(&self) -> SysResult<u32>
pub fn RealizePalette(&self) -> SysResult<u32>
RealizePalette
function.
Sourcepub fn SelectClipPath(&self, mode: RGN) -> SysResult<()>
pub fn SelectClipPath(&self, mode: RGN) -> SysResult<()>
SelectClipPath
function.
Sourcepub fn SelectClipRgn(&self, rgn: &HRGN) -> SysResult<REGION>
pub fn SelectClipRgn(&self, rgn: &HRGN) -> SysResult<REGION>
SelectClipRgn
function.
Sourcepub fn SelectObject<G>(
&self,
hgdiobj: &G,
) -> SysResult<SelectObjectGuard<'_, G>>where
G: GdiObject,
pub fn SelectObject<G>(
&self,
hgdiobj: &G,
) -> SysResult<SelectObjectGuard<'_, G>>where
G: GdiObject,
SelectObject
function.
In the original C implementation, SelectObject
returns a handle to the
object being replaced. You must perform a cleanup operation, calling
SelectObject
again, passing the handle to the replaced object.
Here, the cleanup is performed automatically, because SelectObject
returns a SelectObjectGuard
, which
stores the replaced handle and calls SelectObject
automatically when
the guard goes out of scope. You must, however, keep the guard alive,
otherwise the cleanup will be performed right away.
§Examples
use winsafe::{self as w, prelude::*, co};
let hdc: w::HDC; // initialized somewhere
let hpen = w::HPEN::CreatePen(
co::PS::SOLID,
1,
w::COLORREF::from_rgb(0xff, 0x00, 0x88),
)?;
let _pen_guard = hdc.SelectObject(&*hpen); // keep guard alive
Sourcepub fn SelectPalette(
&self,
hpal: &HPALETTE,
force_bkgd: bool,
) -> SysResult<HPALETTE>
pub fn SelectPalette( &self, hpal: &HPALETTE, force_bkgd: bool, ) -> SysResult<HPALETTE>
SelectPalette
function.
Sourcepub fn SetArcDirection(&self, dir: AD) -> SysResult<AD>
pub fn SetArcDirection(&self, dir: AD) -> SysResult<AD>
SetArcDirection
function.
Sourcepub fn SetBkColor(&self, color: COLORREF) -> SysResult<COLORREF>
pub fn SetBkColor(&self, color: COLORREF) -> SysResult<COLORREF>
SetBkColor
function.
Sourcepub fn SetBrushOrgEx(&self, new_origin: POINT) -> SysResult<POINT>
pub fn SetBrushOrgEx(&self, new_origin: POINT) -> SysResult<POINT>
SetBrushOrgEx
function.
Sourcepub fn SetDCBrushColor(&self, color: COLORREF) -> SysResult<COLORREF>
pub fn SetDCBrushColor(&self, color: COLORREF) -> SysResult<COLORREF>
SetDCBrushColor
function.
Sourcepub fn SetDCPenColor(&self, color: COLORREF) -> SysResult<COLORREF>
pub fn SetDCPenColor(&self, color: COLORREF) -> SysResult<COLORREF>
SetDCPenColor
function.
Sourcepub fn SetDIBits(
&self,
hbm: &HBITMAP,
first_scan_line: u32,
num_scan_lines: u32,
dib_color_data: &[u8],
bmi: &BITMAPINFO,
color_use: DIB,
) -> SysResult<i32>
pub fn SetDIBits( &self, hbm: &HBITMAP, first_scan_line: u32, num_scan_lines: u32, dib_color_data: &[u8], bmi: &BITMAPINFO, color_use: DIB, ) -> SysResult<i32>
SetDIBits
function.
Sourcepub fn SetGraphicsMode(&self, mode: GM) -> SysResult<GM>
pub fn SetGraphicsMode(&self, mode: GM) -> SysResult<GM>
SetGraphicsMode
function.
Sourcepub fn SetStretchBltMode(&self, mode: STRETCH_MODE) -> SysResult<STRETCH_MODE>
pub fn SetStretchBltMode(&self, mode: STRETCH_MODE) -> SysResult<STRETCH_MODE>
SetStretchBltMode
function.
Sourcepub fn SetTextAlign(&self, align: TA) -> SysResult<TA>
pub fn SetTextAlign(&self, align: TA) -> SysResult<TA>
SetTextAlign
function.
Sourcepub fn SetTextColor(&self, color: COLORREF) -> SysResult<COLORREF>
pub fn SetTextColor(&self, color: COLORREF) -> SysResult<COLORREF>
SetTextColor
function.
Sourcepub fn SetTextJustification(&self, extra: i32, count: i32) -> SysResult<()>
pub fn SetTextJustification(&self, extra: i32, count: i32) -> SysResult<()>
SetTextJustification
function.
Sourcepub fn SetViewportExtEx(&self, x: i32, y: i32) -> SysResult<SIZE>
pub fn SetViewportExtEx(&self, x: i32, y: i32) -> SysResult<SIZE>
SetViewportExtEx
function.
Sourcepub fn SetViewportOrgEx(&self, x: i32, y: i32) -> SysResult<POINT>
pub fn SetViewportOrgEx(&self, x: i32, y: i32) -> SysResult<POINT>
SetViewportOrgEx
function.
Sourcepub fn SetWindowExtEx(&self, x: i32, y: i32) -> SysResult<SIZE>
pub fn SetWindowExtEx(&self, x: i32, y: i32) -> SysResult<SIZE>
SetWindowExtEx
function.
Sourcepub fn SetWindowOrgEx(&self, x: i32, y: i32) -> SysResult<POINT>
pub fn SetWindowOrgEx(&self, x: i32, y: i32) -> SysResult<POINT>
SetWindowOrgEx
function.
Sourcepub fn StretchBlt(
&self,
pos_dest: POINT,
sz_dest: SIZE,
hdc_src: &HDC,
pt_src: POINT,
sz_src: SIZE,
rop: ROP,
) -> SysResult<()>
pub fn StretchBlt( &self, pos_dest: POINT, sz_dest: SIZE, hdc_src: &HDC, pt_src: POINT, sz_src: SIZE, rop: ROP, ) -> SysResult<()>
StretchBlt
function.
Sourcepub fn StrokeAndFillPath(&self) -> SysResult<()>
pub fn StrokeAndFillPath(&self) -> SysResult<()>
StrokeAndFillPath
function.
Sourcepub fn StrokePath(&self) -> SysResult<()>
pub fn StrokePath(&self) -> SysResult<()>
StrokePath
function.
Sourcepub fn TransparentBlt(
&self,
dest_top_left: POINT,
dest_sz: SIZE,
hdc_src: HDC,
src_top_left: POINT,
src_sz: SIZE,
color_transparent: COLORREF,
) -> SysResult<()>
pub fn TransparentBlt( &self, dest_top_left: POINT, dest_sz: SIZE, hdc_src: HDC, src_top_left: POINT, src_sz: SIZE, color_transparent: COLORREF, ) -> SysResult<()>
TransparentBlt
function.
Sourcepub fn UpdateColors(&self) -> SysResult<()>
pub fn UpdateColors(&self) -> SysResult<()>
UpdateColors
function.
Sourcepub unsafe fn raw_copy(&self) -> Self
Available on crate feature user
only.
pub unsafe fn raw_copy(&self) -> Self
user
only.Returns a raw copy of the underlying handle pointer.
§Safety
As the name implies, raw_copy
returns a raw copy of the
handle, so closing one of the copies won’t close the others.
This means a handle can be used after it has been closed, what
can lead to errors and undefined behavior. Even worse: sometimes
Windows reuses handle values, so you can call a method on a
completely different handle type, what can be catastrophic.
However, in some cases the Windows API demands a copy of the
handle – raw_copy
is an escape hatch to fill this gap.
Sourcepub unsafe fn as_mut(&mut self) -> &mut *mut c_void
Available on crate feature user
only.
pub unsafe fn as_mut(&mut self) -> &mut *mut c_void
user
only.Returns a mutable reference to the underlying raw pointer.
This method can be used as an escape hatch to interoperate with other libraries.
§Safety
This method exposes the raw pointer used by raw Windows calls. It’s an opaque pointer to an internal Windows structure, and no dereferencings should be attempted.
Sourcepub fn ptr(&self) -> *mut c_void
Available on crate feature user
only.
pub fn ptr(&self) -> *mut c_void
user
only.Returns the underlying raw pointer.
This method exposes the raw pointer used by raw Windows calls. It’s an opaque pointer to an internal Windows structure, and no dereferencings should be attempted.
This method can be used as an escape hatch to interoperate with other libraries.
Sourcepub fn DrawFocusRect(&self, rect: RECT) -> SysResult<()>
Available on crate feature user
only.
pub fn DrawFocusRect(&self, rect: RECT) -> SysResult<()>
user
only.DrawFocusRect
function.
Sourcepub fn DrawText(&self, text: &str, bounds: RECT, format: DT) -> SysResult<i32>
Available on crate feature user
only.
pub fn DrawText(&self, text: &str, bounds: RECT, format: DT) -> SysResult<i32>
user
only.DrawText
function.
Sourcepub fn DrawTextEx(
&self,
text: &str,
bounds: RECT,
format: DT,
dtp: Option<&DRAWTEXTPARAMS>,
) -> SysResult<i32>
Available on crate feature user
only.
pub fn DrawTextEx( &self, text: &str, bounds: RECT, format: DT, dtp: Option<&DRAWTEXTPARAMS>, ) -> SysResult<i32>
user
only.DrawTextExW
function.
Sourcepub fn EnumDisplayMonitors<F>(
&self,
rc_clip: Option<RECT>,
func: F,
) -> SysResult<()>
Available on crate feature user
only.
pub fn EnumDisplayMonitors<F>( &self, rc_clip: Option<RECT>, func: F, ) -> SysResult<()>
user
only.EnumDisplayMonitors
function.
§Examples
use winsafe::{self as w, prelude::*};
let hdc: w::HDC; // initialized somewhere
hdc.EnumDisplayMonitors(
None,
|hmon: w::HMONITOR, hdc: w::HDC, rc: &w::RECT| -> bool {
println!("HMONITOR: {}, ", hmon);
true
},
)?;
Sourcepub fn ExcludeUpdateRgn(&self, hwnd: &HWND) -> SysResult<REGION>
Available on crate feature user
only.
pub fn ExcludeUpdateRgn(&self, hwnd: &HWND) -> SysResult<REGION>
user
only.ExcludeUpdateRgn
function.
Sourcepub fn FrameRect(&self, rc: RECT, hbr: &HBRUSH) -> SysResult<()>
Available on crate feature user
only.
pub fn FrameRect(&self, rc: RECT, hbr: &HBRUSH) -> SysResult<()>
user
only.FrameRect
function.
Sourcepub fn InvertRect(&self, rc: RECT) -> SysResult<()>
Available on crate feature user
only.
pub fn InvertRect(&self, rc: RECT) -> SysResult<()>
user
only.InvertRect
function.
Sourcepub fn PaintDesktop(&self) -> SysResult<()>
Available on crate feature user
only.
pub fn PaintDesktop(&self) -> SysResult<()>
user
only.PaintDesktop
function.
Sourcepub fn WindowFromDC(&self) -> Option<HWND>
Available on crate feature user
only.
pub fn WindowFromDC(&self) -> Option<HWND>
user
only.WindowFromDC
function.