X11workbench Toolkit  1.0
menu_bar.h File Reference

Definition file for menu bar window structures and API functions. More...

#include "menu.h"

Go to the source code of this file.

Data Structures

struct  tagWBMenuBarWindow
 structure for defining a menu bar window More...
 

Macros

#define MENU_WINDOW_TAG   (*((const unsigned int *)"MWMW"))
 

Typedefs

typedef struct tagWBMenuBarWindow WBMenuBarWindow
 structure for defining a menu bar window More...
 

Functions

int MBInitGlobal (void)
 Initialize global resources for Menu Bar windows. More...
 
WB_FONTC MBGetDefaultMenuFont (void)
 Get a pointer to the default 'Menu Bar' font structure. More...
 
static __inline__ WBMenuBarWindowMBGetMenuBarWindowStruct (Window wID)
 Obtain a pointer to the WBMenuBarWindow structure from a Window ID of a Menu Bar window. More...
 
WBMenuBarWindowMBCreateMenuBarWindow (Window wIDParent, const char *pszResource, int iFlags)
 Create a Menu Bar windows and its associated WBMenuBarWindow structure. More...
 
WBMenuBarWindowMBFindMenuBarWindow (WBMenu *pMenu)
 Locate the first WBMenuBarWindow that is using a WBMenu structure. More...
 
void MBReCalcMenuBarWindow (WBMenuBarWindow *pMenuBar)
 Cause a 'layout recalculation' for a Menu Bar window. More...
 
void MBDestroyMenuBarWindow (WBMenuBarWindow *pMenuBar)
 Destroy a 'Menu Bar' window. More...
 
static __inline__ WBMenuMBGetMenuBarMenu (WBMenuBarWindow *pMenuBar)
 Get the current WBMenu for a Menu Bar window. More...
 
static __inline__ WBMenuMBSetMenuBarMenu (WBMenuBarWindow *pMenuBar, WBMenu *pMenu)
 Assign a new WBMenu for a Menu Bar window. More...
 
void MBSetMenuBarMenuResource (WBMenuBarWindow *pMenuBar, const char *pszMenuResource)
 Assign a new WBMenu for a Menu Bar window. More...
 

Variables

Atom aMENU_RESIZE
 Atom for 'RESIZE' client event. More...
 
Atom aMENU_DISPLAY_POPUP
 Atom for 'DISPLAY POPUP' client event. More...
 
Atom aMENU_ACTIVATE
 Atom for 'ACTIVATE' client event. More...
 
XColor clrMenuFG
 menu foreground color
 
XColor clrMenuBG
 menu background color
 
XColor clrMenuActiveFG
 menu 'active' foreground color
 
XColor clrMenuActiveBG
 menu 'active' background color
 
XColor clrMenuBorder1
 menu border color 1
 
XColor clrMenuBorder2
 menu border color 2
 
XColor clrMenuBorder3
 menu border color 3
 
XColor clrMenuDisabledFG
 menu 'disabled' foreground color
 
XColor clrMenuActiveDisabledFG
 menu 'disabled but active' foreground color
 

Detailed Description

Definition file for menu bar window structures and API functions.

Definition file for menu popup window structures and API functions.

This is the definition file for menus bar window functions and structures

This is the definition file for menu popup window functions and structures

Definition in file menu_bar.h.