UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UniformGridPanel.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"
7#include "Layout/Margin.h"
8#include "Widgets/SWidget.h"
10#include "UniformGridPanel.generated.h"
11
14
18UCLASS(MinimalAPI)
20{
22
23public:
24
25 UE_DEPRECATED(5.1, "Direct access to SlotPadding is deprecated. Please use the getter or setter.")
27 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter, Setter, BlueprintSetter="SetSlotPadding", Category="Child Layout")
28 FMargin SlotPadding;
29
30 UE_DEPRECATED(5.1, "Direct access to MinDesiredSlotWidth is deprecated. Please use the getter or setter.")
32 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter, Setter, BlueprintSetter="SetMinDesiredSlotWidth", Category="Child Layout")
33 float MinDesiredSlotWidth;
34
35 UE_DEPRECATED(5.1, "Direct access to MinDesiredSlotHeight is deprecated. Please use the getter or setter.")
37 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter, Setter, BlueprintSetter="SetMinDesiredSlotHeight", Category="Child Layout")
38 float MinDesiredSlotHeight;
39
40public:
41
43 UMG_API FMargin GetSlotPadding() const;
44
46 UFUNCTION(BlueprintCallable, Category="Child Layout")
47 UMG_API void SetSlotPadding(FMargin InSlotPadding);
48
50 UMG_API float GetMinDesiredSlotWidth() const;
51
53 UFUNCTION(BlueprintCallable, Category="Child Layout")
54 UMG_API void SetMinDesiredSlotWidth(float InMinDesiredSlotWidth);
55
57 UMG_API float GetMinDesiredSlotHeight() const;
58
60 UFUNCTION(BlueprintCallable, Category="Child Layout")
61 UMG_API void SetMinDesiredSlotHeight(float InMinDesiredSlotHeight);
62
63public:
64
66 UFUNCTION(BlueprintCallable, Category="Widget")
67 UMG_API UUniformGridSlot* AddChildToUniformGrid(UWidget* Content, int32 InRow = 0, int32 InColumn = 0);
68
69public:
70
71 //~ UWidget interface
74
75#if WITH_EDITOR
76 UMG_API virtual const FText GetPaletteCategory() override;
77#endif
78 //~ End of UWidget interface
79
80protected:
81
82 // UPanelWidget
83 UMG_API virtual UClass* GetSlotClass() const override;
84 UMG_API virtual void OnSlotAdded(UPanelSlot* Slot) override;
85 UMG_API virtual void OnSlotRemoved(UPanelSlot* Slot) override;
86 // End UPanelWidget
87
88protected:
89
91
92protected:
93 //~ UWidget interface
94 UMG_API virtual TSharedRef<SWidget> RebuildWidget() override;
95 //~ End of UWidget interface
96};
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
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
Definition Text.h:385
Definition SUniformGridPanel.h:19
Definition SharedPointer.h:692
Definition SharedPointer.h:153
Definition Class.h:3793
Definition PanelSlot.h:13
Definition PanelWidget.h:15
Definition UniformGridPanel.h:20
TSharedPtr< SUniformGridPanel > MyUniformGridPanel
Definition UniformGridPanel.h:90
Definition UniformGridSlot.h:19
virtual UMG_API void ReleaseSlateResources(bool bReleaseChildren) override
Definition UniformGridSlot.cpp:21
virtual UMG_API void SynchronizeProperties() override
Definition UniformGridSlot.cpp:99
Definition Widget.h:217
Definition Margin.h:17