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
fn initialize(&mut self)
fn initialize(&mut self)
Executed upon application launch.
fn should_exit(&mut self) -> bool
fn should_exit(&mut self) -> bool
Return true if the app should exit. Default implementation returns true
once Application::open_window_count()
returns zero.
fn open_window_count() -> usize
fn open_window_count() -> usize
Returns the number of open windows.