Struct winsafe::HDC [−][src]
#[repr(C)]pub struct HDC { /* fields omitted */ }
Expand description
Handle to a device context.
Implementations
Creates a new handle instance by wrapping a pointer.
This method is common to all handle types.
Consumes the handle returning the underlying raw pointer.
This method is common to all handle types.
Tells if the handle is invalid (null).
This method is common to all handle types.
AborthPath
method.
AngleArc
method.
BitBlt
method.
Chord
method.
CreateCompatibleBitmap
method.
Note: Must be paired with an
HBITMAP::DeleteObject
call.
CreateCompatibleDC
method.
Note: Must be paired with an HDC::DeleteDC
call.
EnumDisplayMonitors
method.
Examples
use winsafe::{HDC, HMONITOR, RECT};
let my_hdc: HDC; // initialized somewhere
my_hdc.EnumDisplayMonitors(|hmon: HMONITOR, hdc: HDC, rc: &RECT| -> bool {
println!("HMONITOR: {}, ", hmon);
true
})?;
GetDCBrushColor
method.
GetDCPenColor
method.
GetDeviceCaps
method.
GetTextColor
method.
GetTextExtentPoint32
method.
GetTextMetrics
method.
PathToRegion
method.
Note: Must be paired with an
HRGN::DeleteObject
call.
PolyBezier
method.
PolyBezierTo
method.
PolylineTo
method.
SelectObject
method for HBITMAP
.
SelectObject
method for HBRUSH
.
SelectObject
method for HFONT
.
SelectObject
method for HPEN
.
SelectObject
method for HRGN
.
SetArcDirection
method.
SetGraphicsMode
method.
SetTextAlign
method.
SetTextColor
method.
SetTextJustification
method.
SetViewportExtEx
method.
SetViewportOrgEx
method.
SetWindowExtEx
method.
SetWindowOrgEx
method.
StrokeAndFillPath
method.
StrokePath
method.
TransparentBlt
method.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more