Skip to main content

LabelThemeExt

Trait LabelThemeExt 

pub trait LabelThemeExt {
    // Required methods
    fn theme_color(self) -> Self;
    fn title(self) -> Self;
    fn subtitle(self) -> Self;
    fn body(self) -> Self;
    fn caption(self) -> Self;
    fn overline(self) -> Self;
}

Required Methods§

fn theme_color(self) -> Self

fn title(self) -> Self

Apply the theme’s title font size (largest heading level).

fn subtitle(self) -> Self

Apply the theme’s subtitle font size (secondary heading level).

fn body(self) -> Self

Apply the theme’s body font size (default body text).

fn caption(self) -> Self

Apply the theme’s caption font size (smaller annotation text).

fn overline(self) -> Self

Apply the theme’s overline font size (smallest accent text).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§