Navigation
API > API/Editor > API/Editor/MainFrame > API/Editor/MainFrame/IMainFrameModule
Description
Generates a menu that includes application global commands, such as "Save All", "Exit", etc. If you're building a menu for your tab, you should call this function to create your menu, passing in an extender object to add your tab-specific menu items!
| Name | MakeMainMenu |
| Type | function |
| Header File | /Engine/Source/Editor/MainFrame/Public/Interfaces/IMainFrameModule.h |
| Include Path | #include "Interfaces/IMainFrameModule.h" |
TSharedRef< SWidget > MakeMainMenu
(
const TSharedPtr< FTabManager > & TabManager,
const FName MenuName,
FToolMenuContext & ToolMenuContext
) const
The newly-created menu widget
Parameters
| Name | Remarks |
|---|---|
| TabManager | The tab manager for the tab you're creating the menu for. This is needed so we can populate the layout menus correctly. |
| Extender | Extender object used to customize the main frame menu |