The OpenD Programming Language

MenuItem

A MenuItem belongs to a Menu - use Menu.addItem to add one - and calls an Action when it is clicked.

class MenuItem : MouseActivatedWidget {
Menu submenu;
Action action;
string label;
}

Constructors

this
this(string lbl, Widget parent)

This should ONLY be used if there is no associated action, for example, if the menu item is just a submenu.

this
this(Action action, Widget parent)

Meta