pub struct FW(/* private fields */);
Available on crate features
kernel
and gdi
only.Expand description
HFONT::CreateFont
weight
and LOGFONT
lfWeight
(u32
).
Implementations§
source§impl FW
impl FW
sourcepub const unsafe fn from_raw(v: u32) -> Self
pub const unsafe fn from_raw(v: u32) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
sourcepub const fn raw(&self) -> u32
pub const fn raw(&self) -> u32
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
source§impl FW
impl FW
pub const DONTCARE: Self = _
pub const THIN: Self = _
pub const EXTRALIGHT: Self = _
pub const ULTRALIGHT: Self = _
pub const LIGHT: Self = _
pub const NORMAL: Self = _
pub const REGULAR: Self = _
pub const MEDIUM: Self = _
pub const SEMIBOLD: Self = _
pub const DEMIBOLD: Self = _
pub const BOLD: Self = _
pub const EXTRABOLD: Self = _
pub const ULTRABOLD: Self = _
pub const HEAVY: Self = _
pub const BLACK: Self = _
Trait Implementations§
source§impl IntUnderlying for FW
impl IntUnderlying for FW
source§impl Ord for FW
impl Ord for FW
source§impl PartialOrd for FW
impl PartialOrd for FW
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for FW
impl Eq for FW
impl NativeConst for FW
impl Send for FW
impl StructuralPartialEq for FW
Auto Trait Implementations§
impl Freeze for FW
impl RefUnwindSafe for FW
impl Sync for FW
impl Unpin for FW
impl UnwindSafe for FW
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