Struct winsafe::co::STOCK_FONT
source · pub struct STOCK_FONT(/* private fields */);
Available on crate features
kernel
and gdi
only.Expand description
HFONT::GetStockObject
i
(i32
).
Implementations§
source§impl STOCK_FONT
impl STOCK_FONT
sourcepub const unsafe fn from_raw(v: i32) -> Self
pub const unsafe fn from_raw(v: i32) -> 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) -> i32
pub const fn raw(&self) -> i32
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 STOCK_FONT
impl STOCK_FONT
pub const ANSI_FIXED: Self = _
pub const ANSI_VAR: Self = _
pub const DEVICE_DEFAULT: Self = _
pub const DEFAULT_GUI: Self = _
pub const OEM_FIXED: Self = _
pub const SYSTEM: Self = _
pub const SYSTEM_FIXED: Self = _
Trait Implementations§
source§impl AsRef<i32> for STOCK_FONT
impl AsRef<i32> for STOCK_FONT
source§impl Binary for STOCK_FONT
impl Binary for STOCK_FONT
source§impl Clone for STOCK_FONT
impl Clone for STOCK_FONT
source§fn clone(&self) -> STOCK_FONT
fn clone(&self) -> STOCK_FONT
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for STOCK_FONT
impl Debug for STOCK_FONT
source§impl Default for STOCK_FONT
impl Default for STOCK_FONT
source§fn default() -> STOCK_FONT
fn default() -> STOCK_FONT
Returns the “default value” for a type. Read more
source§impl Display for STOCK_FONT
impl Display for STOCK_FONT
source§impl From<STOCK_FONT> for i32
impl From<STOCK_FONT> for i32
source§fn from(v: STOCK_FONT) -> Self
fn from(v: STOCK_FONT) -> Self
Converts to this type from the input type.
source§impl Hash for STOCK_FONT
impl Hash for STOCK_FONT
source§impl IntUnderlying for STOCK_FONT
impl IntUnderlying for STOCK_FONT
source§impl LowerHex for STOCK_FONT
impl LowerHex for STOCK_FONT
source§impl Octal for STOCK_FONT
impl Octal for STOCK_FONT
source§impl Ord for STOCK_FONT
impl Ord for STOCK_FONT
source§impl PartialEq for STOCK_FONT
impl PartialEq for STOCK_FONT
source§fn eq(&self, other: &STOCK_FONT) -> bool
fn eq(&self, other: &STOCK_FONT) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for STOCK_FONT
impl PartialOrd for STOCK_FONT
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 moresource§impl UpperHex for STOCK_FONT
impl UpperHex for STOCK_FONT
impl Copy for STOCK_FONT
impl Eq for STOCK_FONT
impl NativeConst for STOCK_FONT
impl Send for STOCK_FONT
impl StructuralPartialEq for STOCK_FONT
Auto Trait Implementations§
impl Freeze for STOCK_FONT
impl RefUnwindSafe for STOCK_FONT
impl Sync for STOCK_FONT
impl Unpin for STOCK_FONT
impl UnwindSafe for STOCK_FONT
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