[][src]Trait piston_window::ResizeEvent

pub trait ResizeEvent {
    fn from_width_height(w: u32, h: u32, old_event: &Self) -> Option<Self>;
fn resize<U, F>(&self, f: F) -> Option<U>
    where
        F: FnMut(u32, u32) -> U
; fn resize_args(&self) -> Option<[u32; 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]