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: Unity.AppUI.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 const string primaryUssClassName = "appui-icon--primary"
Field Value
Type | Description |
---|---|
string |
sizeUssClassName
The Icon size styling class.
Declaration
public const string sizeUssClassName = "appui-icon--size-"
Field Value
Type | Description |
---|---|
string |
ussClassName
The Icon main styling class.
Declaration
public const string ussClassName = "appui-icon"
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 |
Methods
GetSizeUssClassName(IconSize)
Declaration
public static string GetSizeUssClassName(IconSize enumValue)
Parameters
Type | Name | Description |
---|---|---|
IconSize | enumValue |
Returns
Type | Description |
---|---|
string |