INumericTypeInterface

Interface to provide specific functionality for dealing with a numeric type.

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 INumericTypeInterface

Remarks

Interface to provide specific functionality for dealing with a numeric type. Currently includes string conversion functionality.

Destructors

Name Description

Public function Virtual

~INumericTypeInterface()

Functions

Name Description

Public function

TOptional< N...

 

FromString

(
    const FString& InString,
    const NumericType& ExistingValue
)

Public function Const

int32

 

GetMaxFractionalDigits()

Public function Const

int32

 

GetMinFractionalDigits()

Gets the minimum and maximum fractional digits.

Public function Const

bool

 

IsCharacterValid

(
    TCHAR InChar
)

Check whether the typed character is valid

Public function

void

 

SetMaxFractionalDigits

(
    const TAttribute< TOptional< int32 ...
)

Public function

void

 

SetMinFractionalDigits

(
    const TAttribute< TOptional< int32 ...
)

Sets the minimum and maximum fractional digits - A minimum greater than 0 will always have that many trailing zeros

Public function Const

FString

 

ToString

(
    const NumericType& Value
)

Convert the type to/from 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