Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/FMenuStack
Description
This is the common code used during menu creation. This stage is not used by "hosted" menus. It handles pre-push, actual menu creation and post-push stack updates.
| Name | PushInternal |
| Type | function |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Application/MenuStack.h |
| Include Path | #include "Framework/Application/MenuStack.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Framework/Application/MenuStack.cpp |
TSharedRef < IMenu > PushInternal
(
const TSharedPtr < IMenu > & InParentMenu,
const TSharedRef < SWidget > & InContent,
FSlateRect Anchor,
const FPopupTransitionEffect & TransitionEffect,
const bool bFocusImmediately,
EShouldThrottle ShouldThrottle,
const bool bIsCollapsedByParent,
const bool bEnablePerPixelTransparency,
const int32 FocusUserIndex
)
The newly created menu.
Parameters
| Name | Remarks |
|---|---|
| InParentMenu | The parent menu for this menu |
| InContent | The menu's content |
| Anchor | The anchor location for the menu (rect around the parent widget that is summoning the menu) |
| TransitionEffect | Animation to use when the popup appears |
| bFocusImmediately | Should the popup steal focus when shown? |
| 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. |
| FocusUserIndex | The index of the user that should focus the menu. INDEX_NONE for all users. |