pub enum FontSize {
ExtraExtraSmall,
ExtraSmall,
Small,
Medium,
Large,
ExtraLarge,
ExtraExtraLarge,
ExtraExtraExtraLarge,
Dimension(Dimension<f32>),
}Expand description
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 Copy for FontSize
impl StructuralPartialEq for FontSize
Auto Trait Implementations§
impl Freeze for FontSize
impl RefUnwindSafe for FontSize
impl Send for FontSize
impl Sync for FontSize
impl Unpin for FontSize
impl UnwindSafe for FontSize
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
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<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
Source§fn convert_into(self) -> U
fn convert_into(self) -> U
Convert into T with values clamped to the color defined bounds Read more
Source§fn convert_unclamped_into(self) -> U
fn convert_unclamped_into(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
Source§fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined range,
otherwise an
OutOfBounds error is returned which contains the unclamped color. Read more