Navigation
API > API/Developer > API/Developer/ToolMenus
References
| Module | ToolMenus |
| Header | /Engine/Source/Developer/ToolMenus/Public/ToolMenuEntry.h |
| Include | #include "ToolMenuEntry.h" |
Syntax
USTRUCT (BlueprintType )
struct FToolMenuEntry
Remarks
Represents entries in menus such as buttons, checkboxes, and sub-menus.
Many entries are created for you via the methods of FToolMenuSection, such as FToolMenuSection::AddMenuEntry.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bShouldCloseWindowAfterMenuSelection | ||
| TAttribute< FSlateIcon > | Icon | ||
| TAttribute< FText > | InputBindingLabel | ||
| FToolMenuInsert | InsertPosition | ||
| TAttribute< FText > | Label | ||
| FNewToolMenuCustomWidget | MakeCustomWidget | Optional delegate that returns a widget to use as this menu entry | |
| FNewToolMenuWidget | MakeWidget | ||
| FName | Name | ||
| FToolMenuOwner | Owner | ||
| TObjectPtr< UToolMenuEntryScript > | ScriptObject | ||
| FName | StyleNameOverride | ||
| FToolMenuEntrySubMenuData | SubMenuData | ||
| FToolMenuEntryToolBarData | ToolBarData | ||
| TAttribute< FText > | ToolTip | ||
| FName | TutorialHighlightName | ||
| EMultiBlockType | Type | ||
| EUserInterfaceActionType | UserInterfaceActionType | ||
| FToolMenuEntryWidgetData | WidgetData |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FToolMenuEntry
(
const FToolMenuEntry& |
|||
FToolMenuEntry
(
FToolMenuEntry&& |
|||
FToolMenuEntry
(
const FToolMenuOwner InOwner, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddKeybindFromCommand
(
const TSharedPtr< const FUICommandInfo >& InCommand |
||
| void | AddOptionsDropdown
(
FUIAction InAction, |
||
| bool | CommandAcceptsInput
(
const FKeyEvent& InKeyEvent |
||
| const FUIAction * | GetActionForCommand
(
const FToolMenuContext& InContext, |
||
| FToolMenuEntry | InitComboButton
(
const FName InName, |
||
| FToolMenuEntry | InitDynamicEntry
(
const FName InName, |
||
| FToolMenuEntry | InitMenuEntry
(
const FName InName, |
||
| FToolMenuEntry | InitMenuEntry
(
const FName InNameOverride, |
||
| FToolMenuEntry | InitMenuEntry
(
const TSharedPtr< const FUICommandInfo >& InCommand, |
||
| FToolMenuEntry | InitMenuEntry
(
const FName InName, |
||
| FToolMenuEntry | InitMenuEntryWithCommandList
(
const TSharedPtr< const FUICommandInfo >& InCommand, |
||
| FToolMenuEntry | InitSeparator
(
const FName InName |
||
| FToolMenuEntry | InitSubMenu
(
const FName InName, |
||
| FToolMenuEntry | InitSubMenu
(
const FName InName, |
||
| FToolMenuEntry | InitSubMenu
(
const FName InName, |
||
| FToolMenuEntry | InitToolBarButton
(
const TSharedPtr< const FUICommandInfo >& InCommand, |
||
| FToolMenuEntry | InitToolBarButton
(
const FName InName, |
||
| FToolMenuEntry | InitWidget
(
const FName InName, |
||
| bool | |||
| bool | |||
| bool | IsSubMenu () |
||
| void | SetCommandList
(
const TSharedPtr< const FUICommandList >& InCommandList |
||
| void | SetShowInToolbarTopLevel
(
TAttribute< bool > InTopLevel |
Show this menu entry in the top-level toolbar section of a toolbar. | |
| bool | TryExecuteToolUIAction
(
const FToolMenuContext& InContext |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FToolMenuEntry & | operator=
(
FToolMenuEntry&& |
||
| FToolMenuEntry & | operator=
(
const FToolMenuEntry& |