JWM Source Documentation
Functions
traybutton.h File Reference

Button tray component. More...

Go to the source code of this file.

Functions

struct TrayComponentTypeCreateTrayButton (const char *iconName, const char *label, const char *popup, unsigned int width, unsigned int height)
 Create a tray button component.
 
void AddTrayButtonAction (struct TrayComponentType *cp, const char *action, int mask)
 Add an action to a tray button.
 
void ValidateTrayButtons (void)
 Validate the tray buttons and print a warning if something is wrong.
 
#define InitializeTrayButtons()   (void)(0)
 
#define ShutdownTrayButtons()   (void)(0)
 
void StartupTrayButtons (void)
 Startup tray buttons.
 
void DestroyTrayButtons (void)
 Release tray button data.
 

Detailed Description

Button tray component.

Author
Joe Wingbermuehle
Date
2004-2006

Definition in file traybutton.h.

Macro Definition Documentation

#define InitializeTrayButtons ( )    (void)(0)

Definition at line 17 of file traybutton.h.

Referenced by Initialize().

#define ShutdownTrayButtons ( )    (void)(0)

Definition at line 19 of file traybutton.h.

Referenced by Shutdown().

Function Documentation

void AddTrayButtonAction ( TrayComponentType cp,
const char *  action,
int  mask 
)

Add an action to a tray button.

Parameters
cpThe tray button.
actionThe action to take.
maskThe mouse button mask.

Definition at line 172 of file traybutton.c.

References TrayButtonType::actions, AddAction(), and TrayComponentType::object.

Referenced by ParseTrayButton().

struct TrayComponentType* CreateTrayButton ( const char *  iconName,
const char *  label,
const char *  popup,
unsigned int  width,
unsigned int  height 
)
read
void DestroyTrayButtons ( void  )
void StartupTrayButtons ( void  )
void ValidateTrayButtons ( void  )

Validate the tray buttons and print a warning if something is wrong.

This is called after parsing the configuration file(s) to determine if a root menu is defined for each each tray button that specifies a root menu.

Definition at line 344 of file traybutton.c.

References TrayButtonType::actions, TrayButtonType::next, and ValidateActions().

Referenced by ParseConfig().

joewing.net / Projects / JWM