JWM Source Documentation

clock.h File Reference

Clock tray component. More...

Go to the source code of this file.

Functions

struct TrayComponentTypeCreateClock (const char *format, const char *zone, const char *command, int width, int height)
 Create a clock component for the tray.
void SignalClock (const struct TimeType *now, int x, int y)
 Update clocks.
void InitializeClock ()
void StartupClock ()
void ShutdownClock ()
void DestroyClock ()

Detailed Description

Clock tray component.

Author:
Joe Wingbermuehle
Date:
2005-2006

Definition in file clock.h.


Function Documentation

struct TrayComponentType* CreateClock ( const char *  format,
const char *  zone,
const char *  command,
int  width,
int  height 
) [read]

Create a clock component for the tray.

Parameters:
formatThe format of the clock.
zoneThe timezone of the clock (NULL for local time).
commandThe command to execute when the clock is clicked.
widthThe width of the clock (0 for auto).
heightThe height of the clock (0 for auto).
void DestroyClock ( )
void InitializeClock ( )
void ShutdownClock ( )
void SignalClock ( const struct TimeType now,
int  x,
int  y 
)

Update clocks.

This is called on a regular basis to update the time.

Parameters:
nowThe current time.
xThe x-coordinate of the mouse.
yThe y-coordinate of the mouse.
void StartupClock ( )