UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
HorizontalBoxSlot.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"
9#include "Widgets/SBoxPanel.h"
12
13#include "HorizontalBoxSlot.generated.h"
14
15UCLASS(MinimalAPI)
17{
19
20private:
22
23public:
24
25 UE_DEPRECATED(5.1, "Direct access to Size is deprecated. Please use the getter or setter.")
27 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter = "SetSize", Category = "Layout|Horizontal Box Slot")
29
30 UE_DEPRECATED(5.1, "Direct access to Padding is deprecated. Please use the getter or setter.")
32 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter = "SetPadding", Category = "Layout|Horizontal Box Slot")
34
35 UE_DEPRECATED(5.1, "Direct access to HorizontalAlignment is deprecated. Please use the getter or setter.")
36 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter = "SetHorizontalAlignment", Category = "Layout|Horizontal Box Slot")
37 TEnumAsByte<EHorizontalAlignment> HorizontalAlignment;
38
39 UE_DEPRECATED(5.1, "Direct access to VerticalAlignment is deprecated. Please use the getter or setter.")
40 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter = "SetVerticalAlignment", Category = "Layout|Horizontal Box Slot")
41 TEnumAsByte<EVerticalAlignment> VerticalAlignment;
42
43public:
44
45 UMG_API FMargin GetPadding() const;
46
47 UFUNCTION(BlueprintCallable, Category="Layout|Horizontal Box Slot")
48 UMG_API void SetPadding(FMargin InPadding);
49
50 UMG_API FSlateChildSize GetSize() const;
51
52 UFUNCTION(BlueprintCallable, Category="Layout|Horizontal Box Slot")
53 UMG_API void SetSize(FSlateChildSize InSize);
54
55 UMG_API EHorizontalAlignment GetHorizontalAlignment() const;
56
57 UFUNCTION(BlueprintCallable, Category="Layout|Horizontal Box Slot")
58 UMG_API void SetHorizontalAlignment(EHorizontalAlignment InHorizontalAlignment);
59
60 UMG_API EVerticalAlignment GetVerticalAlignment() const;
61
62 UFUNCTION(BlueprintCallable, Category="Layout|Horizontal Box Slot")
63 UMG_API void SetVerticalAlignment(EVerticalAlignment InVerticalAlignment);
64
65public:
66
67 UMG_API void BuildSlot(TSharedRef<SHorizontalBox> HorizontalBox);
68
69 // UPanelSlot interface
70 UMG_API virtual void SynchronizeProperties() override;
71 // End of UPanelSlot interface
72
73 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
74
75#if WITH_EDITOR
77 UMG_API virtual void SynchronizeFromTemplate(const UPanelSlot* const TemplateSlot) override;
78#endif //WITH_EDITOR
79};
#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
uint32 Size
Definition VulkanMemory.cpp:4034
Definition SBoxPanel.h:175
Definition SBoxPanel.h:171
Definition EnumAsByte.h:22
Definition SharedPointer.h:153
Definition HorizontalBoxSlot.h:17
Definition PanelSlot.h:13
Definition Margin.h:17
Definition SlateWrapperTypes.h:145
Definition Optional.h:131