Navigation
API > API/Runtime > API/Runtime/AdvancedWidgets > API/Runtime/AdvancedWidgets/Widgets
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SLeafWidget
- SRadialSlider
References
| Module | AdvancedWidgets |
| Header | /Engine/Source/Runtime/AdvancedWidgets/Public/Widgets/SRadialSlider.h |
| Include | #include "Widgets/SRadialSlider.h" |
Syntax
class SRadialSlider : public SLeafWidget
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | AngularOffset | The angle at which the radial slider should be offset by | |
| 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. | |
| bool | bShowSliderHand | Whether to show the slider hand. | |
| bool | bShowSliderHandle | Whether to show the slider handle (thumb). | |
| TAttribute< bool > | bUseCustomDefaultValue | Whether the slider should draw it's progress bar from a custom value on the slider. | |
| bool | bUseVerticalDrag | When true, value is changed when dragging vertically as opposed to along the radial curve. | |
| EMouseCursor::Type | CachedCursor | Holds the initial cursor in case a custom cursor has been specified, so we can restore it after dragging the slider. | |
| FSlateBrush | CenterBackgroundBrush | Center background image brush. | |
| TAttribute< FSlateColor > | CenterBackgroundColor | Holds the color of the center background. | |
| TAttribute< float > | CustomDefaultValue | The value where the slider should draw it's progress bar from, independent of direction. | |
| FVector2D | HandStartEndRatio | Start and end of the hand as a ratio to the slider radius (so 0.0 to 1.0 is from the slider center to the handle). | |
| TAttribute< bool > | LockedAttribute | Holds a flag indicating whether the slider is locked. | |
| FVector2D | PressedScreenSpaceTouchDownPosition | The location in screenspace the slider was pressed by a touch | |
| TAttribute< FSlateColor > | SliderBarColor | Holds the color of the slider bar. | |
| TAttribute< FSlateColor > | SliderHandleColor | Holds the color of the slider handle. | |
| float | SliderHandleEndAngle | The angle at which the radial slider should end | |
| float | SliderHandleStartAngle | The angle at which the radial slider should begin | |
| TAttribute< FSlateColor > | SliderProgressColor | Holds the color for the completed progress of the slider bar. | |
| FRuntimeFloatCurve | SliderRange | A curve that defines how the slider should be sampled. Default is linear. | |
| 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. | |
| TAttribute< TOptional< float > > | Thickness | Thickness used for slider bar instead of Style->BarThickness (see SetThickness) | |
| TAttribute< float > | ValueAttribute | Holds the slider's current value. | |
| TArray< float > | ValueTags | The values that should be drawn around the radial slider |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CommitValue
(
float NewValue |
Commits the specified slider value. | |
| void | Construct
(
const SRadialSlider::FArguments& InDeclaration |
Construct the widget. | |
| float | Get the AngularOffset attribute | ||
| const FSlateBrush * | GetBarImage () |
||
| float | Get ths CustomDefaultValue attribute | ||
| float | GetMaxValue () |
Get the maximum value in Slider Range | |
| float | GetMinValue () |
Get the minumum value in Slider Range | |
| float | Get the Slider's Handle position scaled from 0 to 1 | ||
| float | GetNormalizedValue
(
float RawValue |
Get the Value attribute scaled from 0 to 1 | |
| float | Get the MaxSliderHandleAngle attribute | ||
| float | Get the MinSliderHandleAngle attribute | ||
| FRuntimeFloatCurve | Get the SliderRange attribute | ||
| float | GetStepSize () |
Get the StepSize attribute | |
| const FSlateBrush * | |||
| bool | Get the bUseCustomDefaultValue attribute | ||
| float | GetValue () |
Get the Value attribute | |
| TArray< float > | GetValueTags () |
Get the ValueTags attribute | |
| bool | IsLocked () |
||
| float | PositionToValue
(
const FGeometry& MyGeometry, |
Calculates the new value based on the given absolute coordinates. | |
| void | SetAngularOffset
(
float InAngularOffset |
Set the AngularOffset attribute | |
| void | SetCenterBackgroundColor
(
FSlateColor InCenterHandleColor |
Set the SliderHandleColor attribute | |
| void | SetCustomDefaultValue
(
const TAttribute< float >& InValueAttribute |
Set the CustomDefaultValue attribute | |
| void | SetHandStartEndRatio
(
FVector2D InHandStartEndRatio |
Set the HandStartEndRatio. | |
| void | SetLocked
(
const TAttribute< bool >& InLocked |
Set the Locked attribute | |
| void | SetMouseUsesStep
(
bool MouseUsesStep |
Set the MouseUsesStep attribute | |
| void | SetRequiresControllerLock
(
bool RequiresControllerLock |
Set the RequiresControllerLock attribute | |
| void | SetShowSliderHand
(
bool ShowSliderHand |
Set the ShowSliderHand attribute | |
| void | SetShowSliderHandle
(
bool ShowSliderHandle |
Set the ShowSliderHandle attribute | |
| void | SetSliderBarColor
(
FSlateColor InSliderBarColor |
Set the SliderBarColor attribute | |
| void | SetSliderHandleColor
(
FSlateColor InSliderHandleColor |
Set the SliderHandleColor attribute | |
| void | SetSliderHandleStartAngleAndSliderHandleEndAngle
(
float InSliderHandleStartAngle, |
Set the SliderHandleStartAngle and SliderHandleEndAngle attributes. | |
| void | SetSliderProgressColor
(
FSlateColor InSliderProgressColor |
Set the SliderProgressColor attribute | |
| void | SetSliderRange
(
const FRuntimeFloatCurve& InSliderRange |
Set the SliderRange attribute | |
| void | SetStepSize
(
const TAttribute< float >& InStepSize |
Set the StepSize attribute | |
| void | SetThickness
(
const float InThickness |
Set the Thickness attribute. | |
| void | SetUseCustomDefaultValue
(
const TAttribute< bool >& InValueAttribute |
Set the bUseCustomDefaultValue attribute | |
| void | SetUseVerticalDrag
(
bool UseVerticalDrag |
Set the UseVerticalDrag attribute | |
| void | SetValue
(
const TAttribute< float >& InValueAttribute |
Set the Value attribute | |
| void | SetValueTags
(
const TArray< float >& InValueTags |
Set the ValueTags attribute |
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. | |
| 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. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |