Skip to main content

Catalog

Trait Catalog 

Source
pub trait Catalog: Sized {
    type Class: Default;

    // Required method
    fn style(
        &self,
        class: &Self::Class,
        is_determinate: bool,
        is_circular: bool,
    ) -> Style;
}
Expand description

A set of rules that dictate the style of an indicator.

Required Associated Types§

Source

type Class: Default

The supported class of the Catalog.

Required Methods§

Source

fn style( &self, class: &Self::Class, is_determinate: bool, is_circular: bool, ) -> Style

Produces the active Style of an indicator.

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§

Source§

impl Catalog for cosmic::iced::Theme

Source§

impl Catalog for cosmic::Theme