Struct pango::FontDescription
source · [−]pub struct FontDescription(_);Implementations
sourceimpl 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
sourceimpl FontDescription
impl FontDescription
pub fn set_family_static(&mut self, family: &'static str)
Trait Implementations
sourceimpl Clone for FontDescription
impl Clone for FontDescription
sourcefn clone(&self) -> FontDescription
fn clone(&self) -> FontDescription
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for FontDescription
impl Debug for FontDescription
sourceimpl Default for FontDescription
impl Default for FontDescription
sourceimpl Display for FontDescription
impl Display for FontDescription
sourceimpl Hash for FontDescription
impl Hash for FontDescription
sourceimpl Ord for FontDescription
impl Ord for FontDescription
sourcefn cmp(&self, other: &FontDescription) -> Ordering
fn cmp(&self, other: &FontDescription) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<FontDescription> for FontDescription
impl PartialEq<FontDescription> for FontDescription
sourceimpl PartialOrd<FontDescription> for FontDescription
impl PartialOrd<FontDescription> for FontDescription
sourcefn partial_cmp(&self, other: &FontDescription) -> Option<Ordering>
fn partial_cmp(&self, other: &FontDescription) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl StaticType for FontDescription
impl StaticType for FontDescription
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for FontDescription
Auto Trait Implementations
impl RefUnwindSafe for FontDescription
impl !Send for FontDescription
impl !Sync for FontDescription
impl Unpin for FontDescription
impl UnwindSafe for FontDescription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more