Trait ButtonBuilderExt

Source
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§

Source

fn with_shortcut(self, shortcut: Shortcut) -> Self

Sets the shortcut associated with a button

Source

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.

Implementors§

Source§

impl<B> ButtonBuilderExt for B
where B: ButtonExt,