Struct truetype::windows_metrics::SelectionFlags
source · pub struct SelectionFlags(pub u16);
Expand description
Font-selection flags.
Tuple Fields§
§0: u16
Implementations§
source§impl SelectionFlags
impl SelectionFlags
pub fn is_italic(&self) -> bool
pub fn is_underline(&self) -> bool
pub fn is_negative(&self) -> bool
pub fn is_outline(&self) -> bool
pub fn is_strikeout(&self) -> bool
pub fn is_bold(&self) -> bool
pub fn is_regular(&self) -> bool
pub fn should_use_typographic_metrics(&self) -> bool
pub fn is_wws(&self) -> bool
pub fn is_oblique(&self) -> bool
pub fn is_invalid(&self) -> bool
Trait Implementations§
source§impl Clone for SelectionFlags
impl Clone for SelectionFlags
source§fn clone(&self) -> SelectionFlags
fn clone(&self) -> SelectionFlags
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 SelectionFlags
impl Debug for SelectionFlags
source§impl Default for SelectionFlags
impl Default for SelectionFlags
source§fn default() -> SelectionFlags
fn default() -> SelectionFlags
Returns the “default value” for a type. Read more
source§impl Display for SelectionFlags
impl Display for SelectionFlags
source§impl From<SelectionFlags> for u16
impl From<SelectionFlags> for u16
source§fn from(flags: SelectionFlags) -> u16
fn from(flags: SelectionFlags) -> u16
Converts to this type from the input type.
source§impl PartialEq<SelectionFlags> for SelectionFlags
impl PartialEq<SelectionFlags> for SelectionFlags
source§fn eq(&self, other: &SelectionFlags) -> bool
fn eq(&self, other: &SelectionFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Value for SelectionFlags
impl Value for SelectionFlags
impl Copy for SelectionFlags
impl Eq for SelectionFlags
impl StructuralEq for SelectionFlags
impl StructuralPartialEq for SelectionFlags
Auto Trait Implementations§
impl RefUnwindSafe for SelectionFlags
impl Send for SelectionFlags
impl Sync for SelectionFlags
impl Unpin for SelectionFlags
impl UnwindSafe for SelectionFlags
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