Skip to main content

LabelThemeExt

Trait LabelThemeExt 

Source
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§

Source

fn theme_color(self) -> Self

Source

fn title(self) -> Self

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

Source

fn subtitle(self) -> Self

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

Source

fn body(self) -> Self

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

Source

fn caption(self) -> Self

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

Source

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.

Implementations on Foreign Types§

Source§

impl LabelThemeExt for Label

Source§

fn theme_color(self) -> Self

Source§

fn title(self) -> Self

Source§

fn subtitle(self) -> Self

Source§

fn body(self) -> Self

Source§

fn caption(self) -> Self

Source§

fn overline(self) -> Self

Implementors§