Window

Trait Window 

Source
pub trait Window<Context>: Any
where Context: 'static,
{ // Required methods fn set_top(&mut self, top: bool, ctx: &mut Context); fn area(&self) -> Rect; }
Expand description

Necessary trait for your window-state.

This enables reordering the application windows.

Required Methods§

Source

fn set_top(&mut self, top: bool, ctx: &mut Context)

Set as top window.

Source

fn area(&self) -> Rect

Window area.

Implementations§

Source§

impl<Context> dyn Window<Context>

Source

pub fn downcast_ref<T: Any>(&self) -> Option<&T>

Source

pub fn downcast_mut<T: Any>(&mut self) -> Option<&mut T>

Implementors§