Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/FMenuStack
Description
Called by all menus during creation. Handles wrapping content in SMenuContentWrapper that acts as a marker in widget paths and in a box that sets minimum size.
| Name | WrapContent |
| 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 < SWidget > WrapContent
(
TSharedRef < SWidget > InContent,
FOptionalSize OptionalMinWidth,
FOptionalSize OptionalMinHeight,
bool bShouldShowBackground
)
Parameters
| Name | Remarks |
|---|---|
| InContent | The unwrapped content. |
| OptionalMinWidth | Optional minimum width for the wrapped content. |
| OptionalMinHeight | Optional minimum height for the wrapped content. |
| bShouldShowBackground | Whether the menu wrapper should put a background behind the content. |