pub struct HFONT(/* private fields */);
Available on crate feature
gdi
only.Expand description
Handle to a font.
Trait Implementations§
source§impl Handle for HFONT
impl Handle for HFONT
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 HFONT
impl PartialEq for HFONT
source§impl gdi_Hfont for HFONT
impl gdi_Hfont for HFONT
source§fn CreateFont(
sz: SIZE,
escapement: i32,
orientation: i32,
weight: FW,
italic: bool,
underline: bool,
strike_out: bool,
char_set: CHARSET,
out_precision: OUT_PRECIS,
clip_precision: CLIP,
quality: QUALITY,
pitch_and_family: PITCH,
face_name: &str
) -> SysResult<DeleteObjectGuard<HFONT>>
fn CreateFont( sz: SIZE, escapement: i32, orientation: i32, weight: FW, italic: bool, underline: bool, strike_out: bool, char_set: CHARSET, out_precision: OUT_PRECIS, clip_precision: CLIP, quality: QUALITY, pitch_and_family: PITCH, face_name: &str ) -> SysResult<DeleteObjectGuard<HFONT>>
CreateFont
function.source§fn CreateFontIndirect(lf: &LOGFONT) -> SysResult<DeleteObjectGuard<HFONT>>
fn CreateFontIndirect(lf: &LOGFONT) -> SysResult<DeleteObjectGuard<HFONT>>
CreateFontIndirect
function.source§fn GetStockObject(sf: STOCK_FONT) -> SysResult<HFONT>
fn GetStockObject(sf: STOCK_FONT) -> SysResult<HFONT>
GetStockObject
function.impl Eq for HFONT
impl GdiObject for HFONT
impl Send for HFONT
impl StructuralPartialEq for HFONT
Auto Trait Implementations§
impl Freeze for HFONT
impl RefUnwindSafe for HFONT
impl !Sync for HFONT
impl Unpin for HFONT
impl UnwindSafe for HFONT
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