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
# Collapse

The [`Collapse`][collapse] widget shows and hides its child based on the value
of a [`Dynamic<bool>`][dynamic]. It can collapse its child in either
orientation:

- [`Collapse::vertical()`][vertical]/[`MakeWidget::collapse_vertically()`][mw-collapse-v]
- [`Collapse::horizontal()`][horizontal]/[`MakeWidget::collapse_horizontally()`][mw-collapse-h]

[collapse]: <{{ docs }}/widgets/struct.Collapse.html>
[dynamic]: <{{ docs }}/value/struct.Dynamic.html>
[vertical]: <{{ docs }}/widgets/struct.Collapse.html#method.vertical>
[horizontal]: <{{ docs }}/widgets/struct.Collapse.html#method.horizontal>
[mw-collapse-v]: <{{ docs }}/widget/trait.MakeWidget.html#method.collapse_vertically>
[mw-collapse-h]: <{{ docs }}/widget/trait.MakeWidget.html#method.collapse_horizontally>