Trait input::ResizeEvent [−][src]
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>
[src]
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,
[src]
F: FnMut(&ResizeArgs) -> U,
Calls closure if this is a resize event.
Provided methods
fn resize_args(&self) -> Option<ResizeArgs>
[src]
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,