Struct pango::FontDescription
source · [−]#[repr(transparent)]pub struct FontDescription { /* private fields */ }
Implementations
sourceimpl FontDescription
impl FontDescription
pub fn as_ptr(&self) -> *mut PangoFontDescription
sourceimpl FontDescription
impl FontDescription
pub fn new() -> FontDescription
pub fn better_match(
&self,
old_match: Option<&FontDescription>,
new_match: &FontDescription
) -> bool
pub fn family(&self) -> Option<GString>
pub fn gravity(&self) -> Gravity
pub fn set_fields(&self) -> FontMask
pub fn size(&self) -> i32
pub fn is_size_absolute(&self) -> bool
pub fn stretch(&self) -> Stretch
pub fn style(&self) -> Style
pub fn variant(&self) -> Variant
pub fn variations(&self) -> Option<GString>
Available on crate feature
v1_42
only.pub fn 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_variations(&mut self, variations: Option<&str>)
Available on crate feature
v1_42
only.pub fn set_variations_static(&mut self, variations: &str)
Available on crate feature
v1_42
only.pub fn set_weight(&mut self, weight: Weight)
pub fn to_filename(&self) -> Option<GString>
pub fn to_str(&self) -> GString
pub fn unset_fields(&mut self, to_unset: FontMask)
pub fn from_string(str: &str) -> FontDescription
Trait Implementations
sourceimpl Clone for FontDescription
impl Clone for FontDescription
sourceimpl 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 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const 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 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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
impl Send for FontDescription
impl Sync for FontDescription
Auto Trait Implementations
impl RefUnwindSafe 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
sourceimpl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.