Skip to content

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

OptionTypeDefaultWhat it does
heightfloat40.0f
gapfloat8.0f
paddingEdgesEdges::symmetric(0.0f, 12.0f)
backgroundTokenToken::BgElevated
bottomBorderbooltrueReserved, 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.

Released under the LGPL-3.0-or-later licence.