Class Thumb
Thumb UI element.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class Thumb : VisualElement, IEventHandler, IVisualElementScheduler, IExperimentalFeatures, ITransitionAnimations, ITransform, IResolvedStyle
Constructors
Thumb()
Default constructor.
Declaration
public Thumb()
Fields
contentUssClassName
USS class name for the thumb content.
Declaration
public const string contentUssClassName = "appui-thumb__content"
Field Value
Type | Description |
---|---|
string |
displayValueLabelVariantUssClassName
USS class name for the thumb display value label.
Declaration
public const string displayValueLabelVariantUssClassName = "appui-thumb--display-value-label-"
Field Value
Type | Description |
---|---|
string |
fillUssClassName
USS class name for the thumb fill content.
Declaration
public const string fillUssClassName = "appui-thumb__fill"
Field Value
Type | Description |
---|---|
string |
ussClassName
USS class name for the thumb.
Declaration
public const string ussClassName = "appui-thumb"
Field Value
Type | Description |
---|---|
string |
valueLabelContainerUssClassName
USS class name for the thumb value label container.
Declaration
public const string valueLabelContainerUssClassName = "appui-thumb__value-label-container"
Field Value
Type | Description |
---|---|
string |
valueLabelUssClassName
USS class name for the thumb value label.
Declaration
public const string valueLabelUssClassName = "appui-thumb__value-label"
Field Value
Type | Description |
---|---|
string |
Properties
contentContainer
Child elements are added to it, usually this is the same as the element itself.
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
Visual |
Overrides
displayValueLabel
Display mode for the value label.
Declaration
public ValueDisplayMode displayValueLabel { get; set; }
Property Value
Type | Description |
---|---|
Value |
fill
A fill color for the thumb.
Declaration
public Color fill { get; set; }
Property Value
Type | Description |
---|---|
Color |
text
Text of the value label.
Declaration
public string text { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
EnsureKeyboardFocus()
Ensures the thumb is focused.
Declaration
public void EnsureKeyboardFocus()
GetDisplayValueLabelUssClassName(ValueDisplayMode)
Declaration
public static string GetDisplayValueLabelUssClassName(ValueDisplayMode enumValue)
Parameters
Type | Name | Description |
---|---|---|
Value |
enumValue |
Returns
Type | Description |
---|---|
string |