Class ActionButton
ActionButton UI element.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class ActionButton : ExVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, ISizeableElement, ISelectableElement, IPressable
Constructors
Name | Description |
---|---|
ActionButton() | Default constructor. |
ActionButton(Action) | Construct a ActionButton with a given click event callback. |
Fields
Name | Description |
---|---|
accentUssClassName | The ActionButton accent styling class. |
iconAndLabelUssClassName | The ActionButton icon and label variant styling class. |
iconOnlyUssClassName | The ActionButton icon only variant styling class. |
iconUssClassName | The ActionButton icon styling class. |
labelUssClassName | The ActionButton label styling class. |
quietUssClassName | The ActionButton quiet variant styling class. |
sizeUssClassName | The ActionButton size styling class. |
ussClassName | The ActionButton main styling class. |
Properties
Name | Description |
---|---|
accent | The accent variant of the ActionButton. |
clickable | Clickable Manipulator for this ActionButton. |
contentContainer | The content container of the ActionButton. |
icon | The ActionButton icon. |
iconVariant | The ActionButton icon variant. |
label | The ActionButton label. |
quiet | The quiet state of the ActionButton. |
selected | The selected state of the ActionButton. |
size | The current size of the ActionButton. |
Methods
Name | Description |
---|---|
SetSelectedWithoutNotify(bool) | Set the selected state of the ActionButton without notifying the click event. |
Events
Name | Description |
---|---|
clicked | The ActionButton click event. |