The OpenD Programming Language

Menu

class Menu : Window {
version(!win32_widgets && custom_widgets)
SimpleWindow dropDown;
version(!win32_widgets && custom_widgets)
Widget menuParent;
version(!win32_widgets && custom_widgets)
EventListener clickListener;
MenuItem[] items;
string label;
version(win32_widgets)
HMENU handle;
}

Constructors

this
this(string label, Widget parent)
this
this(string label, Widget parent)

Members

Functions

addItem
MenuItem addItem(MenuItem item)
addSeparator
void addSeparator()

Inherited Members

From Window

icon
MemoryImage icon [@property setter]

Sets the window icon which is often seen in title bars and taskbars.

focused
bool focused [@property getter]
lineHeight
deprecated int lineHeight()

Gives the height of a line according to the default font. You should try to use your computed font instead of this, but until May 8, 2021, this was the only real option.

win
SimpleWindow win [@property getter]

Provides access to the underlying SimpleWindow. Note that changing properties on this window may disconnect minigui's event dispatchers.

win
SimpleWindow win [@property setter]
title
string title [@property getter]
title
string title [@property setter]
close
void close()
loop
void loop(BlockingMode bm)

Shows the window and runs the application event loop.

Meta