SSynth2DSlider

A Slate slider control is a linear scale and draggable handle.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Synthesis

Header

/Engine/Plugins/Runtime/Synthesis/Source/Synthesis/Public/UI/SSynth2DSlider.h

Include

#include "UI/SSynth2DSlider.h"

Syntax

class SSynth2DSlider : public SLeafWidget

Remarks

A Slate slider control is a linear scale and draggable handle.

Functions

Name Description

Protected function

void

 

CommitValue

(
    float NewValueX,
    float NewValueY
)

Commits the specified slider value.

Public function

void

 

Construct

(
    const SSynth2DSlider::FArguments& ...
)

Construct the widget.

Public function Const

float

 

GetValueX()

See the Value attribute

Public function Const

float

 

GetValueY()

Public function Const

bool

 

IsLocked()

Protected function

FVector2D

 

PositionToValue

(
    const FGeometry& MyGeometry,
    const FVector2D& AbsolutePosition
)

Calculates the new value based on the given absolute coordinates.

Public function

void

 

SetIndentHandle

(
    const TAttribute< bool >& InIndent...
)

See the IndentHandle attribute

Public function

void

 

SetLocked

(
    const TAttribute< bool >& InLocked
)

See the Locked attribute

Public function

void

 

SetOrientation

(
    EOrientation InOrientation
)

See the Orientation attribute

Public function

void

 

SetSliderBarColor

(
    FSlateColor InSliderBarColor
)

See the SliderBarColor attribute

Public function

void

 

SetSliderHandleColor

(
    FSlateColor InSliderHandleColor
)

See the SliderHandleColor attribute

Public function

void

 

SetStepSize

(
    const TAttribute< float >& InStepS...
)

See the StepSize attribute

Public function

void

 

SetValueX

(
    const TAttribute< float >& InValue...
)

See the Value attribute

Public function

void

 

SetValueY

(
    const TAttribute< float >& InValue...
)

Overridden from SWidget

Name Description

Public function Virtual Const

FVector2D

 

ComputeDesiredSize

(
    float
)

Overwritten from SWidget.

Public function Virtual Const

bool

 

IsInteractable()

Public function Virtual

void

 

OnFocusLost

(
    const FFocusEvent& InFocusEvent
)

Called when this widget loses focus. This event does not bubble.

Public function Virtual

FReply

 

OnKeyDown

(
    const FGeometry& MyGeometry,
    const FKeyEvent& InKeyEvent
)

Called after a key is pressed when this widget has focus (this event bubbles if not handled)

Public function Virtual

FReply

 

OnKeyUp

(
    const FGeometry& MyGeometry,
    const FKeyEvent& InKeyEvent
)

Called after a key is released when this widget has focus

Public function Virtual

FReply

 

OnMouseButtonDown

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it.

Public function Virtual

FReply

 

OnMouseButtonUp

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

The system calls this method to notify the widget that a mouse button was release within it.

Public function Virtual

FReply

 

OnMouseMove

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

The system calls this method to notify the widget that a mouse moved within it.

Public function Virtual Const

int32

 

OnPaint

(
    const FPaintArgs& Args,
    const FGeometry& AllottedGeometry,
    const FSlateRect& MyCullingRect,
    FSlateWindowElementList& OutDrawEl...,
    int32 LayerId,
    const FWidgetStyle& InWidgetStyle,
    bool bParentEnabled
)

Overwritten from SWidget.

Public function Virtual Const

bool

 

SupportsKeyboardFocus()

Checks to see if this widget supports keyboard focus. Override this in derived classes.

Classes

Name

Description

Public struct

FArguments

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss