TNumericUnitTypeInterface

Numeric interface that specifies how to interact with a number in a specific unit.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Input/NumericTypeInterface.h

Include

#include "Widgets/Input/NumericTypeInterface.h"

Syntax

template<typename NumericType>
struct TNumericUnitTypeInterface : public TDefaultNumericTypeInterface< NumericType >

Remarks

Numeric interface that specifies how to interact with a number in a specific unit. Include NumericUnitTypeInterface.inl for symbol definitions.

Variables

Name Description

Public variable

TOptional< EUni...

 

FixedDisplayUnits

Optional units that this type interface will be fixed on

Public variable

const EUnit

 

UnderlyingUnits

The underlying units which the numeric type are specified in.

Constructors

Name Description

Public function

TNumericUnitTypeInterface

(
    EUnit InUnits
)

Constructor

Functions

Name Description

Public function

void

 

SetupFixedDisplay

(
    const NumericType& InValue
)

Set up this interface to use a fixed display unit based on the specified value

Overridden from INumericTypeInterface

Name Description

Public function Virtual

TOptional< N...

 

FromString

(
    const FString& ValueString,
    const NumericType& InExistingValue
)

Attempt to parse a numeral with our units from the specified string.

Public function Virtual Const

bool

 

IsCharacterValid

(
    TCHAR InChar
)

Check whether the specified typed character is valid

Public function Virtual Const

FString

 

ToString

(
    const NumericType& Value
)

Convert this type to a string

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss