X11workbench Toolkit
1.0
|
structure for managing menu callbacks More...
#include <frame_window.h>
Data Fields | |
uintptr_t | lMenuID |
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.
Definition at line 217 of file frame_window.h.
int(* UIcallback) (WBMenu *, WBMenuItem *) |
menu 'UI' callback to handle displaying menu states.
This callback function handles the menu states. A return value of '0' displays normaly, -1 disables.
Other return values are reserved.
Definition at line 228 of file frame_window.h.