Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Components/MenuAnchor.h |
Include |
#include "Components/MenuAnchor.h" |
class UMenuAnchor : public UContentWidget
The Menu Anchor allows you to specify an location that a popup menu should be anchored to, and should be summoned from. Single Child Popup
Name | Description | ||
---|---|---|---|
|
bFitInWindow |
Should the menu anchor attempt to fit the menu inside the window. |
|
|
TSubclassOf< cl... |
MenuClass |
The widget class to spawn when the menu is required. |
|
TSharedPtr< SMe... |
MyMenuAnchor |
|
|
OnGetUserMenuContentEvent |
Called when the menu content is requested to allow a more customized handling over what to display |
|
|
OnMenuOpenChanged |
Called when the opened state of the menu changes |
|
|
TEnumAsByte< EM... |
Placement |
The placement location of the summoned widget. |
|
ShouldDeferPaintingAfterWindowContent |
||
|
UseApplicationMenuStack |
Does this menu behave like a normal stacked menu? Set it to false to control the menu's lifetime yourself. |
Name | Description | |
---|---|---|
|
UMenuAnchor ( |
Name | Description | ||
---|---|---|---|
|
Close() |
Closes the menu if it is currently open. |
|
|
FitInWindow ( |
||
|
GetMenuPosition() |
Returns the current menu position |
|
|
TSharedRef< ... |
HandleGetMenuContent() |
|
|
HandleMenuOpenChanged ( |
||
|
HasOpenSubMenus() |
Returns whether this menu has open submenus |
|
|
IsOpen() |
Returns true if the popup is open; false otherwise. |
|
|
Open ( |
Opens the menu if it is not already open |
|
|
SetPlacement ( |
||
|
ShouldOpenDueToClick() |
Returns true if we should open the menu due to a click. |
|
|
ToggleOpen ( |
Toggles the menus open state. |
Name | Description | ||
---|---|---|---|
|
OnSlotAdded ( |
||
|
OnSlotRemoved ( |
Name | Description | ||
---|---|---|---|
|
const FText |
GetPaletteCategory() |
Gets the palette category of the widget |
|
TSharedRef< ... |
RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. |
Name | Description | ||
---|---|---|---|
|
ReleaseSlateResources ( |
Name |
Description |
|
---|---|---|
|
FGetUserWidget |
Name | Description | ||
---|---|---|---|
|
OnGetMenuContentEvent |
Use OnGetUserMenuContentEvent instead, you may need to make the previous binding return an User Widget. |