JWM Source Documentation
Menu Struct Reference
Structure to represent a menu or submenu. More...
#include <menu.h>
Data Fields | |
| struct MenuItem * | items |
| Menu items. | |
| char * | label |
| Menu label (NULL for no label). | |
| int | itemHeight |
| User-specified menu item height. | |
| Window | window |
| The menu window. | |
| int | x |
| The x-coordinate of the menu. | |
| int | y |
| The y-coordinate of the menu. | |
| int | width |
| The width of the menu. | |
| int | height |
| The height of the menu. | |
| int | currentIndex |
| The current menu selection. | |
| int | lastIndex |
| The last menu selection. | |
| unsigned int | itemCount |
| Number of menu items (excluding separators). | |
| int | parentOffset |
| y-offset of this menu wrt the parent. | |
| int | textOffset |
| x-offset of text in the menu. | |
| int * | offsets |
| y-offsets of menu items. | |
| struct Menu * | parent |
| The parent menu (or NULL). | |
Detailed Description
Field Documentation
| int Menu::height |
| unsigned int Menu::itemCount |
| int Menu::itemHeight |
| struct MenuItem* Menu::items |
| char* Menu::label |
| int Menu::lastIndex |
| int* Menu::offsets |
| struct Menu* Menu::parent |
| int Menu::textOffset |
| int Menu::width |
| Window Menu::window |
The documentation for this struct was generated from the following file: