Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Class Members

Menu Class Reference
[Windowing]

#include <lvt/Menu.h>

List of all members.


Detailed Description

A pop-up menu.

Details.


Public Member Functions

void Append (const std::string &text, Menu &subMenu)
 Appends a new submenu to the end of the menu.
void Append (const std::string &text, int id)
 Appends a new menu item to the end of the menu.
void AppendSeparator ()
 Appends a separator to the end of the menu.
void Insert (const std::string &text, int next, Menu &subMenu)
 Inserts a new submenu.
void Insert (const std::string &text, int next, int id)
 Inserts a new menu item.
void InsertSeparator (int next)
 Inserts a separator into the menu.
bool Remove (int id)
 Removes a menu item from the menu.


Member Function Documentation

void Append const std::string &  text,
Menu subMenu
 

Appends a new submenu to the end of the menu.

Parameters:
text menu item text.
subMenu reference to the submenu to append.

void Append const std::string &  text,
int  id
 

Appends a new menu item to the end of the menu.

Parameters:
text menu item text.
id identifier of the new item.

void AppendSeparator  ) 
 

Appends a separator to the end of the menu.

void Insert const std::string &  text,
int  next,
Menu subMenu
 

Inserts a new submenu.

Parameters:
text submenu title.
next position of the menu item the new submenu will be inserted before.
subMenu reference to the new submenu.

void Insert const std::string &  text,
int  next,
int  id
 

Inserts a new menu item.

Parameters:
text menu item text.
next position of the menu item the new item will be inserted before.
id identifier of the new item.

void InsertSeparator int  next  ) 
 

Inserts a separator into the menu.

Parameters:
next position of the menu item the new separator will be inserted before.

bool Remove int  id  ) 
 

Removes a menu item from the menu.


Generated on Thu Feb 17 09:45:47 2005 for liblvt by  doxygen 1.4.1