fltk::Clock Class Reference

Inherits fltk::ClockOutput.

List of all members.

Public Member Functions

 Clock (int x, int y, int w, int h, const char *l=0)
int handle (int)
void update ()

Static Public Attributes

static NamedStyledefault_style

Detailed Description

This widget provides a round analog clock display and is provided for Forms compatibility. It installs a 1-second timeout callback using fltk::add_timeout().

The color() fills the background. The selectioncolor() (which defaults to GRAY85) fills the hands. The textcolor() is used to color in the tick marks and outline the hands.

type() may be set to SQUARE, ROUND, or DIGITAL (nyi). See the base class ClockOutput for some other methods.

clock.gif

Design credits: Original clock display written by Paul Haeberli at SGI. Modifications by Mark Overmars for Forms Further changes by Bill Spitzak for fltk