Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/Input/SSpinBox.h |
Include |
#include "Widgets/Input/SSpinBox.h" |
template<typename NumericType>
class SSpinBox : public SCompoundWidget
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.
Name | Description | |
---|---|---|
|
SSpinBox() |
Name | Description | ||
---|---|---|---|
|
ApplySliderMaxValueChanged ( |
||
|
ApplySliderMinValueChanged ( |
||
|
CommitValue ( |
Call this method when the user's interaction has changed the value |
|
|
Construct ( |
Construct the widget |
|
|
EnterTextMode() |
Make the spinbox switch to keyboard-based input mode. |
|
|
ExitTextMode() |
Make the spinbox switch to mouse-based input mode. |
|
|
float |
Fraction ( |
Calculates range fraction. Possible to use on full numeric range |
|
GetAlwaysUsesDeltaSnap() |
See the AlwaysUsesDeltaSnap attribute |
|
|
NumericType |
GetDelta() |
See the Delta attribute |
|
GetMaxFractionalDigits() |
See the MaxFractionalDigits attribute |
|
|
NumericType |
GetMaxSliderValue() |
|
|
NumericType |
GetMaxValue() |
See the MaxValue attribute |
|
float |
GetMinDesiredWidth() |
See the MinDesiredWidth attribute |
|
GetMinFractionalDigits() |
See the MinFractionalDigits attribute |
|
|
NumericType |
GetMinSliderValue() |
|
|
NumericType |
GetMinValue() |
See the MinValue attribute |
|
float |
GetSliderExponent() |
See the SliderExponent attribute |
|
NumericType |
GetValue() |
See the Value attribute |
|
GetValueAsString() |
||
|
GetValueAsText() |
||
|
TAttribute< ... |
GetValueAttribute() |
Return the Value attribute |
|
IsInTextMode() |
||
|
IsMaxSliderValueBound() |
See the MaxSliderValue attribute |
|
|
IsMinSliderValueBound() |
See the MinSliderValue attribute |
|
|
NotifyValueCommitted ( |
||
|
SetAlwaysUsesDeltaSnap ( |
||
|
SetDelta ( |
||
|
SetMaxFractionalDigits ( |
||
|
SetMaxSliderValue ( |
||
|
SetMaxValue ( |
||
|
SetMinDesiredWidth ( |
||
|
SetMinFractionalDigits ( |
||
|
SetMinSliderValue ( |
||
|
SetMinValue ( |
||
|
SetSliderExponent ( |
||
|
SetValue ( |
||
|
TextField_OnTextChanged ( |
Invoked when the text in the text field changes |
|
|
TextField_OnTextCommitted ( |
Invoked when the text field commits its text. |
Name | Description | ||
---|---|---|---|
|
HasKeyboardFocus() |
Checks to see if this widget currently has the keyboard focus |
|
|
OnCursorQuery ( |
The system asks each widget under the mouse to provide a cursor. This event is bubbled. |
|
|
OnFocusReceived ( |
KEY INPUT Called when focus is given to this widget. This event does not bubble. |
|
|
OnKeyDown |
Called after a key is pressed when this widget has focus (this event bubbles if not handled) |
|
|
OnMouseButtonDown ( |
The system calls this method to notify the widget that a mouse button was pressed within it. |
|
|
OnMouseButtonUp ( |
The system calls this method to notify the widget that a mouse button was release within it. |
|
|
OnMouseMove ( |
The system calls this method to notify the widget that a mouse moved within it. |
|
|
OnPaint ( |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. |
|
|
SupportsKeyboardFocus() |
Checks to see if this widget supports keyboard focus. Override this in derived classes. |
Name |
Description |
|
---|---|---|
|
FArguments |
Name |
Description |
|
---|---|---|
|
ECommitMethod |
How user changed the value in the spinbox |
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 |
Name |
Description |
---|---|
DefaultMaxFractionalDigits |
The default maximum fractional digits |
DefaultMinFractionalDigits |
The default minimum fractional digits |