Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/Application > API/Runtime/Slate/Framework/Application/FMenuStack > API/Runtime/Slate/Framework/Application/FMenuStack/Push
References
| Module | Slate |
| 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 > Push
&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,
const bool bEnablePerPixelTransparency
&41;
Remarks
Pushes a new child menu onto the stack. Menus are always auto-sized. Use fixed-size content if a fixed size is required.
Parameters
| Name | Description |
|---|---|
| InParentMenu | The parent menu for this menu |
| InContent | The menu's content |
| SummonLocation | Location in screen-space where the menu should appear |
| TransitionEffect | Animation to use when the popup appears |
| bFocusImmediately | Should the popup steal focus when shown? |
| SummonLocationSize | An optional size around the summon location 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. |
| bEnablePerPixelTransparency | Does the menu's content require per pixel transparency? |