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§
Sourcefn with_text_font(self, c: Font) -> Self
fn with_text_font(self, c: Font) -> Self
Sets the text font
Sourcefn with_text_size(self, c: i32) -> Self
fn with_text_size(self, c: i32) -> Self
Sets the text size
Sourcefn with_text_color(self, c: Color) -> Self
fn with_text_color(self, c: Color) -> Self
Sets the text color
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.