WidgetLayoutExt

Trait WidgetLayoutExt 

Source
pub trait WidgetLayoutExt {
    // Required method
    fn set_layout_style(
        &mut self,
        layout_style: impl Into<MaybeSignal<LayoutStyle>>,
    );

    // Provided method
    fn with_layout_style(
        self,
        layout_style: impl Into<MaybeSignal<LayoutStyle>>,
    ) -> Self
       where Self: Sized { ... }
}
Expand description

An extension trait for widgets with a layout style.

Required Methods§

Source

fn set_layout_style( &mut self, layout_style: impl Into<MaybeSignal<LayoutStyle>>, )

Sets the layout style of the widget.

Provided Methods§

Source

fn with_layout_style( self, layout_style: impl Into<MaybeSignal<LayoutStyle>>, ) -> Self
where Self: Sized,

Sets the layout style of the widget and returns self.

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§