pub struct FontDescription(/* private fields */);
Implementations§
Source§impl FontDescription
impl FontDescription
pub fn new() -> FontDescription
pub fn better_match( &self, old_match: Option<&FontDescription>, new_match: &FontDescription, ) -> bool
pub fn get_family(&self) -> Option<GString>
pub fn get_gravity(&self) -> Gravity
pub fn get_set_fields(&self) -> FontMask
pub fn get_size(&self) -> i32
pub fn get_size_is_absolute(&self) -> bool
pub fn get_stretch(&self) -> Stretch
pub fn get_style(&self) -> Style
pub fn get_variant(&self) -> Variant
pub fn get_weight(&self) -> Weight
pub fn merge( &mut self, desc_to_merge: Option<&FontDescription>, replace_existing: bool, )
pub fn set_absolute_size(&mut self, size: f64)
pub fn set_family(&mut self, family: &str)
pub fn set_gravity(&mut self, gravity: Gravity)
pub fn set_size(&mut self, size: i32)
pub fn set_stretch(&mut self, stretch: Stretch)
pub fn set_style(&mut self, style: Style)
pub fn set_variant(&mut self, variant: Variant)
pub fn set_weight(&mut self, weight: Weight)
pub fn to_filename(&self) -> Option<GString>
pub fn unset_fields(&mut self, to_unset: FontMask)
pub fn from_string(str: &str) -> FontDescription
Source§impl FontDescription
impl FontDescription
pub fn set_family_static(&mut self, family: &'static str)
Trait Implementations§
Source§impl Clone for FontDescription
impl Clone for FontDescription
Source§fn clone(&self) -> FontDescription
fn clone(&self) -> FontDescription
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 FontDescription
impl Debug for FontDescription
Source§impl Default for FontDescription
impl Default for FontDescription
Source§impl Display for FontDescription
impl Display for FontDescription
Source§impl Hash for FontDescription
impl Hash for FontDescription
Source§impl Ord for FontDescription
impl Ord for FontDescription
Source§fn cmp(&self, other: &FontDescription) -> Ordering
fn cmp(&self, other: &FontDescription) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FontDescription
impl PartialEq for FontDescription
Source§impl PartialOrd for FontDescription
impl PartialOrd for FontDescription
Source§impl StaticType for FontDescription
impl StaticType for FontDescription
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for FontDescription
Auto Trait Implementations§
impl Freeze for FontDescription
impl RefUnwindSafe for FontDescription
impl !Send for FontDescription
impl !Sync for FontDescription
impl Unpin for FontDescription
impl UnwindSafe for FontDescription
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