![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NumericTypeInterface.h>
Inheritance diagram for TDefaultNumericTypeInterface< NumericType >:Public Member Functions | |
| virtual int32 | GetMinFractionalDigits () const override |
| virtual int32 | GetMaxFractionalDigits () const override |
| virtual bool | GetIndicateNearlyInteger () const override |
| virtual void | SetMinFractionalDigits (const TAttribute< TOptional< int32 > > &NewValue) override |
| virtual void | SetMaxFractionalDigits (const TAttribute< TOptional< int32 > > &NewValue) override |
| virtual void | SetIndicateNearlyInteger (const TAttribute< TOptional< bool > > &NewValue) override |
| virtual FString | ToString (const NumericType &Value) const override |
| virtual TOptional< NumericType > | FromString (const FString &InString, const NumericType &InExistingValue) override |
| virtual bool | IsCharacterValid (TCHAR InChar) const override |
Public Member Functions inherited from INumericTypeInterface< NumericType > | |
| virtual | ~INumericTypeInterface () |
| virtual FOnSettingChanged * | GetOnSettingChanged () |
Public Attributes | |
| int16 | MinFractionalDigits = DefaultMinFractionalDigits |
| int16 | MaxFractionalDigits = DefaultMaxFractionalDigits |
| bool | bIndicateNearlyInteger = false |
Static Public Attributes | |
| static const int16 | DefaultMinFractionalDigits = 1 |
| static const int16 | DefaultMaxFractionalDigits = 6 |
| static const bool | DefaultIndicateNearlyInteger = false |
Default numeric type interface
|
inlineoverridevirtual |
Implements INumericTypeInterface< NumericType >.
Reimplemented in TNumericUnitTypeInterface< NumericType >.
|
inlineoverridevirtual |
Get if we should indicate nearly integer values
Reimplemented from INumericTypeInterface< NumericType >.
|
inlineoverridevirtual |
Implements INumericTypeInterface< NumericType >.
|
inlineoverridevirtual |
Gets the minimum and maximum fractional digits.
Implements INumericTypeInterface< NumericType >.
|
inlineoverridevirtual |
Check whether the typed character is valid
Implements INumericTypeInterface< NumericType >.
Reimplemented in TNumericUnitTypeInterface< NumericType >.
|
inlineoverridevirtual |
Sets if we should indicate that a value is being rounded to an integer via '...' (Ex: 0.0 shown, real value 1e-18).
Reimplemented from INumericTypeInterface< NumericType >.
|
inlineoverridevirtual |
Implements INumericTypeInterface< NumericType >.
|
inlineoverridevirtual |
Sets the minimum and maximum fractional digits - A minimum greater than 0 will always have that many trailing zeros
Implements INumericTypeInterface< NumericType >.
|
inlineoverridevirtual |
Convert the type to/from a string
Implements INumericTypeInterface< NumericType >.
Reimplemented in TNumericUnitTypeInterface< NumericType >.
| bool TDefaultNumericTypeInterface< NumericType >::bIndicateNearlyInteger = false |
True implies indicate when a value is displayed as rounded via '...'
|
static |
The default indicate nearly integer
|
static |
The default maximum fractional digits
|
static |
The default minimum fractional digits
| int16 TDefaultNumericTypeInterface< NumericType >::MaxFractionalDigits = DefaultMaxFractionalDigits |
The current maximum fractional digits
| int16 TDefaultNumericTypeInterface< NumericType >::MinFractionalDigits = DefaultMinFractionalDigits |
The current minimum fractional digits