Class DoubleField
Double Field UI element.
Inheritance
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class DoubleField : NumericalField<double>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IInputElement<double>, IValidatableElement<double>, ISizeableElement, INotifyValueChanging<double>, INotifyValueChanged<double>
Constructors
DoubleField()
Default constructor.
Declaration
public DoubleField()
Methods
AreEqual(double, double)
Check if two values of type TValueType are equal.
Declaration
protected override bool AreEqual(double a, double b)
Parameters
Type | Name | Description |
---|---|---|
double | a | The first value to test. |
double | b | The second value to test. |
Returns
Type | Description |
---|---|
bool | True if both values are considered equals, false otherwise. |
Overrides
GetIncrementFactor(double)
Calculate the increment factor based on a base value.
Declaration
protected override float GetIncrementFactor(double baseValue)
Parameters
Type | Name | Description |
---|---|---|
double | baseValue |
Returns
Type | Description |
---|---|
float |
Overrides
Increment(double, float)
Increment a given value with a given delta.
Declaration
protected override double Increment(double originalValue, float delta)
Parameters
Type | Name | Description |
---|---|---|
double | originalValue | The original value. |
float | delta | The delta used for increment. |
Returns
Type | Description |
---|---|
double | The incremented value. |
Overrides
Max(double, double)
Return the biggest value between a and b.
Declaration
protected override double Max(double a, double b)
Parameters
Type | Name | Description |
---|---|---|
double | a | |
double | b |
Returns
Type | Description |
---|---|
double |
Overrides
Min(double, double)
Return the smallest value between a and b.
Declaration
protected override double Min(double a, double b)
Parameters
Type | Name | Description |
---|---|---|
double | a | |
double | b |
Returns
Type | Description |
---|---|
double |
Overrides
ParseRawValueToString(double)
Define the conversion from a TValueType value to a string value.
Declaration
protected override string ParseRawValueToString(double val)
Parameters
Type | Name | Description |
---|---|---|
double | val | The TValueType value to convert. |
Returns
Type | Description |
---|---|
string | The converted value. |
Overrides
Remarks
This method is used to convert the value to a string without any formatting.
ParseStringToValue(string, out double)
Define the conversion from the string value to a TValueType value.
Declaration
protected override bool ParseStringToValue(string strValue, out double val)
Parameters
Type | Name | Description |
---|---|---|
string | strValue | The string value to convert. |
double | val | The TValueType value returned. |
Returns
Type | Description |
---|---|
bool | True if the conversion is possible, False otherwise. |
Overrides
ParseValueToString(double)
Define the conversion from a TValueType value to a string value.
Declaration
protected override string ParseValueToString(double val)
Parameters
Type | Name | Description |
---|---|---|
double | val | The TValueType value to convert. |
Returns
Type | Description |
---|---|
string | The converted value. |