[][src]Trait input::ResizeEvent

pub trait ResizeEvent: Sized {
    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

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, 

Calls closure if this is a resize event.

Loading content...

Provided methods

fn resize_args(&self) -> Option<[f64; 2]>

Returns resize arguments.

Loading content...

Implementors

impl ResizeEvent for Event[src]

fn resize_args(&self) -> Option<[f64; 2]>[src]

Loading content...