Cogent Core Docs

0%

Loading...

Static preview:

Toolbar

A toolbar is a frame that contains widgets for related actions and controls.

All toolbars use the plan system through core.WidgetBase.Maker. This ensures that toolbars can always be dynamic and responsive.

Properties

You can make a standalone toolbar and add widgets to it:

You can add any types of widgets to toolbars, although buttons and func buttons are the most common:

Settings window

Active

Overflow

When you add more items to a toolbar than can fit on the screen, it places them in an overflow menu:

You can also directly add items to the overflow menu of a toolbar:

Top bar

Toolbars are frequently added in the top bar of a scene: