LightWrap++
AC++wrapperfortheLightWave3DSDK
lwpp::DynamicContextMenu Class Reference

#include <contextmenu.h>

+ Inheritance diagram for lwpp::DynamicContextMenu:
+ Collaboration diagram for lwpp::DynamicContextMenu:

List of all members.

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.

Detailed Description

This is a version of a context menu that can be filled dynamically, you can also supply IDs for the menu entries


Constructor & Destructor Documentation

lwpp::DynamicContextMenu::DynamicContextMenu ( int  _width)

Member Function Documentation

void lwpp::DynamicContextMenu::AddEntry ( const char *  entry,
unsigned int  id 
)

Add a new item to the context menu.

Parameters:
*entryString to display
idId of the entry to return, this makes the ID independant of the menu position
void lwpp::DynamicContextMenu::AddEntry ( std::string  entry,
unsigned int  id 
)
size_t lwpp::DynamicContextMenu::count ( void  )
protectedvirtual

Count the number of items in the context menu.

Implements lwpp::ContextMenuCallback.

size_t lwpp::ContextMenuCallback::countFn ( void *  inst)
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 
)
const char * lwpp::DynamicContextMenu::name ( int  n)
protectedvirtual

Retrieve the name of an item from the context menu.

Implements lwpp::ContextMenuCallback.

char * lwpp::ContextMenuCallback::nameFn ( void *  inst,
int  n 
)
staticinherited

Static member function to be passed as a LW Callback.


The documentation for this class was generated from the following files: