Trait kludgine_app::prelude::Application[][src]

pub trait Application: Sized + Send + Sync {
    fn initialize(&mut self) { ... }
fn should_exit(&mut self) -> bool { ... }
fn open_window_count() -> usize { ... } }
Expand description

A trait that describes the application’s behavior.

Provided methods

Executed upon application launch.

Return true if the app should exit. Default implementation returns true once Application::open_window_count() returns zero.

Returns the number of open windows.

Implementors