[][src]Trait piston_window::ResizeEvent

pub trait ResizeEvent {
    fn from_width_height(w: f64, h: f64, old_event: &Self) -> Option<Self>;
fn resize<U, F>(&self, f: F) -> Option<U>
    where
        F: FnMut(f64, f64) -> U
; fn resize_args(&self) -> Option<[f64; 2]> { ... } }

When the window is resized

Required Methods

Creates a resize event.

Calls closure if this is a resize event.

Provided Methods

Returns resize arguments.

Implementors

impl ResizeEvent for Event
[src]