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/SSlider.h |
| Include | #include "Widgets/Input/SSlider.h" |
Syntax
class SSlider : public SLeafWidget
Remarks
A Slate slider control is a linear scale and draggable handle.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bControllerInputCaptured | Holds a flag indicating whether a controller/keyboard is manipulating the slider's value. | |
| bool | bIsFocusable | When true, this slider will be keyboard focusable. Defaults to false. | |
| bool | bMouseUsesStep | Sets new value if mouse position is greater/less than half the step size. | |
| bool | bRequiresControllerLock | Sets whether we have to lock input to change the slider value. | |
| EMouseCursor::Type | CachedCursor | Holds the initial cursor in case a custom cursor has been specified, so we can restore it after dragging the slider. | |
| float | MaxValue | ||
| float | MinValue | ||
| EOrientation | Orientation | Holds the slider's orientation. | |
| UE::Slate::FDeprecateVector2DResult | PressedScreenSpaceTouchDownPosition | The location in screenspace the slider was pressed by a touch | |
| TAttribute< float > | StepSize | Holds the amount to adjust the value by when using a controller or keyboard | |
| const FSliderStyle * | Style | Holds the style passed to the widget upon construction. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
SSlider () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CommitValue
(
float NewValue |
Commits the specified slider value. | |
| void | Construct
(
const SSlider::FArguments& InDeclaration |
Construct the widget. | |
| const FSlateBrush * | GetBarImage () |
||
| TSlateAttributeRef< bool > | |||
| TSlateAttributeRef< bool > | |||
| float | GetMaxValue () |
Get the MaxValue attribute | |
| float | GetMinValue () |
Get the MinValue attribute | |
| float | Get the Value attribute scaled from 0 to 1 | ||
| TSlateAttributeRef< FSlateColor > | |||
| TSlateAttributeRef< FSlateColor > | |||
| float | GetStepSize () |
Get the StepSize attribute | |
| const FSlateBrush * | |||
| float | GetValue () |
Get the Value attribute | |
| TSlateAttributeRef< float > | |||
| bool | IsLocked () |
||
| float | PositionToValue
(
const FGeometry& MyGeometry, |
Calculates the new value based on the given absolute coordinates. | |
| void | SetIndentHandle
(
TAttribute< bool > InIndentHandle |
Set the IndentHandle attribute | |
| void | SetLocked
(
TAttribute< bool > InLocked |
Set the Locked attribute | |
| void | SetMinAndMaxValues
(
float InMinValue, |
Set the MinValue and MaxValue attributes. | |
| void | SetMouseUsesStep
(
bool MouseUsesStep |
Set the MouseUsesStep attribute | |
| void | SetOrientation
(
EOrientation InOrientation |
Set the Orientation attribute | |
| void | SetRequiresControllerLock
(
bool RequiresControllerLock |
Set the RequiresControllerLock attribute | |
| void | SetSliderBarColor
(
TAttribute< FSlateColor > InSliderBarColor |
Set the SliderBarColor attribute | |
| void | SetSliderHandleColor
(
TAttribute< FSlateColor > InSliderHandleColor |
Set the SliderHandleColor attribute | |
| void | SetStepSize
(
TAttribute< float > InStepSize |
Set the StepSize attribute | |
| void | SetStyle
(
const FSliderStyle* InStyle |
Set the widget style. | |
| void | SetValue
(
TAttribute< float > InValueAttribute |
Set the Value attribute | |
| const FSlateWidgetClassData & |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | ComputeDesiredSize
(
float |
Overwritten from SWidget. | |
| TSharedRef< FSlateAccessibleWidget > | |||
| bool | |||
| void | OnFocusLost
(
const FFocusEvent& InFocusEvent |
Called when this widget loses focus. This event does not bubble. | |
| FReply | Called after a key is pressed when this widget has focus (this event bubbles if not handled) | ||
| FReply | Called after a key is released when this widget has focus | ||
| FReply | OnMouseButtonDown
(
const FGeometry& MyGeometry, |
MOUSE INPUT 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. | |
| void | OnMouseCaptureLost
(
const FCaptureLostEvent& CaptureLostEvent |
Called when this widget had captured the mouse, but that capture has been revoked for some reason. | |
| FReply | OnMouseMove
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse moved within it. | |
| FNavigationReply | OnNavigation
(
const FGeometry& MyGeometry, |
Called when navigation is requested e.g. Left Joystick, Direction Pad, Arrow Keys can generate navigation events. | |
| int32 | OnPaint
(
const FPaintArgs& Args, |
Overwritten from SWidget. | |
| FReply | OnTouchEnded
(
const FGeometry& MyGeometry, |
Called when a touchpad touch is ended (finger lifted) | |
| FReply | OnTouchMoved
(
const FGeometry& MyGeometry, |
Called when a touchpad touch is moved (finger moved) | |
| FReply | OnTouchStarted
(
const FGeometry& MyGeometry, |
Called when a touchpad touch is started (finger down) | |
| bool | Checks to see if this widget supports keyboard focus. Override this in derived classes. |
Overridden from FSlateControlledConstruction
| Type | Name | Description | |
|---|---|---|---|
| const FSlateWidgetClassData & |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |
Typedefs
| Name | Description |
|---|---|
| PrivateParentType | |
| PrivateThisType | |
| Super | |
| ThisClass |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| TSlateDeprecatedTAttribute< bool > | IndentHandle | Direct access to IndentHandle is now deprecated. Use the setter or getter. | |
| TSlateDeprecatedTAttribute< bool > | LockedAttribute | Direct access to LockedAttribute is now deprecated. Use the setter or getter. | |
| TSlateDeprecatedTAttribute< FSlateColor > | SliderBarColor | Direct access to SliderBarColor is now deprecated. Use the setter or getter. | |
| TSlateDeprecatedTAttribute< FSlateColor > | SliderHandleColor | Direct access to SliderHandleColor is now deprecated. Use the setter or getter. | |
| TSlateDeprecatedTAttribute< float > | ValueAttribute | Direct access to Value is now deprecated. Use the setter or getter. |