JWM Source Documentation
Data Fields
MenuItem Struct Reference

Structure to represent a menu item. More...

#include <menu.h>

Data Fields

MenuItemType type
 The menu item type.
 
char * name
 Name to display (or NULL).
 
char * tooltip
 Tooltip to display (or NULL).
 
MenuAction action
 Action to take if selected (or NULL).
 
char * iconName
 Name of an icon to show (or NULL).
 
struct Menusubmenu
 Submenu (or NULL).
 
struct MenuItemnext
 Next item in the menu.
 
struct IconNodeicon
 An icon for this menu item.
 

Detailed Description

Structure to represent a menu item.

Definition at line 64 of file menu.h.

Field Documentation

MenuAction MenuItem::action
struct IconNode* MenuItem::icon

An icon for this menu item.

This field is handled by menu.c if iconName is set. Icon to display.

Definition at line 76 of file menu.h.

Referenced by DrawMenuItem(), InitializeMenu(), and ShowClientList().

char* MenuItem::iconName

Name of an icon to show (or NULL).

Definition at line 70 of file menu.h.

Referenced by DestroyMenu(), InitializeMenu(), and ParseMenuItem().

char* MenuItem::name
struct MenuItem* MenuItem::next
struct Menu* MenuItem::submenu
char* MenuItem::tooltip

Tooltip to display (or NULL).

Definition at line 68 of file menu.h.

Referenced by DestroyMenu(), MenuCallback(), and ParseMenuItem().

MenuItemType MenuItem::type

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

joewing.net / Projects / JWM