Skip to main content

CloseAction

Type Alias CloseAction 

Source
pub type CloseAction = Rc<dyn Fn(&mut EventContext<'_>)>;
Expand description

Type alias for the user-supplied close action that overrides host.close() (which on Wayland is currently a no-op due to winit 0.30 lacking Window::request_close). Set via TitleBar::close_action.

Aliased Typeยง

pub struct CloseAction { /* private fields */ }