UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WindowTitleBarArea.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"
9#include "Widgets/SWidget.h"
11
12#include "WindowTitleBarArea.generated.h"
13
15
20UCLASS(MinimalAPI)
22{
24
25public:
26
27 UE_DEPRECATED(5.2, "Direct access to bWindowButtonsEnabled is deprecated. Please use the getter or setter.")
29 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter = "IsWindowButtonsEnabled", Setter = "SetWindowButtonsEnabled", Category = "Interaction", meta = (DisplayName = "Window Buttons Enabled"))
30 bool bWindowButtonsEnabled;
31
32 UE_DEPRECATED(5.2, "Direct access to bDoubleClickTogglesFullscreen is deprecated. Please use the getter or setter.")
34 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter = "IsDoubleClickTogglesFullscreen", Setter = "SetDoubleClickTogglesFullscreen", Category = "Interaction", meta = (DisplayName = "Toggle Fullscreen"))
35 bool bDoubleClickTogglesFullscreen;
36
37public:
38
39 UFUNCTION(BlueprintCallable, Category = "Appearance")
41
42 UFUNCTION(BlueprintCallable, Category = "Appearance")
43 UMG_API void SetHorizontalAlignment(EHorizontalAlignment InHorizontalAlignment);
44
45 UFUNCTION(BlueprintCallable, Category = "Appearance")
46 UMG_API void SetVerticalAlignment(EVerticalAlignment InVerticalAlignment);
47
48 UMG_API void SetWindowButtonsEnabled(bool InWindowButtonsEnabled);
49
50 UMG_API bool IsWindowButtonsEnabled() const;
51
52 UMG_API void SetDoubleClickTogglesFullscreen(bool InDoubleClickTogglesFullscreen);
53
54 UMG_API bool IsDoubleClickTogglesFullscreen() const;
55
56public:
57
58 //~ Begin UVisual Interface
59 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
60 //~ End UVisual Interface
61
62 //~ Begin UObject Interface
64 //~ End UObject Interface
65
66 //~ Begin UWidget Interface
67#if WITH_EDITOR
68 UMG_API virtual const FText GetPaletteCategory() override;
69#endif
70 //~ End UWidget Interface
71
72protected:
73 //~ Begin UWidget Interface
74 UMG_API virtual TSharedRef<SWidget> RebuildWidget() override;
75 //~ End UWidget Interface
76
77protected:
78
79 // UPanelWidget
80 UMG_API virtual UClass* GetSlotClass() const override;
81 UMG_API virtual void OnSlotAdded(UPanelSlot* Slot) override;
82 UMG_API virtual void OnSlotRemoved(UPanelSlot* Slot) override;
83 // End UPanelWidget
84
85protected:
88
89private:
90
92 void RequestToggleFullscreen();
93
94private:
95
96 FDelegateHandle WindowActionNotificationHandle;
97};
#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
const bool
Definition NetworkReplayStreaming.h:178
#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 IDelegateInstance.h:14
Definition Text.h:385
Definition SWindowTitleBarArea.h:25
SLATE_API void SetPadding(TAttribute< FMargin > InPadding)
Definition SWindowTitleBarArea.cpp:194
Definition SharedPointer.h:692
Definition SharedPointer.h:153
Definition Class.h:3793
Definition ContentWidget.h:13
Definition PanelSlot.h:13
Definition WindowTitleBarArea.h:22
TSharedPtr< SWindowTitleBarArea > MyWindowTitleBarArea
Definition WindowTitleBarArea.h:87
Type
Definition GenericApplicationMessageHandler.h:113
Definition Margin.h:17