Navigation
API > API/Runtime > API/Runtime/Slate
Numeric interface that specifies how to interact with a number in a specific unit. Include NumericUnitTypeInterface.inl for symbol definitions.
| Name | TNumericUnitTypeInterface |
| 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 TNumericUnitTypeInterface : public TDefaultNumericTypeInterface< NumericType >
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TNumericUnitTypeInterface
(
EUnit InUnits |
Constructor | Widgets/Input/NumericTypeInterface.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FixedDisplayUnits | TOptional< EUnit > | Optional units that this type interface will be fixed on. | Widgets/Input/NumericTypeInterface.h | |
| UnderlyingUnits | const EUnit | The underlying units which the numeric type are specified in. | Widgets/Input/NumericTypeInterface.h | |
| UserDisplayUnits | TOptional< EUnit > | Optional user-specified units that this type interface will be displayed in. | Widgets/Input/NumericTypeInterface.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetupFixedDisplay
(
const NumericType& InValue |
Set up this interface to use a fixed display unit, calculated based on the specified value. | Widgets/Input/NumericTypeInterface.h |
Overridden from INumericTypeInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Attempt to parse a numeral with our units from the specified string. | Widgets/Input/NumericTypeInterface.h | ||
virtual bool IsCharacterValid
(
TCHAR InChar |
Check whether the specified typed character is valid | Widgets/Input/NumericTypeInterface.h | |
virtual FString ToString
(
const NumericType& Value |
Convert this type to a string | Widgets/Input/NumericTypeInterface.h |