[]Struct pango::FontDescription

pub struct FontDescription(_);

Methods

impl FontDescription[src]

pub fn new() -> FontDescription[src]

pub fn better_match<'a, P: Into<Option<&'a FontDescription>>>(
    &self,
    old_match: P,
    new_match: &FontDescription
) -> bool
[src]

pub fn get_family(&self) -> Option<GString>[src]

pub fn get_gravity(&self) -> Gravity[src]

pub fn get_set_fields(&self) -> FontMask[src]

pub fn get_size(&self) -> i32[src]

pub fn get_size_is_absolute(&self) -> bool[src]

pub fn get_stretch(&self) -> Stretch[src]

pub fn get_style(&self) -> Style[src]

pub fn get_variant(&self) -> Variant[src]

pub fn get_weight(&self) -> Weight[src]

pub fn merge<'a, P: Into<Option<&'a FontDescription>>>(
    &mut self,
    desc_to_merge: P,
    replace_existing: bool
)
[src]

pub fn set_absolute_size(&mut self, size: f64)[src]

pub fn set_family(&mut self, family: &str)[src]

pub fn set_gravity(&mut self, gravity: Gravity)[src]

pub fn set_size(&mut self, size: i32)[src]

pub fn set_stretch(&mut self, stretch: Stretch)[src]

pub fn set_style(&mut self, style: Style)[src]

pub fn set_variant(&mut self, variant: Variant)[src]

pub fn set_weight(&mut self, weight: Weight)[src]

pub fn to_filename(&self) -> Option<GString>[src]

pub fn unset_fields(&mut self, to_unset: FontMask)[src]

pub fn from_string(str: &str) -> FontDescription[src]

impl FontDescription[src]

pub fn set_family_static(&mut self, family: &'static str)[src]

Trait Implementations

impl PartialEq<FontDescription> for FontDescription[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Default for FontDescription[src]

impl Ord for FontDescription[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Clone for FontDescription

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for FontDescription[src]

impl PartialOrd<FontDescription> for FontDescription[src]

impl Display for FontDescription[src]

impl Hash for FontDescription[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for FontDescription[src]

impl StaticType for FontDescription

Auto Trait Implementations

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]