Window

Trait Window 

Source
pub trait Window {
    // Required methods
    fn new(id: Id) -> Self;
    fn on_resize(&mut self, size: Size);
    fn on_close(&mut self);
    fn is_closed(&self) -> bool;
}

Required Methods§

Source

fn new(id: Id) -> Self

Source

fn on_resize(&mut self, size: Size)

Source

fn on_close(&mut self)

Source

fn is_closed(&self) -> bool

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§