|
LightWrap++
AC++wrapperfortheLightWave3DSDK
|
#include <contextmenu.h>
Inheritance diagram for lwpp::ContextMenu:
Collaboration diagram for lwpp::ContextMenu:Public Member Functions | |
| ContextMenu (void) | |
| ContextMenu (int width, size_t(*countFn)(void *), char *(*nameFn)(void *, int), void *userdata) | |
| Create a new context menu. | |
| ~ContextMenu () | |
| Destroy the context menu. | |
| void | Create (void *userdata) |
| void | Create (int width, size_t(*countFn)(void *), char *(*nameFn)(void *, int), void *userdata) |
| int | Deploy (LWPanelID panel, int select) |
| Show the context menu. | |
Protected Member Functions | |
| bool | _acquireGlobal () |
| virtual bool | available () const |
| Check if the global is available. | |
| virtual ContextMenuFuncs * | getGlobal () |
| Get the pointer to the global. | |
| ContextMenuFuncs * | operator-> () |
| Get the pointer to the global. | |
Static Protected Attributes | |
| static ContextMenuFuncs * | globPtr |
| Pointer to the global functions. | |
Wrapper for ContextMenuFuncs
|
inline |
|
inline |
Create a new context menu.
| width | Width of the menu in pixels |
| countFn | Callback to count the number of menu items |
| nameFn | Callback to return the name of the n'th item |
| userdata | User defined data to be associated with the menu (will be passed on to the Callbacks) |
|
inline |
Destroy the context menu.
|
inlineprotectedinherited |
|
inlinevirtualinherited |
Check if the global is available.
|
inline |
|
inline |
|
inline |
Show the context menu.
| panel | Parent LWPanelID |
| select | Selected item |
|
inlinevirtualinherited |
Get the pointer to the global.
|
inlineinherited |
Get the pointer to the global.
|
staticprotectedinherited |
Pointer to the global functions.