fltk::Clock Class Reference

Inherits fltk::ClockOutput.

List of all members.


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


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


Fri Apr 2 15:19:54 2010. FLTK ©2007 Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.