Trait piston_window::CloseEvent[][src]

pub trait CloseEvent {
    pub fn from_close_args(args: &CloseArgs, old_event: &Self) -> Option<Self>;
pub fn close<U, F>(&self, f: F) -> Option<U>
    where
        F: FnMut(&CloseArgs) -> U
; pub fn close_args(&self) -> Option<CloseArgs> { ... } }

Window is closing.

Required methods

pub fn from_close_args(args: &CloseArgs, old_event: &Self) -> Option<Self>[src]

Creates a close event from arguments.

Preserves time stamp from original input event, if any.

pub fn close<U, F>(&self, f: F) -> Option<U> where
    F: FnMut(&CloseArgs) -> U, 
[src]

Calls closure if this is a close event.

Loading content...

Provided methods

pub fn close_args(&self) -> Option<CloseArgs>[src]

Returns close arguments.

Loading content...

Implementors

impl CloseEvent for Event[src]

Loading content...