[−]Struct pango::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]
&self,
old_match: P,
new_match: &FontDescription
) -> bool
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]
&mut self,
desc_to_merge: P,
replace_existing: bool
)
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]
fn eq(&self, other: &Self) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl Default for FontDescription
[src]
impl Ord for FontDescription
[src]
fn cmp(&self, other: &FontDescription) -> Ordering
[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(&self) -> 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]
fn partial_cmp(&self, other: &FontDescription) -> Option<Ordering>
[src]
fn lt(&self, other: &FontDescription) -> bool
[src]
fn le(&self, other: &FontDescription) -> bool
[src]
fn gt(&self, other: &FontDescription) -> bool
[src]
fn ge(&self, other: &FontDescription) -> bool
[src]
impl Display for FontDescription
[src]
impl Hash for FontDescription
[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for FontDescription
[src]
impl StaticType for FontDescription
fn static_type() -> Type
Auto Trait Implementations
impl !Send for FontDescription
impl !Sync for FontDescription
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src]
T: SetValue + ?Sized,
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src]
T: ToValue + SetValue + Send + ?Sized,