Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components
Inheritance Hierarchy
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/Slider.h |
| Include | #include "Components/Slider.h" |
Syntax
UCLASS (MinimalAPI)
class USlider : public UWidget
Remarks
A simple widget that shows a sliding bar with a handle that allows you to control the value in a user define range (between 0..1 by default).
- No Children
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | IndentHandle | Whether the slidable area should be indented to fit the handle. | |
| bool | IsFocusable | Should the slider be focusable? | |
| float | K2_Cache_Value | ||
| bool | Locked | Whether the handle is interactive or fixed. | |
| float | MaxValue | The maximum value the slider can be set to. | |
| float | MinValue | The minimum value the slider can be set to. | |
| bool | MouseUsesStep | Sets new value if mouse position is greater/less than half the step size. | |
| TSharedPtr< SSlider > | MySlider | Native Slate Widget | |
| FOnControllerCaptureBeginEvent | OnControllerCaptureBegin | Invoked when the controller capture begins. | |
| FOnControllerCaptureEndEvent | OnControllerCaptureEnd | Invoked when the controller capture ends. | |
| FOnMouseCaptureBeginEvent | OnMouseCaptureBegin | Invoked when the mouse is pressed and a capture begins. | |
| FOnMouseCaptureEndEvent | OnMouseCaptureEnd | Invoked when the mouse is released and a capture ends. | |
| FOnFloatValueChangedEvent | OnValueChanged | Called when the value is changed by slider or typing. | |
| TEnumAsByte< EOrientation > | Orientation | The slider's orientation. | |
| bool | RequiresControllerLock | Sets whether we have to lock input to change the slider value. | |
| FLinearColor | SliderBarColor | The color to draw the slider bar in. | |
| FLinearColor | SliderHandleColor | The color to draw the slider handle in. | |
| float | StepSize | The amount to adjust the value by, when using a controller or keyboard | |
| float | Value | The volume value to display. | |
| FGetFloat | ValueDelegate | A bindable delegate to allow logic to drive the value of the widget | |
| FSliderStyle | WidgetStyle | The progress bar style |
Constructors
| Type | Name | Description | |
|---|---|---|---|
USlider
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | GetMaxValue () |
Gets the maximum value of the slider. | |
| float | GetMinValue () |
Gets the minimum value of the slider. | |
| float | Get the current value scaled from 0 to 1 | ||
| EOrientation | Getg the slider's orientation. | ||
| FLinearColor | Gets the color of the slider bar. | ||
| FLinearColor | Gets the color of the handle bar | ||
| float | GetStepSize () |
Gets the amount to adjust the value by. | |
| float | GetValue () |
Gets the current value of the slider. | |
| const FSliderStyle & | Get the style used by the widget. | ||
| void | |||
| void | |||
| void | |||
| void | |||
| void | HandleOnValueChanged
(
float InValue |
||
| bool | Gets if the slidable area should be indented to fit the handle. | ||
| bool | IsLocked () |
Returns true when the handle is fixed. | |
| float | |||
| void | SetIndentHandle
(
bool InValue |
Sets if the slidable area should be indented to fit the handle. | |
| void | SetLocked
(
bool InValue |
Sets the handle to be interactive or fixed. | |
| void | SetMaxValue
(
float InValue |
Sets the maximum value of the slider. | |
| void | SetMinValue
(
float InValue |
Sets the minimum value of the slider. | |
| void | SetOrientation
(
EOrientation InOrientation |
Sets the slider's orientation. | |
| void | SetSliderBarColor
(
FLinearColor InValue |
Sets the color of the slider bar. | |
| void | SetSliderHandleColor
(
FLinearColor InValue |
Sets the color of the handle bar | |
| void | SetStepSize
(
float InValue |
Sets the amount to adjust the value by, when using a controller or keyboard. | |
| void | SetValue
(
float InValue |
Sets the current value of the slider. | |
| void | SetWidgetStyle
(
const FSliderStyle& InStyle |
Set the style used by the widget. |
Overridden from UWidget
| Type | Name | Description | |
|---|---|---|---|
| const FText | Gets the palette category of the widget | ||
| TSharedRef< SWidget > | Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | ||
| void | Applies all properties to the native widget if possible. |
Overridden from UVisual
| Type | Name | Description | |
|---|---|---|---|
| void | ReleaseSlateResources
(
bool bReleaseChildren |