Navigation
API > API/Runtime > API/Runtime/Slate
Default numeric type interface
| Name | TDefaultNumericTypeInterface |
| Type | struct |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Input/NumericTypeInterface.h |
| Include Path | #include "Widgets/Input/NumericTypeInterface.h" |
Syntax
template<typename NumericType>
struct TDefaultNumericTypeInterface : public INumericTypeInterface< NumericType >
Implements Interfaces
Derived Classes
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DefaultIndicateNearlyInteger | const bool | The default indicate nearly integer | Widgets/Input/NumericTypeInterface.h |
| DefaultMaxFractionalDigits | const int16 | The default maximum fractional digits | Widgets/Input/NumericTypeInterface.h |
| DefaultMinFractionalDigits | const int16 | The default minimum fractional digits | Widgets/Input/NumericTypeInterface.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIndicateNearlyInteger | bool | True implies indicate when a value is displayed as rounded via '...' | Widgets/Input/NumericTypeInterface.h | |
| MaxFractionalDigits | int16 | The current maximum fractional digits | Widgets/Input/NumericTypeInterface.h | |
| MinFractionalDigits | int16 | The current minimum fractional digits | Widgets/Input/NumericTypeInterface.h |
Functions
Public
Overridden from INumericTypeInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Widgets/Input/NumericTypeInterface.h | |||
virtual bool GetIndicateNearlyInteger() |
Get if we should indicate nearly integer values | Widgets/Input/NumericTypeInterface.h | |
virtual int32 GetMaxFractionalDigits() |
Widgets/Input/NumericTypeInterface.h | ||
virtual int32 GetMinFractionalDigits() |
Gets the minimum and maximum fractional digits. | Widgets/Input/NumericTypeInterface.h | |
virtual bool IsCharacterValid
(
TCHAR InChar |
Check whether the typed character is valid | Widgets/Input/NumericTypeInterface.h | |
virtual void SetIndicateNearlyInteger
(
const TAttribute< TOptional< bool > >& NewValue |
Sets if we should indicate that a value is being rounded to an integer via '...' (Ex: 0.0 shown, real value 1e-18). | Widgets/Input/NumericTypeInterface.h | |
virtual void SetMaxFractionalDigits
(
const TAttribute< TOptional< int32 > >& NewValue |
Widgets/Input/NumericTypeInterface.h | ||
virtual void SetMinFractionalDigits
(
const TAttribute< TOptional< int32 > >& NewValue |
Sets the minimum and maximum fractional digits - A minimum greater than 0 will always have that many trailing zeros | Widgets/Input/NumericTypeInterface.h | |
virtual FString ToString
(
const NumericType& Value |
Convert the type to/from a string | Widgets/Input/NumericTypeInterface.h |