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§

source

fn into_widget_list(self) -> Value<WidgetList>

Returns this list of widgets as a Value<WidgetList>.

Provided Methods§

source

fn into_rows(self) -> Stack

Returns self as a vertical Stack of rows.

source

fn into_columns(self) -> Stack

Returns self as a horizontal Stack of columns.

source

fn into_layers(self) -> Layers

Returns self as Layers, with the widgets being stacked in the Z direction.

source

fn into_wrap(self) -> Wrap

Returns a Wrap that lays the children out horizontally, wrapping into additional rows as needed.

source

fn into_list(self) -> List

Returns self as an unordered List.

Object Safety§

This trait is not object safe.

Implementors§