cushy 0.4.0

A wgpu-powered graphical user interface (GUI) library with a reactive data model
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Stack

The [`Stack`][stack] widget lays a set of [`WidgetList`][children] as either a set
of columns or rows. It is a convenient way to construct a 1D
[`Grid`](./grid.md). It can be constructed using either:

- [`Stack::rows`][rows]/[`WidgetList::into_rows()`][into_rows]
- [`Stack::columns`][columns]/[`WidgetList::into_columns()`][into_columns]

The stack widget places spacing between each element called a [gutter][gutter].

[stack]: <{{ docs }}/widgets/stack/struct.Stack.html>
[children]: <{{ docs }}/widget/struct.WidgetList.html>
[rows]: <{{ docs }}/widgets/stack/struct.Stack.html#method.rows>
[columns]: <{{ docs }}/widgets/stack/struct.Stack.html#method.columns>
[into_columns]: <{{ docs }}/widget/struct.WidgetList.html#method.into_columns>
[into_rows]: <{{ docs }}/widget/struct.WidgetList.html#method.into_rows>
[gutter]: <{{ docs }}/widgets/stack/struct.Stack.html#method.gutter>