UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ScrollBoxSlot.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"
12
13#include "ScrollBoxSlot.generated.h"
14
16UCLASS(MinimalAPI)
18{
20
21private:
22
24 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter, Setter, Category = "Layout|ScrollBox Slot", meta = (AllowPrivateAccess = "true", DisplayAfter = "Padding"))
26
27public:
28
29 UE_DEPRECATED(5.1, "Direct access to Padding is deprecated. Please use the getter or setter.")
31 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Layout|ScrollBox Slot")
33
34 UE_DEPRECATED(5.1, "Direct access to HorizontalAlignment is deprecated. Please use the getter or setter.")
36 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Layout|ScrollBox Slot")
37 TEnumAsByte<EHorizontalAlignment> HorizontalAlignment;
38
39 UE_DEPRECATED(5.1, "Direct access to VerticalAlignment is deprecated. Please use the getter or setter.")
41 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Layout|ScrollBox Slot")
42 TEnumAsByte<EVerticalAlignment> VerticalAlignment;
43
44public:
45
46 UMG_API FMargin GetPadding() const;
47
48 UFUNCTION(BlueprintCallable, Category="Layout|ScrollBox Slot")
49 UMG_API void SetPadding(FMargin InPadding);
50
51 UMG_API FSlateChildSize GetSize() const;
52
53 UMG_API void SetSize(FSlateChildSize InSize);
54
55 UMG_API EHorizontalAlignment GetHorizontalAlignment() const;
56
57 UFUNCTION(BlueprintCallable, Category="Layout|ScrollBox Slot")
58 UMG_API void SetHorizontalAlignment(EHorizontalAlignment InHorizontalAlignment);
59
60 UMG_API EVerticalAlignment GetVerticalAlignment() const;
61
62 UFUNCTION(BlueprintCallable, Category = "Layout|ScrollBox Slot")
63 UMG_API void SetVerticalAlignment(EVerticalAlignment InVerticalAlignment);
64
65public:
66
67 //~ UPanelSlot interface
68 UMG_API virtual void SynchronizeProperties() override;
69 //~ End of UPanelSlot interface
70
72 UMG_API void BuildSlot(TSharedRef<SScrollBox> ScrollBox);
73
74 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
75
77
79 SScrollBox::FSlot* Slot;
80};
#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 SScrollBox.h:76
Definition EnumAsByte.h:22
Definition SharedPointer.h:153
Definition PanelSlot.h:13
Definition ScrollBoxSlot.h:18
Definition Margin.h:17
Definition SlateWrapperTypes.h:145