#include <GMenu.h>
Inheritance diagram for GSubMenu:
Public Member Functions | |
GSubMenu (char *name=(char *)"", bool Popup=true) | |
Constructor. | |
OsSubMenu | Handle () |
Returns the OS handle. | |
GMenuItem * | AppendItem (char *Str, int Id, bool Enabled, int Where=-1) |
Add a new item. | |
GSubMenu * | AppendSub (char *Str, int Where=-1) |
Add a submenu. | |
GMenuItem * | AppendSeparator (int Where=-1) |
Add a separator. | |
void | Empty () |
Delete all items. | |
bool | RemoveItem (int i) |
Detachs an item from the sub menu but doesn't delete it. | |
bool | RemoveItem (GMenuItem *Item) |
Detachs an item from the sub menu but doesn't delete it. | |
GMenuItem * | ItemAt (int i) |
Return a pointer to an item. | |
GMenuItem * | FindItem (int Id) |
Returns a pointer to an item. | |
GSubMenu * | FindSubMenu (int Id) |
Returns a pointer to an item. | |
int | Float (GView *Parent, int x, int y, bool Left=false) |
Floats the submenu anywhere on the screen. | |
GMenuItem * | GetParent () |
Returns the parent menu item. | |
GMenu * | GetMenu () |
Returns the menu that this belongs to. | |
Protected Attributes | |
GMenuItem * | Parent |
The parent menu item or NULL if the root menu. | |
GMenu * | Menu |
The top level window this sub menu belongs to or NULL. | |
GView * | Window |
The window that the menu belongs to or NULL. | |
Friends | |
class | GMenuItem |
class | GMenu |
|
Constructor.
|
|
Add a new item.
|
|
Add a submenu.
|
|
Returns a pointer to an item.
|
|
Returns a pointer to an item.
|
|
Floats the submenu anywhere on the screen.
|
|
Return a pointer to an item.
|
|
Detachs an item from the sub menu but doesn't delete it.
|
|
Detachs an item from the sub menu but doesn't delete it.
|