Toolbar
toolbar · Containers · container
A horizontal bar of actions.
Import
cpp
#include "gbui/widgets/toolbar.hpp"Example
Nothing is downloaded until you press it.
cpp
Ui::Scope toolbar(Ui& ui, const ToolbarOptions& options = {});API
ToolbarOptions
| Option | Type | Default | What it does |
|---|---|---|---|
height | float | 40.0f | |
gap | float | 8.0f | |
padding | Edges | Edges::symmetric(0.0f, 12.0f) | |
background | Token | Token::BgElevated | |
bottomBorder | bool | true | Reserved, and currently draws nothing.* Border is all four edges, so a toolbar's rule has to be a sibling: write divider(ui, Direction::Column) after the toolbar until the primitive grows per-edge widths. Named rather than removed, because the option is the right shape and only the primitive is missing. |