JWM Source Documentation

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 *action, const char *popup, int width, int height)
 Create a tray button component.
void SignalTrayButton (const struct TimeType *now, int x, int y)
 Signal a tray button.
void ValidateTrayButtons ()
 Validate the tray buttons and print a warning if something is wrong.
void InitializeTrayButtons ()
void StartupTrayButtons ()
void ShutdownTrayButtons ()
void DestroyTrayButtons ()

Detailed Description

Button tray component.

Author:
Joe Wingbermuehle
Date:
2004-2006

Definition in file traybutton.h.


Function Documentation

struct TrayComponentType* CreateTrayButton ( const char *  iconName,
const char *  label,
const char *  action,
const char *  popup,
int  width,
int  height 
) [read]

Create a tray button component.

Parameters:
iconNameThe name of the icon to use for the button.
labelThe label to use for the button.
actionThe action to take when the button is clicked.
popupText to display in a popup window.
widthThe width to use for the button (0 for default).
heightThe height to use for the button (0 for default).
Returns:
A new tray button component.
void DestroyTrayButtons ( )
void InitializeTrayButtons ( )
void ShutdownTrayButtons ( )
void SignalTrayButton ( const struct TimeType now,
int  x,
int  y 
)

Signal a tray button.

Parameters:
nowThe current time.
xThe x-coordinate of the mouse (root relative).
yThe y-coordinate of the mouse (root relative).
void StartupTrayButtons ( )
void ValidateTrayButtons ( )

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.