Trait cushy::widget::IntoWidgetList
source · pub trait IntoWidgetList: Sized {
// Required method
fn into_widget_list(self) -> Value<WidgetList>;
// Provided methods
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
A type that can be converted to a Value<WidgetList>
.
Required Methods§
sourcefn into_widget_list(self) -> Value<WidgetList>
fn into_widget_list(self) -> Value<WidgetList>
Returns this list of widgets as a Value<WidgetList>
.
Provided Methods§
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.