MenuItem

## class MenuItem

> data structure that comprises all the important aspects of a menu item.

### Public Classes

  enum | ItemType

### Public Fields

  const char* | label the label for the item
  Bitmap | bitmap
  bool | showBitmap
  ItemType | itemType pushbutton, submenu, checkbox, radiobox, separator ..
  char | mnemonic mnemonic; 0 character if none
  const char* | accelerator accelerator; 0 if none
  const char* | accelText to be converted to compound string
  XtCallbackProc | callback routine to call; 0 if none
  XtPointer | callbackData client data for callback()
  XtPointer | userData user data for callback.
  MenuItem* | subitems pullright menu items, if not: 0
  int | sensitive 0: insensitive, 1: sensitive
  static const MenuItem | NUL
  static const MenuItem | SEP

### Public Methods

  | MenuItem ()
  | MenuItem (const char *l, ItemType i)
  | MenuItem (const char *l, ItemType i, char m, const char *a, const char *t, XtCallbackProc c, XtPointer d, XtPointer u, MenuItem *si, int s)
  | MenuItem (const char *l, const Bitmap *b, ItemType i, char m, const char *a, const char *t, XtCallbackProc c, XtPointer d, XtPointer u, MenuItem *si, int s)

## Documentation

> data structure that comprises all the important aspects of a menu item.

`enum ItemType`

`const char* label`
  the label for the item

`Bitmap bitmap`

`bool showBitmap`

`ItemType itemType`
  pushbutton, submenu, checkbox, radiobox, separator ..

`char mnemonic`
  mnemonic; 0 character if none

`const char* accelerator`
  accelerator; 0 if none

`const char* accelText`
  to be converted to compound string

`XtCallbackProc callback`
  routine to call; 0 if none

`XtPointer callbackData`
  client data for callback()

`XtPointer userData`
  user data for callback.

`MenuItem* subitems`
  pullright menu items, if not: 0

`int sensitive`
  0: insensitive, 1: sensitive

`MenuItem()`

`MenuItem(const char *l, ItemType i)`

`MenuItem(const char *l, ItemType i, char m, const char *a, const char *t, XtCallbackProc c, XtPointer d, XtPointer u, MenuItem *si, int s)`

`MenuItem(const char *l, const Bitmap *b, ItemType i, char m, const char *a, const char *t, XtCallbackProc c, XtPointer d, XtPointer u, MenuItem *si, int s)`

`static const MenuItem NUL`

`static const MenuItem SEP`

This class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de