Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/Application > API/Runtime/Slate/Framework/Application/FSlateApplication > API/Runtime/Slate/Framework/Application/FSlateApplication/PushMenu
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h |
| Include | #include "Framework/Application/SlateApplication.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Framework/Application/SlateApplication.cpp |
TSharedPtr< IMenu > PushMenu
&40;
const TSharedPtr< IMenu > & InParentMenu,
const TSharedRef< SWidget > & InContent,
const UE::Slate::FDeprecateVector2DParameter & SummonLocation,
const FPopupTransitionEffect & TransitionEffect,
const bool bFocusImmediately,
const UE::Slate::FDeprecateVector2DParameter & SummonLocationSize,
const bool bIsCollapsedByParent
&41;
Remarks
Creates a new Menu and adds it to the menu stack under the specified parent menu. Menus are always auto-sized. Use fixed-size content if a fixed size is required.
Parameters
| Name | Description |
|---|---|
| InParentMenu | The parent of the menu. Must be a valid menu in the stack. |
| InContent | The content to be placed inside the new menu |
| SummonLocation | The location where this menu should be summoned |
| TransitionEffect | Animation to use when the popup appears |
| bFocusImmediately | Should the popup steal focus when shown? |
| SummonLocationSize | An optional rect which describes an area in which the menu may not appear |
| 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. |