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 TSharedRef< SWidget > & InParentWidget,
const FWidgetPath & InOwnerPath,
const TSharedRef< SWidget > & InContent,
const FVector2D & SummonLocation,
const FPopupTransitionEffect & TransitionEffect,
const bool bFocusImmediately,
const FVector2D & SummonLocationSize,
TOptional< EPopupMethod > Method,
const bool bIsCollapsedByParent
)
Creates a new Menu and adds it to the menu stack. Menus are always auto-sized. Use fixed-size content if a fixed size is required.
Parameter |
Description |
---|---|
InParentWidget |
The parent of the menu. If the stack isn't empty, PushMenu will attempt to determine the stack level for the new menu by looking of an open menu in the parent's path. |
InOwnerPath |
Optional full widget path of the parent if one is available. If an invalid path is given PushMenu will attempt to generate a path to the InParentWidget |
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 |
Method |
An optional popup method override. If not set, the widgets in the InOwnerPath will be queried for this. |
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. |