Panel
panel · Containers · container
A surface with a border and a radius — a card, a dialog body, a docked pane.
Import
cpp
#include "gbui/widgets/panel.hpp"Example
cpp
Ui::Scope panel(Ui& ui, const PanelOptions& options = {});API
PanelOptions
| Option | Type | Default | What it does |
|---|---|---|---|
background | Token | Token::BgElevated | |
border | bool | true | |
padding | Edges | Edges::all(12.0f) | |
gap | float | 8.0f | |
direction | Direction | Direction::Column | |
radius | float | kAuto | |
grow | float | 0.0f | Takes the space left on the main axis, the way a pane holding a list has to. It starts from nothing, as text and the scroll view do, so it cannot push its siblings out of the column. |