Class Toolbar
Accordion visual element.
Implements
Inherited Members
VisualElement.ExecuteDefaultAction(EventBase)
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class Toolbar : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder
Constructors
Toolbar()
Constructor.
Declaration
public Toolbar()
Fields
containerUssClassName
The Toolbar's container USS class name.
Declaration
public const string containerUssClassName = "appui-toolbar__container"
Field Value
Type | Description |
---|---|
string |
dragBarIndicatorUssClassName
The Toolbar's drag bar indicator USS class name.
Declaration
public const string dragBarIndicatorUssClassName = "appui-toolbar__drag-bar-indicator"
Field Value
Type | Description |
---|---|
string |
dragBarUssClassName
The Toolbar's drag bar USS class name.
Declaration
public const string dragBarUssClassName = "appui-toolbar__drag-bar"
Field Value
Type | Description |
---|---|
string |
draggableUssClassName
The Toolbar's draggable USS class name.
Declaration
public const string draggableUssClassName = "appui-toolbar--draggable"
Field Value
Type | Description |
---|---|
string |
ussClassName
The Toolbar's USS class name.
Declaration
public const string ussClassName = "appui-toolbar"
Field Value
Type | Description |
---|---|
string |
variantUssClassName
The Toolbar's variant USS class name.
Declaration
public const string variantUssClassName = "appui-toolbar--"
Field Value
Type | Description |
---|---|
string |
Properties
contentContainer
The container of the Toolbar's content.
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
VisualElement |
Overrides
direction
The direction of the Toolbar.
Declaration
public Direction direction { get; set; }
Property Value
Type | Description |
---|---|
Direction |
dockMode
The dock mode of the Toolbar.
Declaration
public ToolbarDockMode dockMode { get; set; }
Property Value
Type | Description |
---|---|
ToolbarDockMode |
draggable
Whether the Toolbar is draggable.
Declaration
public bool draggable { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
GetDirectionUssClassName(Direction)
Declaration
public static string GetDirectionUssClassName(Direction enumValue)
Parameters
Type | Name | Description |
---|---|---|
Direction | enumValue |
Returns
Type | Description |
---|---|
string |
GetDockModeUssClassName(ToolbarDockMode)
Declaration
public static string GetDockModeUssClassName(ToolbarDockMode enumValue)
Parameters
Type | Name | Description |
---|---|---|
ToolbarDockMode | enumValue |
Returns
Type | Description |
---|---|
string |