Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Framework/Application/MenuStack.h |
Include |
#include "Framework/Application/MenuStack.h" |
Source |
/Engine/Source/Runtime/Slate/Private/Framework/Application/MenuStack.cpp |
TSharedRef< IMenu > PushHosted
(
const FWidgetPath & InOwnerPath,
const TSharedRef< IMenuHost > & InMenuHost,
const TSharedRef< SWidget > & InContent,
TSharedPtr< SWidget > & OutWrappedContent,
const FPopupTransitionEffect & TransitionEffect,
EShouldThrottle ShouldThrottle,
const bool bIsCollapsedByParent
)
Pushes a new menu onto the stack that is drawn by an external host widget. The widget path will be searched for existing menus and the new menu will be parented appropriately. Menus are always auto-sized. Use fixed-size content if a fixed size is required.
Parameter |
Description |
---|---|
InOwnerPath |
The widget path for the parent widget of this menu |
InMenuHost |
The host widget that draws the menu's content |
InContent |
The menu's content |
OutWrappedContent |
Returns the InContent wrapped with widgets needed by the menu stack system. This is what should be drawn by the host after this call. |
TransitionEffect |
Animation to use when the popup appears |
bIsCollapsedByParent |
Is this menu collapsed when a parent menu receives focus/activation? If false, only focus/activation outside the entire stack will auto collapse it. |