Navigation
API > API/Runtime > API/Runtime/Slate
Any widget that wants to own lists of items that may have sub-menus that should be handled in the same way as multibox menus (mouse can cross other items without sub-menu closing)
| Name | SMenuOwner |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SMenuOwner.h |
| Include Path | #include "Widgets/Layout/SMenuOwner.h" |
Syntax
class SMenuOwner : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SMenuOwner
- FSlateControlledConstruction → SWidget → SCompoundWidget → SMenuOwner
Derived Classes
Structs
| Name | Remarks |
|---|---|
| FArguments |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CloseSummonedMenus() |
For menu bar widget, closes any open pull-down or sub menus | Widgets/Layout/SMenuOwner.h | |
void Construct
(
const FArguments& InArgs |
Widgets/Layout/SMenuOwner.h | ||
TSharedPtr< const SMenuAnchor > GetOpenMenu() |
For menu bar or sub-menu widgets, returns the currently open menu, if there is one open | Widgets/Layout/SMenuOwner.h | |
void SetSummonedMenu
(
TSharedRef< SMenuAnchor > InMenuAnchor |
For menu widgets, tells the owner widget about a currently active pull-down menu | Widgets/Layout/SMenuOwner.h |