pub trait WindowDelegate: Send + Sync {
// Provided methods
fn will_close(&mut self) { ... }
fn render(&self) -> Result<RSX, Error> { ... }
}Expand description
Each platform has their own Window API, which Alchemy attempts to pair down to one consistent
API. This also acts as the bootstrapping point for a render tree.
Provided Methods§
Sourcefn will_close(&mut self)
fn will_close(&mut self)
Fired when this Window will close. You can use this to clean up or destroy resources, timers, and other things.