JWM Source Documentation
Data Fields
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).
 
char * dynamic
 Generating command of dynamic menu.
 
int itemHeight
 User-specified menu item height.
 
Window window
 The menu window.
 
Pixmap pixmap
 Pixmap where the menu is rendered.
 
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).
 
struct ScreenTypescreen
 
int mousex
 
int mousey
 
TimeType lastTime
 

Detailed Description

Structure to represent a menu or submenu.

Definition at line 81 of file menu.h.

Field Documentation

int Menu::currentIndex

The current menu selection.

Definition at line 96 of file menu.h.

Referenced by DrawMenuItem(), GetNextMenuIndex(), GetPreviousMenuIndex(), MapMenu(), MenuCallback(), MenuLoop(), UpdateMenu(), and UpdateMotion().

char* Menu::dynamic

Generating command of dynamic menu.

Definition at line 86 of file menu.h.

Referenced by CreateMenu(), DestroyMenu(), and ParseRootMenu().

int Menu::height

The height of the menu.

Definition at line 95 of file menu.h.

Referenced by DrawMenu(), GetRootMenuSize(), InitializeMenu(), MapMenu(), MenuCallback(), MenuLoop(), SetPosition(), ShowClientList(), UpdateMenu(), and UpdateMotion().

unsigned int Menu::itemCount

Number of menu items (excluding separators).

Definition at line 98 of file menu.h.

Referenced by GetMenuIndex(), GetPreviousMenuIndex(), InitializeMenu(), MapMenu(), and UpdateMotion().

int Menu::itemHeight

User-specified menu item height.

Definition at line 87 of file menu.h.

Referenced by CreateMenu(), DrawMenuItem(), InitializeMenu(), MapMenu(), ParseMenu(), ParseMenuItem(), PatchMenu(), SetPosition(), ShowMenu(), and UpdateMotion().

struct MenuItem* Menu::items
char* Menu::label

Menu label (NULL for no label).

Definition at line 85 of file menu.h.

Referenced by CreateMenu(), DestroyMenu(), DrawMenu(), DrawMenuItem(), InitializeMenu(), ParseMenu(), and ParseMenuItem().

int Menu::lastIndex

The last menu selection.

Definition at line 97 of file menu.h.

Referenced by MapMenu(), UpdateMenu(), and UpdateMotion().

TimeType Menu::lastTime

Definition at line 105 of file menu.h.

Referenced by MenuCallback().

int Menu::mousex

Definition at line 104 of file menu.h.

Referenced by InitializeMenu(), and MenuCallback().

int Menu::mousey

Definition at line 104 of file menu.h.

Referenced by InitializeMenu(), and MenuCallback().

int* Menu::offsets

y-offsets of menu items.

Definition at line 101 of file menu.h.

Referenced by DestroyMenu(), DrawMenuItem(), GetMenuIndex(), InitializeMenu(), MapMenu(), ParseMenuItem(), SetPosition(), ShowMenu(), and UpdateMotion().

struct Menu* Menu::parent

The parent menu (or NULL).

Definition at line 102 of file menu.h.

Referenced by HideMenu(), InitializeMenu(), MapMenu(), MenuLoop(), ShowSubmenu(), and UpdateMotion().

int Menu::parentOffset

y-offset of this menu wrt the parent.

Definition at line 99 of file menu.h.

Referenced by InitializeMenu(), MapMenu(), and UpdateMotion().

Pixmap Menu::pixmap

Pixmap where the menu is rendered.

Definition at line 91 of file menu.h.

Referenced by DrawMenu(), DrawMenuItem(), MapMenu(), ShowSubmenu(), and UpdateMenu().

struct ScreenType* Menu::screen

Definition at line 103 of file menu.h.

Referenced by MapMenu(), SetPosition(), and UpdateMotion().

int Menu::textOffset

x-offset of text in the menu.

Definition at line 100 of file menu.h.

Referenced by InitializeMenu().

int Menu::width
Window Menu::window

The menu window.

Definition at line 90 of file menu.h.

Referenced by DrawMenu(), HideMenu(), MapMenu(), MenuLoop(), SetPosition(), ShowSubmenu(), UpdateMenu(), and UpdateMotion().

int Menu::x

The x-coordinate of the menu.

Definition at line 92 of file menu.h.

Referenced by GetMouseScreen(), MapMenu(), MenuCallback(), MenuLoop(), SetPosition(), StartupScreens(), and UpdateMotion().

int Menu::y

The y-coordinate of the menu.

Definition at line 93 of file menu.h.

Referenced by GetMouseScreen(), MapMenu(), MenuCallback(), MenuLoop(), SetPosition(), and UpdateMotion().


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

joewing.net / Projects / JWM