pub enum FontFamily {
    Values(FontFamilyList),
    System(SystemFont),
}Expand description
Specifies a prioritized list of font family names or generic family names.
Variants§
Implementations§
Source§impl FontFamily
 
impl FontFamily
Sourcepub fn system_font(f: SystemFont) -> Self
 
pub fn system_font(f: SystemFont) -> Self
Get a specified value that represents a system font.
Sourcepub fn get_system(&self) -> Option<SystemFont>
 
pub fn get_system(&self) -> Option<SystemFont>
Retreive a SystemFont from the specified value.
fn compute_system( &self, _context: &Context<'_>, ) -> <FontFamily as ToComputedValue>::ComputedValue
Trait Implementations§
Source§impl Clone for FontFamily
 
impl Clone for FontFamily
Source§fn clone(&self) -> FontFamily
 
fn clone(&self) -> FontFamily
Returns a duplicate 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 FontFamily
 
impl Debug for FontFamily
Source§impl Hash for FontFamily
 
impl Hash for FontFamily
Source§impl Parse for FontFamily
 
impl Parse for FontFamily
Source§fn parse<'i, 't>(
    context: &ParserContext<'_>,
    input: &mut Parser<'i, 't>,
) -> Result<FontFamily, ParseError<'i>>
 
fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<FontFamily, ParseError<'i>>
Source§impl PartialEq for FontFamily
 
impl PartialEq for FontFamily
Source§impl SpecifiedValueInfo for FontFamily
 
impl SpecifiedValueInfo for FontFamily
Source§const SUPPORTED_TYPES: u8 = 0u8
 
const SUPPORTED_TYPES: u8 = 0u8
Supported CssTypes by the given value type. Read more
Source§impl ToComputedValue for FontFamily
 
impl ToComputedValue for FontFamily
Source§type ComputedValue = FontFamily
 
type ComputedValue = FontFamily
The computed value type we’re going to be converted to.
Source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
 
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Convert a specified value to a computed value, using itself and the data
inside the 
Context.Source§fn from_computed_value(other: &FontFamily) -> Self
 
fn from_computed_value(other: &FontFamily) -> Self
Convert a computed value to specified value form. Read more
Source§impl ToCss for FontFamily
 
impl ToCss for FontFamily
Source§fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
    W: Write,
 
fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
    W: Write,
Serialize 
self in CSS syntax, writing to dest.Source§fn to_css_string(&self) -> String
 
fn to_css_string(&self) -> String
Serialize 
self in CSS syntax and return a string. Read moreSource§fn to_css_cssstring(&self) -> String
 
fn to_css_cssstring(&self) -> String
Serialize 
self in CSS syntax and return a CssString. Read moreSource§impl ToShmem for FontFamily
 
impl ToShmem for FontFamily
Source§impl ToTyped for FontFamily
 
impl ToTyped for FontFamily
Source§fn to_typed(&self) -> Option<TypedValue>
 
fn to_typed(&self) -> Option<TypedValue>
impl Eq for FontFamily
impl StructuralPartialEq for FontFamily
Auto Trait Implementations§
impl Freeze for FontFamily
impl RefUnwindSafe for FontFamily
impl Send for FontFamily
impl Sync for FontFamily
impl Unpin for FontFamily
impl UnwindSafe for FontFamily
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
 
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
 
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
 
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
 
fn maybe_boxed(self) -> T
Convert