TDefaultNumericTypeInterface

Default numeric type interface

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 TDefaultNumericTypeInterface : public INumericTypeInterface< NumericType >

Remarks

Default numeric type interface

Variables

Name Description

Public variable

int32

 

MaxFractionalDigits

The current maximum fractional digits

Public variable

int32

 

MinFractionalDigits

The current minimum fractional digits

Overridden from INumericTypeInterface

Name Description

Public function Virtual

TOptional < N...

 

FromString

(
    const FString & InString,
    const NumericType& InExistingValue
)

Public function Virtual Const

int32

 

GetMaxFractionalDigits()

Public function Virtual Const

int32

 

GetMinFractionalDigits()

Gets the minimum and maximum fractional digits.

Public function Virtual Const

bool

 

IsCharacterValid

(
    TCHAR InChar
)

Check whether the typed character is valid

Public function Virtual

void

 

SetMaxFractionalDigits

(
    const TAttribute < TOptional < int32 ...
)

Public function Virtual

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 Virtual Const

FString

 

ToString

(
    const NumericType& Value
)

Convert the type to/from a string

Constants

Name

Description

DefaultMaxFractionalDigits

The default maximum fractional digits

DefaultMinFractionalDigits

The default minimum fractional digits

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