SNumericEntryBox

Implementation for a box that only accepts a numeric value or that can display an undetermined value via a string Supports an optional spin box for manipulating a value by dragging with the mouse Supports an optional label inset in the text box

Inheritance Hierarchy

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/SlateFwd.h

Include

#include "SlateFwd.h"

Syntax

template<typename NumericType>
class SNumericEntryBox : public SCompoundWidget

Remarks

Implementation for a box that only accepts a numeric value or that can display an undetermined value via a string Supports an optional spin box for manipulating a value by dragging with the mouse Supports an optional label inset in the text box

Constructors

Name Description

Public function

SNumericEntryBox()

Functions

Name Description

Public function Static

TSharedRef< ...

 

BuildLabel

(
    TAttribute< FText > LabelText,
    const FSlateColor& ForegroundColor,
    const FSlateColor& BackgroundColor
)

Public function Static

TSharedRef< ...

 

BuildNarrowColorLabel

(
    FLinearColor LabelColor
)

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Public function Const

int32

 

GetMaxFractionalDigits()

See the MaxFractionalDigits attribute

Public function Const

int32

 

GetMinFractionalDigits()

See the MinFractionalDigits attribute

Public function Const

TSharedPtr< ...

 

GetSpinBox()

Return the internally created SpinBox if bAllowSpin is true

Public function

void

 

SetMaxFractionalDigits

(
    const TAttribute< TOptional< int32 ...
)

Public function

void

 

SetMinFractionalDigits

(
    const TAttribute< TOptional< int32 ...
)

Classes

Name

Description

Public struct

FArguments

Enums

Name

Description

Public enum

ELabelLocation

Typedefs

Name

Description

FOnDynamicSliderMinMaxValueChanged

Notification when the max/min spinner values are changed (only apply if SupportDynamicSliderMaxValue or SupportDynamicSliderMinValue are true)

FOnUndeterminedValueChanged

Notification for change of undetermined values

FOnUndeterminedValueCommitted

Notification for committing undetermined values

FOnValueChanged

Notification for numeric value change

FOnValueCommitted

Notification for numeric value committed

Constants

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