Class RangeSliderBase<TRangeType, TValueType>
Base class for Sliders (RangeSliderFloat, RangeSliderInt).
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public abstract class RangeSliderBase<TRangeType, TValueType> : BaseSlider<TRangeType, TValueType>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IValidatableElement<TRangeType>, INotifyValueChanging<TRangeType>, INotifyValueChanged<TRangeType> where TRangeType : IEquatable<TRangeType> where TValueType : struct, IComparable, IEquatable<TValueType>
Type Parameters
Name | Description |
---|---|
TRangeType | The range type. |
TValueType | A comparable value type. |
Constructors
Name | Description |
---|---|
RangeSliderBase() | 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 |
---|---|
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. |
maxValue | |
minValue | |
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(TRangeType, TValueType, TValueType) | Utility method to clamp a TRangeType value between specified bounds. |
ClosestHandleIndex(float) | |
ComputeValueFromHandlePosition(float, float) | Returns the value to set as slider value based on a given dragger position. |
GetClampedValue(TValueType, TValueType, TValueType) | |
GetMaxValue(TRangeType) | |
GetMinValue(TRangeType) | |
GetSliderRect() | Returns the rect of the interactive part of the slider. |
LerpUnclamped(TValueType, TValueType, float) | |
MakeRangeValue(TValueType, TValueType) | |
OnSliderRangeChanged() | Called when the low or high value of Slider has changed. |
SetValueWithoutNotify(TRangeType) | Set the value of the slider without notifying the change. |