|
LightWrap++
AC++wrapperfortheLightWave3DSDK
|
#include <contextmenu.h>
Inheritance diagram for lwpp::DynamicContextMenu:
Collaboration diagram for lwpp::DynamicContextMenu:Classes | |
| class | menuEntry |
Public Member Functions | |
| DynamicContextMenu (int _width) | |
| void | AddEntry (const char *entry, unsigned int id) |
| Add a new item to the context menu. | |
| void | AddEntry (std::string entry, unsigned int id) |
| int | Deploy (LWPanelID panel, int select) |
| int | Deploy (LWPanel &panel, int select) |
Static Public Member Functions | |
| static size_t | countFn (void *inst) |
| Static member function to be passed as a LW Callback. | |
| static char * | nameFn (void *inst, int n) |
| Static member function to be passed as a LW Callback. | |
Protected Member Functions | |
| size_t | count (void) |
| Count the number of items in the context menu. | |
| const char * | name (int n) |
| Retrieve the name of an item from the context menu. | |
This is a version of a context menu that can be filled dynamically, you can also supply IDs for the menu entries
| lwpp::DynamicContextMenu::DynamicContextMenu | ( | int | _width | ) |
| void lwpp::DynamicContextMenu::AddEntry | ( | const char * | entry, |
| unsigned int | id | ||
| ) |
Add a new item to the context menu.
| *entry | String to display |
| id | Id of the entry to return, this makes the ID independant of the menu position |
| void lwpp::DynamicContextMenu::AddEntry | ( | std::string | entry, |
| unsigned int | id | ||
| ) |
|
protectedvirtual |
Count the number of items in the context menu.
Implements lwpp::ContextMenuCallback.
|
staticinherited |
Static member function to be passed as a LW Callback.
| int lwpp::DynamicContextMenu::Deploy | ( | LWPanelID | panel, |
| int | select | ||
| ) |
| int lwpp::DynamicContextMenu::Deploy | ( | LWPanel & | panel, |
| int | select | ||
| ) |
|
protectedvirtual |
Retrieve the name of an item from the context menu.
Implements lwpp::ContextMenuCallback.
|
staticinherited |
Static member function to be passed as a LW Callback.