12#include "CoreMinimal.h"
14#include "Widgets/WSBase.h"
15#include "Components/Overlay.h"
16#include "Components/ScaleBox.h"
17#include "WSDivider.generated.h"
29 virtual TSharedRef<SWidget> RebuildWidget()
override;
30 virtual int32 NativePaint(
const FPaintArgs& Args,
const FGeometry& AllottedGeometry,
const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId,
const FWidgetStyle& InWidgetStyle,
bool bParentEnabled)
const override;
31 virtual void SynchronizeProperties()
override;
32 virtual void InitializeStyling()
override;
33 virtual void UpdateStyling()
override;
37 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
38 UOverlay* SpaceAllocation =
nullptr;
40 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
41 USizeBox* SizeBox =
nullptr;
43 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
44 UScaleBox* ScaleBox =
nullptr;
46 UPROPERTY(BlueprintReadOnly, Category =
"Widgets")
47 UImage* ImageItem =
nullptr;
53 UPROPERTY(EditAnywhere, Category=
"Widget Studio")
54 TEnumAsByte<EOrientation> Orientation = Orient_Vertical;
57 UPROPERTY(EditAnywhere, Category=
"Widget Studio", Meta = (MinClamp =
"1", UIMin =
"1"))
61 UPROPERTY(EditAnywhere, Category=
"Widget Studio", Meta = (MinClamp =
"1", UIMin =
"1"))
65 UPROPERTY(EditAnywhere, Category=
"Widget Studio", Meta = (MinClamp =
"0", MaxClamp =
"1", UIMin =
"0", UIMax =
"1"))
69 UPROPERTY(EditAnywhere, Category=
"Widget Studio", Meta = (MinClamp =
"0", UIMin =
"0"))
70 float LeadingSpace = 10;
73 UPROPERTY(EditAnywhere, Category=
"Widget Studio", Meta = (MinClamp =
"0", UIMin =
"0"))
74 float TrailingSpace = 10;
79 UPROPERTY(EditAnywhere, Category=
"Widget Studio|Color")
80 EPalette Color = EPalette::TertiaryContent;
86 UFUNCTION(BlueprintPure, Category=
"Widget Studio|Helper")
87 TEnumAsByte<EOrientation> GetOrientation()
const;
90 UFUNCTION(BlueprintPure, Category=
"Widget Studio|Helper")
91 float GetThickness()
const;
94 UFUNCTION(BlueprintPure, Category=
"Widget Studio|Helper")
95 float GetLength()
const;
98 UFUNCTION(BlueprintPure, Category=
"Widget Studio|Helper")
99 float GetOpacity()
const;
102 UFUNCTION(BlueprintPure, Category=
"Widget Studio|Helper")
103 float GetLeadingSpace()
const;
106 UFUNCTION(BlueprintPure, Category=
"Widget Studio|Helper")
107 float GetTrailingSpace()
const;
110 UFUNCTION(BlueprintPure, Category=
"Widget Studio|Helper|Color")
111 EPalette GetColor()
const;
120 UFUNCTION(BlueprintCallable, Category=
"Widget Studio|Modifier")
121 void SetOrientation(TEnumAsByte<EOrientation> NewOrientation);
127 UFUNCTION(BlueprintCallable, Category=
"Widget Studio|Modifier")
128 void SetThickness(
float NewValue);
134 UFUNCTION(BlueprintCallable, Category=
"Widget Studio|Modifier")
135 void SetLength(
float NewValue);
141 UFUNCTION(BlueprintCallable, Category=
"Widget Studio|Modifier")
142 void SetOpacity(
float NewValue);
148 UFUNCTION(BlueprintCallable, Category=
"Widget Studio|Modifier")
149 void SetLeadingSpace(
float NewValue);
155 UFUNCTION(BlueprintCallable, Category=
"Widget Studio|Modifier")
156 void SetTrailingSpace(
float NewValue);
162 UFUNCTION(BlueprintCallable, Category=
"Widget Studio|Modifier|Color")
163 void SetColor(EPalette NewColor);