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

Base class for context menus. More...

#include <wrapper.h>

+ Inheritance diagram for lwpp::ContextMenuCallback:

List of all members.

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

virtual size_t count (void)=0
 Count the number of items in the context menu.
virtual const char * name (int n)=0
 Retrieve the name of an item from the context menu.

Detailed Description

Base class for context menus.

Derive a class from this to get instant static callbacks, an example would be DynamicContextMenu


Member Function Documentation

virtual size_t lwpp::ContextMenuCallback::count ( void  )
protectedpure virtual

Count the number of items in the context menu.

Implemented in lwpp::DynamicContextMenu.

size_t lwpp::ContextMenuCallback::countFn ( void *  inst)
static

Static member function to be passed as a LW Callback.

virtual const char* lwpp::ContextMenuCallback::name ( int  n)
protectedpure virtual

Retrieve the name of an item from the context menu.

Implemented in lwpp::DynamicContextMenu.

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

Static member function to be passed as a LW Callback.


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