[][src]Trait piston_window::CloseEvent

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

Window is closing.

Required Methods

Creates a close event from arguments.

Calls closure if this is a close event.

Provided Methods

Returns close arguments.

Implementors

impl CloseEvent for Event
[src]