Class SliderInt
Slider UI element for integer values.
Inheritance
Implements
Inherited Members
Namespace: Unity.Muse.AppUI .UI
Assembly: Unity.Muse.AppUI.dll
Syntax
public class SliderInt : SliderBase<int>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IContextOverrideElement, IInputElement<int>, IValidatableElement<int>, INotifyValueChanging<int>, INotifyValueChanged<int>
Constructors
SliderInt()
Default constructor.
Declaration
public SliderInt()
Properties
incrementFactor
The increment factor used when the slider is interacted with using the keyboard.
Declaration
public int incrementFactor { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
Decrement(int)
Method to implement which returns the decrement of a given value.
Declaration
protected override int Decrement(int val)
Parameters
Type | Name | Description |
---|---|---|
int | val | The value to decrement. |
Returns
Type | Description |
---|---|
int | The decremented value. |
Overrides
Increment(int)
Method to implement which returns the increment of a given value.
Declaration
protected override int Increment(int val)
Parameters
Type | Name | Description |
---|---|---|
int | val | The value to increment. |
Returns
Type | Description |
---|---|
int | The incremented value. |
Overrides
ParseStringToValue(string, out int)
Declaration
protected override bool ParseStringToValue(string strValue, out int v)
Parameters
Returns
Type | Description |
---|---|
bool |
Overrides
ParseValueToString(int)
Method to implement to resolve a TValueType value into a string value.
You can use To
You can also round the value if you want a specific number of decimals.
Declaration
protected override string ParseValueToString(int val)
Parameters
Type | Name | Description |
---|---|---|
int | val | The TValueType value to convert. |
Returns
Type | Description |
---|---|
string |
Overrides
SliderLerpUnclamped(int, int, float)
Declaration
protected override int SliderLerpUnclamped(int a, int b, float interpolant)
Parameters
Returns
Type | Description |
---|---|
int |
Overrides
SliderNormalizeValue(int, int, int)
Declaration
protected override float SliderNormalizeValue(int currentValue, int lowerValue, int higherValue)
Parameters
Returns
Type | Description |
---|---|
float |