[][src]Trait kas_theme::Window

pub trait Window {
    type SizeHandle: SizeHandle;
    pub unsafe fn size_handle(&mut self) -> Self::SizeHandle;
pub fn as_any_mut(&mut self) -> &mut dyn Any; }

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.

Associated Types

type SizeHandle: SizeHandle[src]

The associated SizeHandle implementation.

Loading content...

Required methods

pub unsafe fn size_handle(&mut self) -> Self::SizeHandle[src]

Construct a SizeHandle object

The draw reference is guaranteed to be identical to the one used to construct this object.

pub fn as_any_mut(&mut self) -> &mut dyn Any[src]

Loading content...

Implementations on Foreign Types

impl<W: Window> Window for Box<W>[src]

type SizeHandle = <W as Window>::SizeHandle

Loading content...

Implementors

impl Window for DimensionsWindow[src]

type SizeHandle = SizeHandle<'static>

impl Window for StackDst<dyn WindowDst>[src]

type SizeHandle = StackDst<dyn SizeHandle>

Loading content...