JWM Source Documentation

Menu Struct Reference

Structure to represent a menu or submenu. More...

#include <menu.h>

Data Fields

struct MenuItemitems
 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 Menuparent
 The parent menu (or NULL).

Detailed Description

Structure to represent a menu or submenu.

Definition at line 72 of file menu.h.


Field Documentation

The current menu selection.

Definition at line 85 of file menu.h.

The height of the menu.

Definition at line 84 of file menu.h.

unsigned int Menu::itemCount

Number of menu items (excluding separators).

Definition at line 87 of file menu.h.

User-specified menu item height.

Definition at line 77 of file menu.h.

Menu items.

Definition at line 75 of file menu.h.

char* Menu::label

Menu label (NULL for no label).

Definition at line 76 of file menu.h.

The last menu selection.

Definition at line 86 of file menu.h.

y-offsets of menu items.

Definition at line 90 of file menu.h.

struct Menu* Menu::parent

The parent menu (or NULL).

Definition at line 91 of file menu.h.

y-offset of this menu wrt the parent.

Definition at line 88 of file menu.h.

x-offset of text in the menu.

Definition at line 89 of file menu.h.

The width of the menu.

Definition at line 83 of file menu.h.

Window Menu::window

The menu window.

Definition at line 80 of file menu.h.

int Menu::x

The x-coordinate of the menu.

Definition at line 81 of file menu.h.

int Menu::y

The y-coordinate of the menu.

Definition at line 82 of file menu.h.


The documentation for this struct was generated from the following file: