Module |
|
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
(
const TSharedPtr< IMenu > & InParentMenu,
const TSharedRef< SWidget > & InContent,
const FVector2D & SummonLocation,
const FPopupTransitionEffect & TransitionEffect,
const bool bFocusImmediately,
const FVector2D & SummonLocationSize,
const bool bIsCollapsedByParent
)
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.
Parameter |
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. |