Destroys and cleans up this resource from memory. You should not call any method on this object anymore and should drop any reference to it.
Static
newReturns the text of this submenu.
Returns whether this submenu is enabled or not.
Remove a menu item from this submenu.
Remove a menu item from this submenu at the specified position.
Returns a list of menu items that has been added to this submenu.
Retrieves the menu item matching the given identifier.
Popup this submenu as a context menu on the specified window.
If the position, is provided, it is relative to the window's top-left corner.
Optional
at: dpi.LogicalPosition | dpi.PhysicalPositionOptional
window: WindowSet this submenu as the Window menu for the application on macOS.
This will cause macOS to automatically add window-switching items and certain other items to the menu.
Set this submenu as the Help menu for the application on macOS.
This will cause macOS to automatically add a search box to the menu.
If no menu is set as the Help menu, macOS will automatically use any menu which has a title matching the localized word "Help".
A type that is a submenu inside a
Menu
orSubmenu
.