X11 Work Bench Toolkit 1.0
structure for managing menu callbacks More...
|menu ID (< 0x10000L) or const pointer to string |
|int(*||callback )(XClientMessageEvent *)|
|menu callback (gets pointer to the 'XClientMessageEvent'). |
|int(*||UIcallback )(WBMenu *, WBMenuItem *)|
|menu 'UI' callback to handle displaying menu states. More...|
structure for managing menu callbacks
The WBFWMenuHandler structure is designed to be initialized via macros, so that a set of callback functions can then be easily used to handle menu events. If no menu handler is present for a menu item, or if the menu UI handler is NOT NULL and returns a non-zero value, the menu item will be disabled and displayed accordingly. It will not be possible to use its hotkey nor select it. Otherwise, the menu will be displayed normally and be selectable, and its hotkey will be able to activate it.