pub struct HBRUSH(/* private fields */);
Available on crate feature
user
only.Expand description
Handle to a brush.
Trait Implementations§
source§impl Handle for HBRUSH
impl Handle for HBRUSH
source§const NULL: Self = _
const NULL: Self = _
Available on crate feature
kernel
only.The null, uninitialized handle; equals to
0
.source§const INVALID: Self = _
const INVALID: Self = _
Available on crate feature
kernel
only.The invalid handle; equals to
-1
. Read moresource§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Available on crate feature
kernel
only.Creates a new handle object by wrapping a pointer. Read more
source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Available on crate feature
kernel
only.Returns a mutable reference to the underlying raw pointer. Read more
source§unsafe fn raw_copy(&self) -> Self
unsafe fn raw_copy(&self) -> Self
Available on crate feature
kernel
only.Returns a raw copy of the underlying handle pointer. Read more
source§impl PartialEq for HBRUSH
impl PartialEq for HBRUSH
source§impl gdi_Hbrush for HBRUSH
Available on crate feature gdi
only.
impl gdi_Hbrush for HBRUSH
Available on crate feature
gdi
only.source§fn from_sys_color(color: COLOR) -> HBRUSH
fn from_sys_color(color: COLOR) -> HBRUSH
Creates a brush with the given system color. Read more
source§fn CreateBrushIndirect(lb: &LOGBRUSH) -> SysResult<DeleteObjectGuard<HBRUSH>>
fn CreateBrushIndirect(lb: &LOGBRUSH) -> SysResult<DeleteObjectGuard<HBRUSH>>
CreateBrushIndirect
function.source§fn CreateHatchBrush(
hatch: HS,
color: COLORREF
) -> SysResult<DeleteObjectGuard<HBRUSH>>
fn CreateHatchBrush( hatch: HS, color: COLORREF ) -> SysResult<DeleteObjectGuard<HBRUSH>>
CreateHatchBrush
function.source§fn CreatePatternBrush(hbmp: &HBITMAP) -> SysResult<DeleteObjectGuard<HBRUSH>>
fn CreatePatternBrush(hbmp: &HBITMAP) -> SysResult<DeleteObjectGuard<HBRUSH>>
CreatePatternBrush
function.source§fn CreateSolidBrush(color: COLORREF) -> SysResult<DeleteObjectGuard<HBRUSH>>
fn CreateSolidBrush(color: COLORREF) -> SysResult<DeleteObjectGuard<HBRUSH>>
CreateSolidBrush
function.source§fn GetStockObject(sb: STOCK_BRUSH) -> SysResult<HBRUSH>
fn GetStockObject(sb: STOCK_BRUSH) -> SysResult<HBRUSH>
GetStockObject
function.source§fn GetSysColorBrush(index: COLOR) -> SysResult<HBRUSH>
fn GetSysColorBrush(index: COLOR) -> SysResult<HBRUSH>
GetSysColorBrush
function.source§fn UnrealizeObject(&self) -> SysResult<()>
fn UnrealizeObject(&self) -> SysResult<()>
UnrealizeObject
function.impl Eq for HBRUSH
impl GdiObject for HBRUSH
Available on crate feature
gdi
only.impl Send for HBRUSH
impl StructuralPartialEq for HBRUSH
Auto Trait Implementations§
impl Freeze for HBRUSH
impl RefUnwindSafe for HBRUSH
impl !Sync for HBRUSH
impl Unpin for HBRUSH
impl UnwindSafe for HBRUSH
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more