#include <GMenu.h>
Public Member Functions | |
GSubMenu * | Create () |
Creates a sub menu off the item. | |
bool | Remove () |
Removes the item from it's place in the menu but doesn't delete it. | |
GSubMenu * | GetParent () |
Returns the parent sub menu. | |
bool | ScanForAccel () |
Scans the text of the item for a keyboard shortcut. | |
OsMenuItem | Handle () |
Returns the OS handle for the menuitem. | |
void | Id (int i) |
Set the id. | |
void | Separator (bool s) |
Turn the item into a separator. | |
void | Checked (bool c) |
Put a check mark on the item. | |
bool | Name (const char *n) |
Set the text of the item. | |
void | Enabled (bool e) |
Enable or disable the item. | |
void | Sub (GSubMenu *s) |
Attach a sub menu to the item. | |
void | Icon (int i) |
Set the icon for the item. The icon is stored in the GMenu's image list. | |
int | Id () |
Get the id. | |
char * | Name () |
Get the text of the item. | |
bool | Separator () |
Return whether this item is a separator. | |
bool | Checked () |
Return whether this item has a check mark. | |
bool | Enabled () |
Return whether this item is enabled. | |
GSubMenu * | Sub () |
Return whether this item's submenu. | |
int | Icon () |
Return the icon of this this. | |
Friends | |
class | GSubMenu |
class | GMenu |
class | GView |
bool GMenuItem::Name | ( | const char * | n | ) |
Set the text of the item.
Referenced by GSubMenu::AppendItem(), and GSubMenu::AppendSub().