[][src]Trait input::ResizeEvent

pub trait ResizeEvent: Sized {
    fn from_resize_args(args: &ResizeArgs, old_event: &Self) -> Option<Self>;
fn resize<U, F>(&self, f: F) -> Option<U>
    where
        F: FnMut(&ResizeArgs) -> U
; fn resize_args(&self) -> Option<ResizeArgs> { ... } }

When the window is resized.

Required methods

fn from_resize_args(args: &ResizeArgs, old_event: &Self) -> Option<Self>

Creates a resize event.

Preserves time stamp from original input event, if any.

fn resize<U, F>(&self, f: F) -> Option<U> where
    F: FnMut(&ResizeArgs) -> U, 

Calls closure if this is a resize event.

Loading content...

Provided methods

fn resize_args(&self) -> Option<ResizeArgs>

Returns resize arguments.

Loading content...

Implementors

impl ResizeEvent for Event[src]

Loading content...