Trait cushy::widget::MakeWidgetList
source · pub trait MakeWidgetList: Sized {
// Required method
fn make_widget_list(self) -> WidgetList;
// Provided methods
fn and<W>(self, widget: W) -> WidgetList
where W: MakeWidget { ... }
fn into_rows(self) -> Stack { ... }
fn into_columns(self) -> Stack { ... }
fn into_layers(self) -> Layers { ... }
fn into_wrap(self) -> Wrap { ... }
fn into_list(self) -> List { ... }
}
Expand description
Required Methods§
sourcefn make_widget_list(self) -> WidgetList
fn make_widget_list(self) -> WidgetList
Returns self as a WidgetList
.
Provided Methods§
sourcefn and<W>(self, widget: W) -> WidgetListwhere
W: MakeWidget,
fn and<W>(self, widget: W) -> WidgetListwhere
W: MakeWidget,
Adds widget
to self and returns the updated list.
sourcefn into_columns(self) -> Stack
fn into_columns(self) -> Stack
Returns self
as a horizontal Stack
of columns.
sourcefn into_layers(self) -> Layers
fn into_layers(self) -> Layers
Returns self
as Layers
, with the widgets being stacked in the Z
direction.
Object Safety§
This trait is not object safe.