swamp_window

Trait AppHandler

Source
pub trait AppHandler {
    // Required methods
    fn create_window(&mut self, window: Arc<Window>);
    fn resized(&mut self, size: PhysicalSize<u32>);
    fn min_size(&self) -> (u16, u16);
    fn redraw(&mut self);
}
Expand description

A trait for handling application-specific window creation and management.

The AppHandler trait defines the behavior required for handling the creation of application windows. Implementing this trait allows for customized window management tailored to the needs of your application.

Required Methods§

Source

fn create_window(&mut self, window: Arc<Window>)

Source

fn resized(&mut self, size: PhysicalSize<u32>)

Source

fn min_size(&self) -> (u16, u16)

Source

fn redraw(&mut self)

Implementors§