Extension: omni.kit.widget.toolbar-1.7.2 |
Documentation Generated: Nov 07, 2024 |
Overview
omni.kit.widget.toolbar
provides a toolbar-like widget that can host sub-widget such as ToolButton within itself. While the toolbar widget can be placed inside any UI frame, in a common Kit app setting, it is organized within omni.kit.window.toolbar
to create the Main Toolbar in Kit. There can be only one instance of such toolbar widget globally.
The structure of a horizontal Toolbar looks like this:
Toolbar Widget
Toolbar class is both the registry and ui frame to host WidgetGroup.
For examples of how to put WidgetGroup on a Toolbar, please check Toolbar Usage Examples.
WidgetGroup
A widget group is a collection of one or more omni.ui
widgets to be placed as associated entries on the toolbar. You can inherit this class and override various of its methods to create your custom widget group.
For example of how to create a WidgetGroup, please check WidgetGroup Usage Example.