[−]Trait piston::ResizeEvent
When the window is resized
Required methods
fn from_width_height(w: f64, h: f64, old_event: &Self) -> Option<Self>
Creates a resize event.
fn resize<U, F>(&self, f: F) -> Option<U> where
F: FnMut(f64, f64) -> U,
F: FnMut(f64, f64) -> U,
Calls closure if this is a resize event.
Provided methods
fn resize_args(&self) -> Option<[f64; 2]>
Returns resize arguments.