X11 Work Bench Toolkit  1.0
__WBMenu Struct Reference

structure for managing menu items More...

#include <menu.h>

Data Fields

unsigned int uiTag
 a 'tag' identifying this as a WBMenu
 
int iMenuID
 menu identifier specified when menu was created (high bit set for popup)
 
WBMenuItem ** ppItems
 An allocated array of menu items.
 
int nItems
 The number of menu item entries in the 'ppItems' array.
 
int nMaxItems
 The maximum number of menu item entries that can be stored in 'ppItems'.
 
struct __WBMenu ** ppPopups
 An allocated array of 'popup' menus contained by this menu.
 
int nPopups
 The number of popup menu entries in the 'ppPopups' array.
 
int nMaxPopups
 The maximum number of popup menu entries that can be stored in 'ppPopups'.
 

Detailed Description

structure for managing menu items

Definition for the structure that defines a menu. A menu is a single-level entity that can contain other "sub menus" that display as 'popup' menus when the menu item is highlighted or selected.

typedef struct __WBMenu
{
unsigned int uiTag; // a 'tag' identifying this as a WBMenu
int iMenuID; // menu identifier specified when menu was created (high bit set for popup)
WBMenuItem **ppItems; // An allocated array of menu items
int nItems; // The number of menu item entries in the 'ppItems' array
int nMaxItems; // The maximum number of menu item entries that can be stored in 'ppItems'
struct __WBMenu **ppPopups; // An allocated array of 'popup' menus contained by this menu
int nPopups; // The number of popup menu entries in the 'ppPopups' array
int nMaxPopups; // The maximum number of popup menu entries that can be stored in 'ppPopups'
See Also
WBMenuItem

Definition at line 185 of file menu.h.


The documentation for this struct was generated from the following file: