UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SMenuOwner.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
"
6
#include "
Widgets/DeclarativeSyntaxSupport.h
"
7
#include "
Widgets/SCompoundWidget.h
"
8
#include "
Widgets/Input/SMenuAnchor.h
"
9
13
class
SMenuOwner
:
public
SCompoundWidget
14
{
15
public
:
16
SLATE_BEGIN_ARGS
(
SMenuOwner
)
17
{}
18
SLATE_DEFAULT_SLOT
( FArguments,
Content
)
19
SLATE_END_ARGS
()
20
21
SLATE_API
void
Construct
(const FArguments& InArgs);
22
23
public
:
29
SLATE_API
void
SetSummonedMenu
(
TSharedRef
< SMenuAnchor >
InMenuAnchor
);
30
31
37
SLATE_API
TSharedPtr
< const SMenuAnchor >
GetOpenMenu
() const;
38
42
SLATE_API
void
CloseSummonedMenus
();
43
44
protected
:
46
TWeakPtr
< SMenuAnchor >
SummonedMenuAnchor
;
47
};
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
DeclarativeSyntaxSupport.h
SLATE_END_ARGS
#define SLATE_END_ARGS()
Definition
DeclarativeSyntaxSupport.h:116
SLATE_DEFAULT_SLOT
#define SLATE_DEFAULT_SLOT(DeclarationType, SlotName)
Definition
DeclarativeSyntaxSupport.h:444
SCompoundWidget.h
SMenuAnchor.h
EVersePackageType::Content
@ Content
SCompoundWidget
Definition
SCompoundWidget.h:22
SMenuOwner
Definition
SMenuOwner.h:14
SMenuOwner::SLATE_BEGIN_ARGS
SLATE_BEGIN_ARGS(SMenuOwner)
Definition
SMenuOwner.h:16
SMenuOwner::SummonedMenuAnchor
TWeakPtr< SMenuAnchor > SummonedMenuAnchor
Definition
SMenuOwner.h:46
SMenuOwner::Construct
SLATE_API void Construct(const FArguments &InArgs)
Definition
SMenuOwner.cpp:5
SMenuOwner::GetOpenMenu
SLATE_API TSharedPtr< const SMenuAnchor > GetOpenMenu() const
Definition
SMenuOwner.cpp:18
SMenuOwner::CloseSummonedMenus
SLATE_API void CloseSummonedMenus()
Definition
SMenuOwner.cpp:29
SMenuOwner::SetSummonedMenu
SLATE_API void SetSummonedMenu(TSharedRef< SMenuAnchor > InMenuAnchor)
Definition
SMenuOwner.cpp:13
TSharedPtr
Definition
SharedPointer.h:692
TSharedRef
Definition
SharedPointer.h:153
TWeakPtr
Definition
SharedPointer.h:1295
Engine
Source
Runtime
Slate
Public
Widgets
Layout
SMenuOwner.h
Generated by
1.9.8