Navigation
API > API/Runtime > API/Runtime/Slate
Interface to provide specific functionality for dealing with a numeric type. Currently includes string conversion functionality.
| Name | INumericTypeInterface |
| 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 INumericTypeInterface
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~INumericTypeInterface() |
Widgets/Input/NumericTypeInterface.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Widgets/Input/NumericTypeInterface.h | |||
virtual bool GetIndicateNearlyInteger() |
Widgets/Input/NumericTypeInterface.h | ||
int32 GetMaxFractionalDigits() |
Widgets/Input/NumericTypeInterface.h | ||
int32 GetMinFractionalDigits() |
Gets the minimum and maximum fractional digits. | Widgets/Input/NumericTypeInterface.h | |
virtual FOnSettingChanged * GetOnSettingChanged() |
Optional callback to broadcast when a setting in the type interface changes | Widgets/Input/NumericTypeInterface.h | |
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 | |
void SetMaxFractionalDigits
(
const TAttribute< TOptional< int32 > >& NewValue |
Widgets/Input/NumericTypeInterface.h | ||
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 | |
FString ToString
(
const NumericType& Value |
Convert the type to/from a string | Widgets/Input/NumericTypeInterface.h |