Navigation
API > API/Plugins > API/Plugins/Synthesis > API/Plugins/Synthesis/UI
Inheritance Hierarchy
- UWidget
- USynth2DSlider
References
| Module | Synthesis |
| Header | /Engine/Plugins/Runtime/Synthesis/Source/Synthesis/Public/UI/Synth2DSlider.h |
| Include | #include "UI/Synth2DSlider.h" |
Syntax
UCLASS ()
class USynth2DSlider : public UWidget
Remarks
A simple widget that shows a sliding bar with a handle that allows you to control the value between 0..1.
- 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? | |
| bool | Locked | Whether the handle is interactive or fixed. | |
| TSharedPtr< SSynth2DSlider > | MySlider | Native Slate Widget | |
| FOnControllerCaptureBeginEventSynth2D | OnControllerCaptureBegin | Invoked when the controller capture begins. | |
| FOnControllerCaptureEndEventSynth2D | OnControllerCaptureEnd | Invoked when the controller capture ends. | |
| FOnMouseCaptureBeginEventSynth2D | OnMouseCaptureBegin | Invoked when the mouse is pressed and a capture begins. | |
| FOnMouseCaptureEndEventSynth2D | OnMouseCaptureEnd | Invoked when the mouse is released and a capture ends. | |
| FOnFloatValueChangedEventSynth2D | OnValueChangedX | Called when the value is changed by slider or typing. | |
| FOnFloatValueChangedEventSynth2D | OnValueChangedY | Called when the value is changed by slider or typing. | |
| 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 | ValueX | ||
| FGetFloat | ValueXDelegate | A bindable delegate to allow logic to drive the value of the widget | |
| float | ValueY | ||
| FGetFloat | ValueYDelegate | A bindable delegate to allow logic to drive the value of the widget | |
| FSynth2DSliderStyle | WidgetStyle | The progress bar style |
Constructors
| Type | Name | Description | |
|---|---|---|---|
USynth2DSlider
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const FText | |||
| FVector2D | GetValue () |
Gets the current value of the slider. | |
| void | |||
| void | |||
| void | |||
| void | |||
| void | HandleOnValueChangedX
(
float InValue |
||
| void | HandleOnValueChangedY
(
float InValue |
||
PROPERTY_BINDING_IMPLEMENTATION
(
float, |
|||
PROPERTY_BINDING_IMPLEMENTATION
(
float, |
|||
| TSharedRef< SWidget > | |||
| void | ReleaseSlateResources
(
bool bReleaseChildren |
||
| 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 | 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
(
FVector2D InValue |
Sets the current value of the slider. | |
| void |