[][src]Enum polyhorn_android::font::FontSize

pub enum FontSize {
    ExtraExtraSmall,
    ExtraSmall,
    Small,
    Medium,
    Large,
    ExtraLarge,
    ExtraExtraLarge,
    ExtraExtraExtraLarge,
    Dimension(Dimension<f32>),
}

Controls the size of text that is rendered to the screen.

Variants

ExtraExtraSmall

This font size is 3/5th of the medium font size.

ExtraSmall

This font size is 3/4th of the medium font size.

Small

This font size is 8/9th of the medium font size.

Medium

This is the default font size.

Large

This font size is 1.2x the medium font size.

ExtraLarge

This font size is 1.5x the medium font size.

ExtraExtraLarge

This font size is 2x the medium font size.

ExtraExtraExtraLarge

This font size is 3x the medium font size.

Dimension(Dimension<f32>)

This is a dimension (e.g. pixels or percentage). If the dimension resolves to either undefined or auto, the font size will be 0. If the dimension is a percentage, it will be relative to the parent text element's font size (not its width).

Trait Implementations

impl Clone for FontSize[src]

impl Copy for FontSize[src]

impl Debug for FontSize[src]

impl FromStr for FontSize[src]

type Err = ParseError

The associated error which can be returned from parsing.

impl PartialEq<FontSize> for FontSize[src]

impl StructuralPartialEq for FontSize[src]

impl ToTokens for FontSize[src]

Auto Trait Implementations

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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

impl<T> AsAny for T where
    T: Any
[src]

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

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

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<'a, T> Desc<'a, T> for T[src]

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.