Panes side by side, or stacked, with handles the user drags to share the space between them.
More...
#include <view.hpp>
|
| std::vector< Node > | children |
| | The panes, in order; a null child is skipped.
|
| Axis | orientation = Axis::Horizontal |
| | The axis the panes are laid out along; set once.
|
| Prop< std::vector< int > > | sizes |
| | Each pane's size, in backend units, in order; empty shares the space equally. A list whose length differs from the number of panes is shared out as an empty one.
|
| std::function< void(std::vector< int >)> | onResize |
| | Called with every pane's size after the user dragged a handle.
|
| Common | common {} |
| | Visibility, enablement, layout, drag-and-drop.
|
Panes side by side, or stacked, with handles the user drags to share the space between them.
Definition at line 1097 of file view.hpp.
◆ children
| std::vector<Node> morph::ui::Splitter::children |
The panes, in order; a null child is skipped.
Definition at line 1099 of file view.hpp.
◆ orientation
The axis the panes are laid out along; set once.
Definition at line 1101 of file view.hpp.
◆ sizes
| Prop<std::vector<int> > morph::ui::Splitter::sizes |
Each pane's size, in backend units, in order; empty shares the space equally. A list whose length differs from the number of panes is shared out as an empty one.
Definition at line 1104 of file view.hpp.
◆ onResize
| std::function<void(std::vector<int>)> morph::ui::Splitter::onResize |
Called with every pane's size after the user dragged a handle.
Definition at line 1106 of file view.hpp.
◆ common
| Common morph::ui::Splitter::common {} |
Visibility, enablement, layout, drag-and-drop.
Definition at line 1108 of file view.hpp.
The documentation for this struct was generated from the following file: