iced_widget::pick_list

Trait Catalog

source
pub trait Catalog: Catalog {
    type Class<'a>;

    // Required methods
    fn default<'a>() -> <Self as Catalog>::Class<'a>;
    fn style(
        &self,
        class: &<Self as Catalog>::Class<'_>,
        status: Status,
    ) -> Style;

    // Provided method
    fn default_menu<'a>() -> <Self as Catalog>::Class<'a> { ... }
}
Expand description

The theme catalog of a PickList.

Required Associated Types§

source

type Class<'a>

The item class of the Catalog.

Required Methods§

source

fn default<'a>() -> <Self as Catalog>::Class<'a>

The default class produced by the Catalog.

source

fn style(&self, class: &<Self as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.

Provided Methods§

source

fn default_menu<'a>() -> <Self as Catalog>::Class<'a>

The default class for the menu of the PickList.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Catalog for Theme

source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>