MinWin API Reference

minwin

app
button
canvas
combo
component
dialog
event
font
geometry
group
icon
image
label
layout
listbox
menu
multidg
paint
peer
peerimpl
scroll
text
window

minwin.menu

Defines menu classes

alias MenuPeer;
Platform-specific menu type

Windows HMENU
GTK GtkWidget*

alias MenuBarPeer;
Platform-specific menu bar type

Windows HMENU
GTK GtkWidget*

class MenuBar;
Menu bar class

MenuBarPeer_ peer;
Read/write property for peer.

char[] name;
Name property used for resource lookup on XWindows and debugging.

Window owner;
Owner window.

Menu[] menus;
List of menus.

this(Window parent, char[] name = "");
Construct a menu bar with the given name.

class Menu;
Menu class

MenuPeer_ peer;
Read/write property for peer.

char[] name;
Name property used for resource lookup on XWindows and debugging.

MenuBar parentBar;
Parent menu bar.

this(inout MenuBar bar, char[] label, char[] name = "");
Construct a menu with the given label and name.

void addSeparator();
Add a separator to the menu.

void add(char[] name, int cmd);
Add a new item to the menu.