Class Icon
Icon UI component.
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: solution.dll
Syntax
public class Icon : Image, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle
Constructors
Icon()
Default constructor.
Declaration
public Icon()
Fields
primaryUssClassName
The Icon primary variant styling class.
Declaration
public static readonly string primaryUssClassName
Field Value
Type | Description |
---|---|
string |
sizeUssClassName
The Icon size styling class.
Declaration
public static readonly string sizeUssClassName
Field Value
Type | Description |
---|---|
string |
ussClassName
The Icon main styling class.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
string |
Properties
iconName
The name of the Icon.
Declaration
public string iconName { get; set; }
Property Value
Type | Description |
---|---|
string |
primary
The primary variant of the Icon.
Declaration
public bool primary { get; set; }
Property Value
Type | Description |
---|---|
bool |
size
The size of the Icon.
Declaration
public IconSize size { get; set; }
Property Value
Type | Description |
---|---|
IconSize |
variant
The variant of the Icon.
Declaration
public IconVariant variant { get; set; }
Property Value
Type | Description |
---|---|
IconVariant |