Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/FSlateApplication
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedPtr< IMenu > PushHostedMenu
(
const TSharedPtr< IMenu >& InParentMenu, |
Creates a new hosted child Menu and adds it to the menu stack under the specified parent menu. | Framework/Application/SlateApplication.h | |
TSharedPtr< IMenu > PushHostedMenu
(
const TSharedRef< SWidget >& InParentWidget, |
Creates a new hosted Menu and adds it to the menu stack. | Framework/Application/SlateApplication.h |
PushHostedMenu(const TSharedPtr< IMenu > &, const TSharedRef< IMenuHost > &, const TSharedRef< SWidget > &, TSharedPtr< SWidget > &, const FPopupTransitionEffect &, EShouldThrottle, const bool)
Description
Creates a new hosted child Menu and adds it to the menu stack under the specified parent menu. Hosted menus are drawn by an external host widget.
| Name | PushHostedMenu |
| Type | function |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h |
| Include Path | #include "Framework/Application/SlateApplication.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Framework/Application/SlateApplication.cpp |
TSharedPtr < IMenu > PushHostedMenu
(
const TSharedPtr < IMenu > & InParentMenu,
const TSharedRef < IMenuHost > & InMenuHost,
const TSharedRef < SWidget > & InContent,
TSharedPtr < SWidget > & OutWrappedContent,
const FPopupTransitionEffect & TransitionEffect,
EShouldThrottle ShouldThrottle,
const bool bIsCollapsedByParent
)
Parameters
| Name | Remarks |
|---|---|
| InParentMenu | The parent menu for this menu |
| InMenuHost | The host widget that draws the menu's content |
| InContent | The menu's content |
| OutWrappedContent | Returns the InContent wrapped with widgets needed by the menu stack system. This is what should be drawn by the host after this call. |
| TransitionEffect | Animation to use when the popup appears |
| ShouldThrottle | Should we throttle engine ticking to maximize the menu responsiveness |
| 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. |
PushHostedMenu(const TSharedRef< SWidget > &, const FWidgetPath &, const TSharedRef< IMenuHost > &, const TSharedRef< SWidget > &, TSharedPtr< SWidget > &, const FPopupTransitionEffect &, EShouldThrottle, const bool)
Description
Creates a new hosted Menu and adds it to the menu stack. Hosted menus are drawn by an external host widget.
| Name | PushHostedMenu |
| Type | function |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h |
| Include Path | #include "Framework/Application/SlateApplication.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Framework/Application/SlateApplication.cpp |
TSharedPtr < IMenu > PushHostedMenu
(
const TSharedRef < SWidget > & InParentWidget,
const FWidgetPath & InOwnerPath,
const TSharedRef < IMenuHost > & InMenuHost,
const TSharedRef < SWidget > & InContent,
TSharedPtr < SWidget > & OutWrappedContent,
const FPopupTransitionEffect & TransitionEffect,
EShouldThrottle ShouldThrottle,
const bool bIsCollapsedByParent
)
Parameters
| Name | Remarks |
|---|---|
| InParentMenu | The parent of the menu. Must be a valid menu in the stack. |
| 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 |
| InMenuHost | The host widget that draws the menu's content |
| InContent | The content to be placed inside the new menu |
| OutWrappedContent | Returns the InContent wrapped with widgets needed by the menu stack system. This is what should be drawn by the host after this call. |
| TransitionEffect | Animation to use when the popup appears |
| ShouldThrottle | Should we throttle engine ticking to maximize the menu responsiveness |
| 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. |