X11workbench Toolkit
1.0
|
Popup Menu windows and their associate structures and API functions. More...
Typedefs | |
typedef struct tagWBMenuPopupWindow | WBMenuPopupWindow |
structure for managing a popup menu window More... | |
Functions | |
WBMenuPopupWindow * | MBCreateMenuPopupWindow (Window wIDBar, Window wIDOwner, WBMenu *pMenu, int iX, int iY, int iFlags) |
Create a WBMenuPopupWindow object and associated window. More... | |
int | MBMenuDoModal (WBMenuPopupWindow *pMenuPopupWindow) |
display a Menu Popup window in a 'modal' loop More... | |
void | MBDestroyMenuPopupWindow (WBMenuPopupWindow *pMenuPopupWindow) |
Destroy a WBMenuPopupWindow structure. More... | |
WBMenuPopupWindow * | MBFindMenuPopupWindow (WBMenu *pSubMenu) |
Find the first WBMenuPopupWindow that references a WBMenu. More... | |
static __inline__ WBMenuPopupWindow * | MBGetMenuPopupWindowStruct (Window wID) |
Get the associated WBMenuPopupWindow structure from a Menu Popup window's window ID. More... | |
Popup Menu windows and their associate structures and API functions.
structure for managing a popup menu window
Definition for the structure that defines a popup menu window
WBMenuPopupWindow* MBCreateMenuPopupWindow | ( | Window | wIDBar, |
Window | wIDOwner, | ||
WBMenu * | pMenu, | ||
int | iX, | ||
int | iY, | ||
int | iFlags | ||
) |
Create a WBMenuPopupWindow object and associated window.
wIDBar | The Window ID of the associated menu bar |
wIDOwner | The Window ID of the 'owner' window. All coordinates are with respect to this window's client area |
pMenu | A pointer to the associated 'WBMenu' |
iX | The X coordinate for the upper left corner of the menu popup with respect to the client area of wIDOwner |
iY | The Y coordinate for the upper left corner of the menu popup with respect to the client area of wIDOwner |
iFlags | Various bit-flags associated with the popup menu |
Use this function to create a WBMenuPopupWindow structure and an associated window at the specified location with respect to the client area of 'wIDOwner'. Use of this function assumes that you will immediately call MBMenuDoModal() using the returned pointer. The call to MBMenuDoModal() will automatically free up the allocated structure and resources.
Header File: menu_popup.h
Definition at line 199 of file menu_popup.c.
void MBDestroyMenuPopupWindow | ( | WBMenuPopupWindow * | pMenuPopupWindow | ) |
Destroy a WBMenuPopupWindow structure.
pMenuPopupWindow | A pointer to a WBMenuPopupWindow that was created by MBCreateMenuPopupWindow() |
Use this function to destroy a WBMenuPopupWindow structure (and resources) created by MBCreateMenuPopupWindow()
Header File: menu_popup.h
Definition at line 476 of file menu_popup.c.
WBMenuPopupWindow* MBFindMenuPopupWindow | ( | WBMenu * | pSubMenu | ) |
Find the first WBMenuPopupWindow that references a WBMenu.
pSubMenu | A pointer to a WBMenu structure that represents a 'sub menu' for a Menu Popup window |
Use this function to find the first WBMenuPopupWindow that references a WBMenu
Header File: menu_popup.h
Definition at line 456 of file menu_popup.c.
|
static |
Get the associated WBMenuPopupWindow structure from a Menu Popup window's window ID.
wID | A Window ID for a Menu Popup window |
Use this function to obtain the associated WBMenuPopupWindow structure from a Menu Popup window's window ID
Header File: menu_popup.h
Definition at line 201 of file menu_popup.h.
int MBMenuDoModal | ( | WBMenuPopupWindow * | pMenuPopupWindow | ) |
display a Menu Popup window in a 'modal' loop
pMenuPopupWindow | A pointer to a WBMenuPopupWindow that was created by MBCreateMenuPopupWindow() |
Use this function to display a Menu Popup window created by MBCreateMenuPopupWindow() in a modal loop. On return, the WBMenuPopupWindow pointer will no longer be valid, and its resources will have been released.
Header File: menu_popup.h
Definition at line 468 of file menu_popup.c.