MenuBuilderExt

Trait MenuBuilderExt 

Source
pub trait MenuBuilderExt {
    // Required methods
    fn with_text_font(self, c: Font) -> Self;
    fn with_text_size(self, c: i32) -> Self;
    fn with_text_color(self, c: Color) -> Self;
    fn with_down_frame(self, f: FrameType) -> Self;
}
Expand description

Adds builder pattern friendly versions of several setter functions

Required Methods§

Source

fn with_text_font(self, c: Font) -> Self

Sets the text font

Source

fn with_text_size(self, c: i32) -> Self

Sets the text size

Source

fn with_text_color(self, c: Color) -> Self

Sets the text color

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<M> MenuBuilderExt for M
where M: MenuExt,