PopupMenu.addSubmenuItem

Adds an item that will act as a submenu of the parent PopupMenu node when clicked. The submenu argument is the name of the child PopupMenu node that will be shown when the item is clicked. An id can optionally be provided. If no id is provided, one will be created from the index.

struct PopupMenu
@nogc nothrow
void
addSubmenuItem
(
in String label
,
in String submenu
,
in long id = -1
)

Meta