Trait kas_theme::Window

source ·
pub trait Window: 'static {
    fn size(&self) -> &dyn ThemeSize;
    fn as_any_mut(&mut self) -> &mut dyn Any;
}
Expand description

Per-window storage for the theme

Constructed via Theme::new_window.

The main reason for this separation is to allow proper handling of multi-window applications across screens with differing DPIs.

Required Methods§

Construct a [ThemeSize] object

Trait Implementations§

Construct a [ThemeSize] object

Implementations on Foreign Types§

Implementors§