[][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

fn from_close_args(args: &CloseArgs, old_event: &Self) -> Option<Self>

Creates a close event from arguments.

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

Calls closure if this is a close event.

Loading content...

Provided methods

fn close_args(&self) -> Option<CloseArgs>

Returns close arguments.

Loading content...

Implementors

impl CloseEvent for Event[src]

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

Loading content...