Trait input::CloseEvent
source · pub trait CloseEvent: Sized {
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> { ... }
}
Expand description
Window is closing.
Required Methods§
sourcefn from_close_args(args: &CloseArgs, old_event: &Self) -> Option<Self>
fn from_close_args(args: &CloseArgs, old_event: &Self) -> Option<Self>
Creates a close event from arguments.
Provided Methods§
sourcefn close_args(&self) -> Option<CloseArgs>
fn close_args(&self) -> Option<CloseArgs>
Returns close arguments.