UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WindowTitleBarAreaSlot.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"
10
11#include "WindowTitleBarAreaSlot.generated.h"
12
14
16UCLASS(MinimalAPI)
18{
20
21public:
22
23 UMG_API FMargin GetPadding() const;
24
25 UFUNCTION(BlueprintCallable, Category="Layout|WindowTitleBarArea Slot")
27
28 UMG_API EHorizontalAlignment GetHorizontalAlignment() const;
29
30 UFUNCTION(BlueprintCallable, Category="Layout|WindowTitleBarArea Slot")
31 UMG_API void SetHorizontalAlignment(EHorizontalAlignment InHorizontalAlignment);
32
33 UMG_API EVerticalAlignment GetVerticalAlignment() const;
34
35 UFUNCTION(BlueprintCallable, Category = "Layout|WindowTitleBarArea Slot")
36 UMG_API void SetVerticalAlignment(EVerticalAlignment InVerticalAlignment);
37
38protected:
39
40 UE_DEPRECATED(5.1, "Direct access to Padding is deprecated. Please use the getter or setter.")
42 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter = "SetPadding", Category = "Layout|WindowTitleBarArea Slot")
44
45 UE_DEPRECATED(5.1, "Direct access to HorizontalAlignment is deprecated. Please use the getter or setter.")
47 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter = "SetHorizontalAlignment", Category = "Layout|WindowTitleBarArea Slot")
48 TEnumAsByte<EHorizontalAlignment> HorizontalAlignment;
49
50 UE_DEPRECATED(5.1, "Direct access to VerticalAlignment is deprecated. Please use the getter or setter.")
52 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter = "SetVerticalAlignment", Category = "Layout|WindowTitleBarArea Slot")
53 TEnumAsByte<EVerticalAlignment> VerticalAlignment;
54
55public:
56
57 //~ UPanelSlot interface
58 UMG_API virtual void SynchronizeProperties() override;
59 //~ End of UPanelSlot interface
60
62 UMG_API void BuildSlot(TSharedRef<SWindowTitleBarArea> WindowTitleBarArea);
63
64 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
65
67
69 TSharedPtr<SWindowTitleBarArea> WindowTitleBarArea;
70
72};
#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 SWindowTitleBarArea.h:25
SLATE_API void SetPadding(TAttribute< FMargin > InPadding)
Definition SWindowTitleBarArea.cpp:194
Definition EnumAsByte.h:22
Definition SharedPointer.h:692
Definition SharedPointer.h:153
Definition PanelSlot.h:13
Definition WindowTitleBarAreaSlot.h:18
Definition WindowTitleBarArea.h:22
Definition Margin.h:17