Enum egui::TextStyle[][src]

pub enum TextStyle {
    Small,
    Body,
    Button,
    Heading,
    Monospace,
}

One of a few categories of styles of text, e.g. body, button or heading.

Variants

Small

Used when small text is needed.

Body

Normal labels. Easily readable, doesn’t take up too much space.

Button

Buttons. Maybe slightly bigger than Body.

Heading

Heading. Probably larger than Body.

Monospace

Same size as Body, but used when monospace is important (for aligning number, code snippets, etc).

Implementations

impl TextStyle[src]

pub fn all() -> impl Iterator<Item = TextStyle>[src]

Trait Implementations

impl Clone for TextStyle[src]

impl Copy for TextStyle[src]

impl Debug for TextStyle[src]

impl Eq for TextStyle[src]

impl Hash for TextStyle[src]

impl Ord for TextStyle[src]

impl PartialEq<TextStyle> for TextStyle[src]

impl PartialOrd<TextStyle> for TextStyle[src]

impl StructuralEq for TextStyle[src]

impl StructuralPartialEq for TextStyle[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> CallHasher for T where
    T: Hash + ?Sized

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.