Struct winsafe::HBRUSH [−][src]
#[repr(C)]pub struct HBRUSH { /* fields omitted */ }
Expand description
Handle to a brush.
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.
DeleteObject
method.
This method is common to all GDI handle types.
Creates a brush with the given system color.
Note: This should be used only to initialize the
WNDCLASSEX
’s hbrBackground
field. Any other use
will yield an invalid handle.
CreateBrushIndirect
static method.
Note: Must be paired with an
HBRUSH::DeleteObject
call.
CreateHatchBrush
static method.
Note: Must be paired with an
HBRUSH::DeleteObject
call.
CreatePatternBrush
static method.
Note: Must be paired with an
HBRUSH::DeleteObject
call.
CreateSolidBrush
static method.
Note: Must be paired with an
HBRUSH::DeleteObject
call.
GetStockObject
static method.
GetSysColorBrush
static method.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more