Module dui.Menu
| Constructor Summary | |
|---|---|
|
(GtkWidget* gtkWidget) |
|
| public |
() Creates a new menu |
|
(String title) Creates a new menu with a title |
|
| Methods Summary | |
|---|---|
| public static GType |
getType() Gets this class type |
| void |
setTitle(String title) Sets this menu title |
| Menu |
appendSubmenu(char label) Creates and append a submenu to this menu. |
| Menu |
appendSubmenu(String label) |
| void |
appendSubmenu(char label, Menu submenu) |
| void |
appendSubmenu(String label, Menu submenu) |
| Menu |
prependSubmenu(char label) |
| Menu |
prependSubmenu(String label) |
| void |
popup(guint button, guint32 activateTime) Popups up this menu |
| void |
popup(Widget parentMenuShell, Widget parentMenuItem, void* func, gpointer data, guint button, guint32 activateTime) Display the menu onscreen |
| void |
reposition() Position the menu according to its position function. |
| void |
popdown() Closes the popup menu |
| Widget |
getActive() Keep track of the last menu item selected. |
| void |
setActive(guint index) Sets the active item |
| void |
setAccelGroup(AccelGroup accelGroup) /* set/get the accelerator group that holds global accelerators (should be added to the corresponding toplevel with gtk_window_add_accel_group(). |
| AccelGroup |
getAccelGroup() Gets the accel group |
| void |
setAccelPath(String accelPath) |
| void |
attachToWidget(Widget attachWidget) A reference count is kept for a widget when it is attached to a particular widget. |
| void |
detach() Detaches this menu |
| Widget |
getAttachWidget() This should be dumped in favor of data set when the menu is popped up - that is currently in the ItemFactory code, but should be in the Menu code. |
| void |
setTearoffState(bit tornOff) Set tear off state ??? |
| bit |
getTearoffState() Get tear off state |
| String |
getTitle() Gets the menu title |
| void |
reorderChild(Widget child, gint position) Reset the position one menu item |
| void |
setScreen(Screen screen) Sets the screen for this menu |