Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/FMenuStack
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedRef< IMenu > Push
(
const TSharedPtr< IMenu >& InParentMenu, |
Pushes a new child menu onto the stack. | Framework/Application/MenuStack.h | |
TSharedRef< IMenu > Push
(
const FWidgetPath& InOwnerPath, |
Pushes a new menu onto the stack. | Framework/Application/MenuStack.h |
Push(const TSharedPtr< IMenu > &, const TSharedRef< SWidget > &, const UE::Slate::FDeprecateVector2DParameter &, const FPopupTransitionEffect &, const bool, const UE::Slate::FDeprecateVector2DParameter &, const bool, const bool, const int32)
Description
Pushes a new child menu onto the stack. Menus are always auto-sized. Use fixed-size content if a fixed size is required.
| Name | Push |
| 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 > Push
(
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,
const int32 FocusUserIndex
)
Parameters
| Name | Remarks |
|---|---|
| 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? |
| FocusUserIndex | The index of the user that should focus the menu. INDEX_NONE for all users. |
Push(const FWidgetPath &, const TSharedRef< SWidget > &, const UE::Slate::FDeprecateVector2DParameter &, const FPopupTransitionEffect &, const bool, const UE::Slate::FDeprecateVector2DParameter &, TOptional< EPopupMethod >, const bool, const bool, const int32)
Description
Pushes a new menu onto the stack. The widget path will be searched for existing menus and the new menu will be parented appropriately. Menus are always auto-sized. Use fixed-size content if a fixed size is required.
| Name | Push |
| 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 > Push
(
const FWidgetPath & InOwnerPath,
const TSharedRef < SWidget > & InContent,
const UE::Slate::FDeprecateVector2DParameter & SummonLocation,
const FPopupTransitionEffect & TransitionEffect,
const bool bFocusImmediately,
const UE::Slate::FDeprecateVector2DParameter & SummonLocationSize,
TOptional < EPopupMethod > InMethod,
const bool bIsCollapsedByParent,
const bool bEnablePerPixelTransparency,
const int32 FocusUserIndex
)
Parameters
| Name | Remarks |
|---|---|
| InOwnerPath | The widget path for the parent widget of 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 |
| InMethod | An optional popup method that will override the default method for the widgets in InOwnerPath |
| 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? |
| FocusUserIndex | The index of the user that should focus the menu. INDEX_NONE for all users. |