[][src]Trait kas_theme::Window

pub trait Window<Draw> {
    type SizeHandle: SizeHandle;
    unsafe fn size_handle(&mut self, draw: &mut Draw) -> Self::SizeHandle;
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

The associated SizeHandle implementation.

Loading content...

Required methods

unsafe fn size_handle(&mut self, draw: &mut Draw) -> Self::SizeHandle

Construct a SizeHandle object

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

fn as_any_mut(&mut self) -> &mut dyn Any

Loading content...

Implementations on Foreign Types

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

type SizeHandle = <W as Window<Draw>>::SizeHandle

Loading content...

Implementors

impl<Draw> Window<Draw> for StackDst<dyn WindowDst<Draw>>[src]

type SizeHandle = StackDst<dyn SizeHandle>

impl<Draw: DrawText + 'static> Window<Draw> for DimensionsWindow[src]

type SizeHandle = SizeHandle<'static, Draw>

Loading content...