UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WrapBoxSlot.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
8#include "Layout/Margin.h"
11
12#include "WrapBoxSlot.generated.h"
13
15UCLASS(MinimalAPI)
17{
19
20public:
21
22 UE_DEPRECATED(5.1, "Direct access to Padding is deprecated. Please use the getter or setter.")
24 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter="SetPadding", Category="Layout|Wrap Box Slot")
26
27 UE_DEPRECATED(5.1, "Direct access to FillSpanWhenLessThan is deprecated. Please use the getter or setter.")
32 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter="SetFillSpanWhenLessThan", Category="Layout|Wrap Box Slot")
33 float FillSpanWhenLessThan;
34
35 UE_DEPRECATED(5.1, "Direct access to HorizontalAlignment is deprecated. Please use the getter or setter.")
37 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter="SetHorizontalAlignment", Category="Layout|Wrap Box Slot")
38 TEnumAsByte<EHorizontalAlignment> HorizontalAlignment;
39
40 UE_DEPRECATED(5.1, "Direct access to VerticalAlignment is deprecated. Please use the getter or setter.")
42 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter="SetVerticalAlignment", Category="Layout|Wrap Box Slot")
43 TEnumAsByte<EVerticalAlignment> VerticalAlignment;
44
45 UE_DEPRECATED(5.1, "Direct access to bFillEmptySpace is deprecated. Please use the getter or setter.")
47 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter="SetFillEmptySpace", BlueprintSetter="SetFillEmptySpace", Category = "Layout|Wrap Box Slot")
48 bool bFillEmptySpace;
49
50 UE_DEPRECATED(5.1, "Direct access to bForceNewLine is deprecated. Please use the getter or setter.")
52 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter="SetNewLine", BlueprintSetter="SetNewLine", Category = "Layout|Wrap Box Slot")
53 bool bForceNewLine;
54
55public:
56
57 UMG_API FMargin GetPadding() const;
58
59 UFUNCTION(BlueprintCallable, Category="Layout|Wrap Box Slot")
60 UMG_API void SetPadding(FMargin InPadding);
61
62 UMG_API bool DoesFillEmptySpace() const;
63
64 UFUNCTION(BlueprintCallable, Category="Layout|Wrap Box Slot")
65 UMG_API void SetFillEmptySpace(bool InbFillEmptySpace);
66
67 UMG_API float GetFillSpanWhenLessThan() const;
68
69 UFUNCTION(BlueprintCallable, Category="Layout|Wrap Box Slot")
70 UMG_API void SetFillSpanWhenLessThan(float InFillSpanWhenLessThan);
71
72 UMG_API EHorizontalAlignment GetHorizontalAlignment() const;
73
74 UFUNCTION(BlueprintCallable, Category="Layout|Wrap Box Slot")
75 UMG_API void SetHorizontalAlignment(EHorizontalAlignment InHorizontalAlignment);
76
77 UMG_API EVerticalAlignment GetVerticalAlignment() const;
78
79 UFUNCTION(BlueprintCallable, Category="Layout|Wrap Box Slot")
80 UMG_API void SetVerticalAlignment(EVerticalAlignment InVerticalAlignment);
81
82 UMG_API bool DoesForceNewLine() const;
83
84 UFUNCTION(BlueprintCallable, Category="Layout|Wrap Box Slot")
85 UMG_API void SetNewLine(bool InForceNewLine);
86
87public:
88
89 // UPanelSlot interface
90 UMG_API virtual void SynchronizeProperties() override;
91 // End of UPanelSlot interface
92
93 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
94
96 UMG_API void BuildSlot(TSharedRef<SWrapBox> InWrapBox);
97
99 //TODO UMG Slots should hold weak or shared refs to slots.
100
102 SWrapBox::FSlot* Slot;
103};
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
EHorizontalAlignment
Definition SlateEnums.h:174
EVerticalAlignment
Definition SlateEnums.h:194
Definition SWrapBox.h:51
Definition EnumAsByte.h:22
Definition SharedPointer.h:153
Definition PanelSlot.h:13
Definition WrapBoxSlot.h:17
Definition Margin.h:17