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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback