Skip to content

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

Nothing is downloaded until you press it.

cpp
Ui::Scope panel(Ui& ui, const PanelOptions& options = {});

API

PanelOptions

OptionTypeDefaultWhat it does
backgroundTokenToken::BgElevated
borderbooltrue
paddingEdgesEdges::all(12.0f)
gapfloat8.0f
directionDirectionDirection::Column
radiusfloatkAuto
growfloat0.0fTakes 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.

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