Class SliderBase<TValueType>
Base class for Sliders (SliderFloat, SliderInt).
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public abstract class SliderBase<TValueType> : BaseSlider<TValueType, TValueType>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IValidatableElement<TValueType>, INotifyValueChanging<TValueType>, INotifyValueChanged<TValueType> where TValueType : struct, IEquatable<TValueType>, IComparable
Type Parameters
Name | Description |
---|---|
TValueType | A comparable value type. |
Constructors
Name | Description |
---|---|
SliderBase() | Default constructor. |
Fields
Name | Description |
---|---|
controlContainerUssClassName | The Slider control container styling class. |
controlsUssClassName | The Slider controls styling class. |
handleContainerUssClassName | The Slider handle container styling class. |
handleUssClassName | The Slider handle styling class. |
inlineValueLabelUssClassName | The Slider inline value label styling class. |
inlineValueUssClassName | The Slider inline value styling class. |
labelContainerUssClassName | The Slider label container styling class. |
labelUssClassName | The Slider label styling class. |
noLabelUssClassName | The Slider no label variant styling class. |
progressUssClassName | The Slider progress styling class. |
sizeUssClassName | The Slider size styling class. |
tickLabelUssClassName | The Slider tick label styling class. |
tickLabelVariantUssClassName | The Slider with tick labels variant styling class. |
tickUssClassName | The Slider tick styling class. |
ticksUssClassName | The Slider ticks container styling class. |
trackUssClassName | The Slider track styling class. |
ussClassName | The Slider main styling class. |
valueLabelUssClassName | The Slider value label styling class. |
Properties
Name | Description |
---|---|
fillOffset | Should be normalized. |
filled | If the slider progress is filled. |
inlineValue | The inline mode for the slider value element. |
label | Text which will be used for the Slider label. |
size | The size of the slider. |
tickCount | The number of ticks to display on the slider. |
tickLabel | Should the tick labels be displayed. |
Methods
Name | Description |
---|---|
Clamp(TValueType, TValueType, TValueType) | Utility method to clamp a TValueType value between specified bounds. |
GetSliderRect() | Returns the rect of the interactive part of the slider. |
OnSliderRangeChanged() | Called when the low or high value of Slider has changed. |
SetValueWithoutNotify(TValueType) | Set the value of the slider without notifying the change. |