pub trait ButtonBehavior: Send + 'static {
// Required method
fn clicked(&mut self) -> ShouldClose;
}
Expand description
The behavior of a button in a dialog.
Required Methods§
Sourcefn clicked(&mut self) -> ShouldClose
fn clicked(&mut self) -> ShouldClose
Invokes the behavior. Returns whether the dialog containing this button should close or remain open.