Public Member Functions | Public Attributes

MenuItem Class Reference

List of all members.

Public Member Functions

 MenuItem (const char *text=0, int placement=-1)
void createItems (const BufferStringSet &)

Public Attributes

BufferString text
int placement
int id
bool checkable
bool checked
bool enabled
BufferString iconfnm
BufferString tooltip

Detailed Description

A generic representation of an item in a menu.


Constructor & Destructor Documentation

MenuItem::MenuItem ( const char *  text = 0,
int  placement = -1 
)

Member Function Documentation

void MenuItem::createItems ( const BufferStringSet  ) 

Member Data Documentation

If true, a check-mark can be placed

If true, a check-mark will be put infront of the items text

If false, the item will be visble, but not selectable.

This item's unique id.

Gives the system an indication where in the menu the item should be placed. Items will be placed in increasing order of placement.