cushy::dialog

Trait ButtonBehavior

Source
pub trait ButtonBehavior: Send + 'static {
    // Required method
    fn clicked(&mut self) -> ShouldClose;
}
Expand description

The behavior of a button in a dialog.

Required Methods§

Source

fn clicked(&mut self) -> ShouldClose

Invokes the behavior. Returns whether the dialog containing this button should close or remain open.

Implementors§

Source§

impl ButtonBehavior for ShouldClose

Source§

impl<T> ButtonBehavior for T
where T: FnMut() -> ShouldClose + Send + 'static,