Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/Application
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Framework/Application/MenuStack.h |
| Include | #include "Framework/Application/MenuStack.h" |
Syntax
class FMenuStack
Remarks
Represents a stack of open menus. The last item in the stack is the top most menu Menus are described as IMenus. Implementations of IMenu can control how the menus are created and presented (e.g. in their own window)
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMenuStack () |
Constructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DismissAll () |
Dismisses the entire menu stack | |
| void | DismissFrom
(
const TSharedPtr< IMenu >& InFromMenu |
Dismisses the menu stack including InFromMenu and all its child menus Dismisses in reverse order (children first) | |
| TSharedPtr< IMenu > | FindMenuFromWindow
(
TSharedRef< SWindow > InWindow |
Finds a menu in the stack that owns InWindow. | |
| TSharedPtr< IMenu > | FindMenuInWidgetPath
(
const FWidgetPath& PathToQuery |
Searches from bottom to top of the widget path for a menu in the stack. | |
| TSharedPtr< SWidget > | |||
| TSharedPtr< SWindow > | |||
| bool | GetToolTipForceFieldRect
(
const TSharedRef< IMenu >& InMenu, |
Called by the application when showing tooltips. | |
| bool | HasMenus () |
||
| bool | HasOpenSubMenus
(
TSharedPtr< IMenu > InMenu |
||
| void | OnWindowActivated
(
TSharedRef< SWindow > ActivatedWindow |
Notifies the stack that a new window was activated. | |
| void | OnWindowDestroyed
(
TSharedRef< SWindow > InWindow |
Called by the application when any window is destroyed. | |
| TSharedRef< IMenu > | Push
(
const TSharedPtr< IMenu >& InParentMenu, |
Pushes a new child menu onto the stack. | |
| TSharedRef< IMenu > | Push
(
const FWidgetPath& InOwnerPath, |
Pushes a new menu onto the stack. | |
| TSharedRef< IMenu > | PushHosted
(
const FWidgetPath& InOwnerPath, |
Pushes a new menu onto the stack that is drawn by an external host widget. | |
| TSharedRef< IMenu > | PushHosted
(
const TSharedPtr< IMenu >& InParentMenu, |
Pushes a new child menu onto the stack that is drawn by an external host widget. |