A modern styled switch. More...
#include <WSModernSwitch.h>
Public Member Functions | |
| FText | GetLabel () const |
| Deprecated. More... | |
| bool | IsLabelVisible () const |
| Is the label visible? | |
| EPalette | GetTrackColor () const |
| Returns the color of the track. | |
| EPalette | GetHandleColor () const |
| Returns the color of the handle. | |
| EPalette | GetLabelColor () const |
| Deprecated. More... | |
| void | SetLabelPlacement (const ELabelPlacement NewPlacement) |
| Deprecated. More... | |
| void | SetLabel (FText NewLabel) |
| Deprecated. More... | |
| void | SetTrackColor (EPalette NewColor) |
| Set the color of the track. More... | |
| void | SetHandleColor (EPalette NewColor) |
| Set the color of the handle. More... | |
| void | SetLabelColor (EPalette NewColor) |
| Deprecated. More... | |
Public Member Functions inherited from UWidgetStudioButtonBase | |
| void | ExecuteOnPressedLambda (UWidgetStudioButtonBase *CallingButton) |
| Executes the OnPressedLambda delegate. More... | |
| bool | IsCheckable () const |
| Returns the checkable state of the button. More... | |
| bool | IsChecked () const |
| Returns the checked state of the button. More... | |
| bool | IsCheckedStateLocked () const |
| Returns the checked lock state of the button. | |
| bool | IsPressed () const |
| Returns the pressed state of the button. | |
| virtual void | SetCheckable (bool bNewCheckableState) |
| Set the checkable state of the button. More... | |
| virtual void | SetChecked (bool bNewCheckedState, bool bBroadcast=true) |
| Set the checked state of the button. More... | |
| virtual void | SetCheckedLockedState (bool bNewCheckedState) |
| Lock or unlock the ability to change the checked state of the button. More... | |
Public Member Functions inherited from UWidgetStudioBase | |
| FVector2D | GetDimensions () const |
| Returns the current X and Y dimensions of the Widget. More... | |
| int32 | GetBorderRadius () const |
| Returns the current border radius of the Widget. More... | |
| void | ForceStyleUpdate () |
| Refresh the dynamic styling of the Widget Studio widget. | |
| void | SetSizeModifier (ESizeModifier InSizeModifier) |
| Set the size modifier of the Widget Studio widget. | |
Protected Member Functions | |
| virtual TSharedRef< SWidget > | RebuildWidget () override |
| virtual int32 | NativePaint (const FPaintArgs &Args, const FGeometry &AllottedGeometry, const FSlateRect &MyCullingRect, FSlateWindowElementList &OutDrawElements, int32 LayerId, const FWidgetStyle &InWidgetStyle, bool bParentEnabled) const override |
| virtual void | SynchronizeProperties () override |
| virtual void | InitializeStyling () override |
| virtual void | UpdateStyling () override |
Protected Member Functions inherited from UWidgetStudioButtonBase | |
| virtual void | NativeOnInitialized () override |
| virtual FReply | NativeOnMouseButtonDown (const FGeometry &InGeometry, const FPointerEvent &InMouseEvent) override |
| virtual FReply | NativeOnMouseButtonUp (const FGeometry &InGeometry, const FPointerEvent &InMouseEvent) override |
| virtual void | NativeOnMouseCaptureLost (const FCaptureLostEvent &CaptureLostEvent) override |
| virtual void | NativeOnMouseLeave (const FPointerEvent &InMouseEvent) override |
Protected Member Functions inherited from UWidgetStudioBase | |
| virtual void | NativeOnMouseEnter (const FGeometry &InGeometry, const FPointerEvent &InMouseEvent) override |
Protected Attributes | |
| UInvalidationBox * | Retainer = nullptr |
| UHorizontalBox * | HBox = nullptr |
| UOverlay * | Overlay = nullptr |
| USizeBox * | TrackSizeBox = nullptr |
| UScaleBox * | TrackScaleBox = nullptr |
| UOverlay * | TrackOverlay = nullptr |
| UImage * | TrackDropShadow = nullptr |
| UImage * | Track = nullptr |
| UScaleBox * | HandleScaleBox = nullptr |
| UOverlay * | HandleOverlay = nullptr |
| UImage * | HandleDropShadow = nullptr |
| UImage * | Handle = nullptr |
| UWidgetStudioText * | LabelItem = nullptr |
Protected Attributes inherited from UWidgetStudioButtonBase | |
| FTimerHandle | DoublePressTimer |
| bool | bIsCheckable = false |
| Depicts if the button can be checked or not. | |
| bool | bIsChecked = false |
| Depicts if the button is checked (on/true) or not (off/false). More... | |
| bool | bIsCheckedStateLocked = false |
| Locks the current checked state. More... | |
Additional Inherited Members | |
Public Attributes inherited from UWidgetStudioButtonBase | |
| FWSButtonLambda | OnPressedLambda |
| An open lambda binding for to be used for complex functionality when the button is pressed. More... | |
| FWSButtonDelegate | OnPressed |
| Called when the button is pressed with the left mouse button. | |
| FWSButtonDelegate | OnReleased |
| Called when the button is released. | |
| FWSButtonDelegate | OnDoublePressed |
| Called when the button is quickly pressed twice with the left mouse button. | |
| FWSButtonToggledDelegate | OnToggled |
| Called when the buttons checked status is toggled. More... | |
| bool | bForceCheckable = false |
| bool | bIsInteractable = true |
| Internal Use Only. More... | |
Public Attributes inherited from UWidgetStudioBase | |
| FWSBaseHoverStateDelegate | OnHoverStateChanged |
| Called when the hover state has been changed. | |
| bool | bCanOverrideDimensions = true |
| Used to enable or disable dimension override's. | |
| bool | bCanOverrideBorderRadius = true |
| Used to enable or disable dimension override's. | |
| FVector2D | MinimumDimensions = FVector2D(50, 7) |
| The minimum dimensions of the widget. More... | |
| bool | bDisablePainting = false |
| Used for debugging. More... | |
| float | AnimationTime = 7 |
| The animation interpolation speed. More... | |
| ESizeModifier | SizeModifier = ESizeModifier::Regular |
| Quickly modify the overall size of the widget. More... | |
| FVector2D | OverrideDimensions = FVector2D(0, 0) |
| Manually adjust the X and Y dimensions of the widget. More... | |
| int32 | OverrideBorderRadius = -1 |
| Manually adjust the border radius of the widget. More... | |
A modern styled switch.
| FText UWidgetStudioModernSwitch::GetLabel | ( | ) | const |
Deprecated.
Use the Label Widget instead.
| EPalette UWidgetStudioModernSwitch::GetLabelColor | ( | ) | const |
Deprecated.
Use the Label Widget instead.
|
overrideprotectedvirtual |
Reimplemented from UWidgetStudioBase.
| void UWidgetStudioModernSwitch::SetHandleColor | ( | EPalette | NewColor | ) |
Set the color of the handle.
| NewColor | The new color to apply to the handle. |
| void UWidgetStudioModernSwitch::SetLabel | ( | FText | NewLabel | ) |
Deprecated.
Use the Label Widget instead.
| void UWidgetStudioModernSwitch::SetLabelColor | ( | EPalette | NewColor | ) |
Deprecated.
Use the Label Widget instead.
| void UWidgetStudioModernSwitch::SetLabelPlacement | ( | const ELabelPlacement | NewPlacement | ) |
Deprecated.
Use the Label Widget instead.
| void UWidgetStudioModernSwitch::SetTrackColor | ( | EPalette | NewColor | ) |
Set the color of the track.
| NewColor | The new color to apply to the track. |
|
overrideprotectedvirtual |
Reimplemented from UWidgetStudioBase.