Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Input
Inheritance Hierarchy
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Input/SSpinBox.h |
| Include | #include "Widgets/Input/SSpinBox.h" |
Syntax
template<typename NumericType>
class SSpinBox : public SCompoundWidget
Remarks
A Slate SpinBox resembles traditional spin boxes in that it is a widget that provides keyboard-based and mouse-based manipulation of a numeric value. Mouse-based manipulation: drag anywhere on the spinbox to change the value. Keyboard-based manipulation: click on the spinbox to enter text mode.
Constructors
| Type | Name | Description | |
|---|---|---|---|
SSpinBox () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplySliderMaxValueChanged
(
float SliderDeltaToAdd, |
||
| void | ApplySliderMinValueChanged
(
float SliderDeltaToAdd, |
||
| void | CommitValue
(
NumericType NewValue, |
Call this method when the user's interaction has changed the value | |
| void | Construct
(
const FArguments& InArgs |
Construct the widget | |
| void | Make the spinbox switch to keyboard-based input mode. | ||
| void | ExitTextMode () |
Make the spinbox switch to mouse-based input mode. | |
| float | Fraction
(
double InValue, |
Calculates range fraction. Possible to use on full numeric range | |
| bool | See the AlwaysUsesDeltaSnap attribute | ||
| NumericType | GetDelta () |
See the Delta attribute | |
| bool | See the EnableSlider attribute | ||
| int32 | See the MaxFractionalDigits attribute | ||
| NumericType | |||
| NumericType | GetMaxValue () |
See the MaxValue attribute | |
| float | See the MinDesiredWidth attribute | ||
| int32 | See the MinFractionalDigits attribute | ||
| NumericType | |||
| NumericType | GetMinValue () |
See the MinValue attribute | |
| float | See the SliderExponent attribute | ||
| NumericType | GetValue () |
See the Value attribute | |
| FString | |||
| FText | |||
| TAttribute< NumericType > | Return the Value attribute | ||
| const FSpinBoxStyle * | |||
| void | |||
| bool | IsInTextMode () |
||
| bool | See the MaxSliderValue attribute | ||
| bool | See the MinSliderValue attribute | ||
| void | NotifyValueCommitted
(
NumericType CurrentValue |
||
| void | SetAlwaysUsesDeltaSnap
(
bool bNewValue |
||
| void | SetDelta
(
NumericType InDelta |
||
| void | SetEnableSlider
(
bool bNewValue |
||
| void | SetMaxFractionalDigits
(
const TAttribute< TOptional< int32 >>& InMaxFractionalDigits |
||
| void | SetMaxSliderValue
(
const TAttribute< TOptional< NumericType >>& InMaxSliderValue |
||
| void | SetMaxValue
(
const TAttribute< TOptional< NumericType >>& InMaxValue |
||
| void | SetMinDesiredWidth
(
const TAttribute< float >& InMinDesiredWidth |
||
| void | SetMinFractionalDigits
(
const TAttribute< TOptional< int32 >>& InMinFractionalDigits |
||
| void | SetMinSliderValue
(
const TAttribute< TOptional< NumericType >>& InMinSliderValue |
||
| void | SetMinValue
(
const TAttribute< TOptional< NumericType >>& InMinValue |
||
| void | SetSliderExponent
(
const TAttribute< float >& InSliderExponent |
||
| void | SetTextBlockFont
(
FSlateFontInfo InFont |
||
| void | SetTextClearKeyboardFocusOnCommit
(
bool bNewValue |
||
| void | SetTextJustification
(
ETextJustify::Type InJustification |
||
| void | SetTextSelectAllTextOnCommit
(
bool bNewValue |
||
| void | SetValue
(
const TAttribute< NumericType >& InValueAttribute |
||
| void | SetWidgetStyle
(
const FSpinBoxStyle* InStyle |
||
| void | TextField_OnTextChanged
(
const FText& NewText |
Invoked when the text in the text field changes | |
| void | TextField_OnTextCommitted
(
const FText& NewText, |
Invoked when the text field commits its text. |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| bool | Checks to see if this widget currently has the keyboard focus | ||
| FCursorReply | OnCursorQuery
(
const FGeometry& MyGeometry, |
The system asks each widget under the mouse to provide a cursor. This event is bubbled. | |
| FReply | OnFocusReceived
(
const FGeometry& MyGeometry, |
KEY INPUT Called when focus is given to this widget. This event does not bubble. | |
| FReply | Called after a key is pressed when this widget has focus (this event bubbles if not handled) | ||
| FReply | OnMouseButtonDown
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse button was pressed within it. | |
| FReply | OnMouseButtonUp
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse button was release within it. | |
| FReply | OnMouseMove
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse moved within it. | |
| FReply | OnMouseWheel
(
const FGeometry& MyGeometry, |
Called when the mouse wheel is spun. This event is bubbled. | |
| int32 | OnPaint
(
const FPaintArgs& Args, |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. | |
| bool | Checks to see if this widget supports keyboard focus. Override this in derived classes. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |
Enums
| Type | Name | Description | |
|---|---|---|---|
| ECommitMethod | How user changed the value in the spinbox |
Typedefs
| Name | Description |
|---|---|
| FOnDynamicSliderMinMaxValueChanged | Notification when the max/min spinner values are changed (only apply if SupportDynamicSliderMaxValue or SupportDynamicSliderMinValue are true) |
| FOnValueChanged | Notification for numeric value change |
| FOnValueCommitted | Notification for numeric value committed |
Constants
| Name | Description |
|---|---|
| DefaultMaxFractionalDigits | The default maximum fractional digits |
| DefaultMinFractionalDigits | The default minimum fractional digits |