FlexBuilderExt

Trait FlexBuilderExt 

Source
pub trait FlexBuilderExt {
    // Required method
    fn widget_with_size(self, size: i32, widget: impl WidgetExt) -> Self;
}
Expand description

Adds helper function to add a widget to a flex with an already set size

Required Methods§

Source

fn widget_with_size(self, size: i32, widget: impl WidgetExt) -> Self

Adds a widget and sets its size within the flex layout

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.

Implementations on Foreign Types§

Source§

impl FlexBuilderExt for Flex

Source§

fn widget_with_size(self, size: i32, widget: impl WidgetExt) -> Self

Implementors§