[−][src]Trait input::ResizeEvent
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,
F: FnMut(&ResizeArgs) -> U,
Calls closure if this is a resize event.
Provided methods
fn resize_args(&self) -> Option<ResizeArgs>
Returns resize arguments.
Implementors
impl ResizeEvent for Event
[src]
fn from_resize_args(args: &ResizeArgs, old_event: &Self) -> Option<Self>
[src]
fn resize<U, F>(&self, f: F) -> Option<U> where
F: FnMut(&ResizeArgs) -> U,
[src]
F: FnMut(&ResizeArgs) -> U,