Widget Studio
UTestWidget Class Reference

A test widget for cpp tests. More...

#include <TestWidget.h>

Inheritance diagram for UTestWidget:
UWidgetStudioButtonBase UWidgetStudioBase

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

UOverlay * Overlay = nullptr
 
UImage * Image = nullptr
 
UTextBlock * TextBlock = nullptr
 
UEditableTextBox * EditableTextBox = nullptr
 
USizeBox * SizeBox = 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...
 

Friends

class UWidgetStudioTestClass
 

Additional Inherited Members

- 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.
 
- 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...
 

Detailed Description

A test widget for cpp tests.

Member Function Documentation

◆ InitializeStyling()

void UTestWidget::InitializeStyling ( )
overrideprotectedvirtual

Reimplemented from UWidgetStudioBase.

◆ UpdateStyling()

void UTestWidget::UpdateStyling ( )
overrideprotectedvirtual

Reimplemented from UWidgetStudioBase.


The documentation for this class was generated from the following files: