pub trait ButtonBuilderExt {
// Required methods
fn with_shortcut(self, shortcut: Shortcut) -> Self;
fn with_down_frame(self, f: FrameType) -> Self;
}
Expand description
Adds builder pattern friendly versions of several setter functions for Button widgets
Required Methods§
Sourcefn with_shortcut(self, shortcut: Shortcut) -> Self
fn with_shortcut(self, shortcut: Shortcut) -> Self
Sets the shortcut associated with a button
Sourcefn with_down_frame(self, f: FrameType) -> Self
fn with_down_frame(self, f: FrameType) -> Self
Set the down_box
of the widget
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.