Inherits fltk::ClockOutput.
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 NamedStyle * | default_style = &::style |
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.
Design credits: Original clock display written by Paul Haeberli at SGI.
Modifications by Mark Overmars for Forms
Further changes by Bill Spitzak for fltk
Clock::Clock | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
const char * | l = 0 |
||
) |
int Clock::handle | ( | int | event | ) | [virtual] |
The Clock's handle routine This only reads SHOW, HIDE and TIMEOUT events, otherwise it throws back to ClockOutput::handle
event | The event to handle |
Reimplemented from fltk::Widget.
void fltk::Clock::update | ( | ) |
This looks NYI and, really, pretty useless. It's going to be removed from the API unless I can find a really good reason to keep it
NamedStyle * Clock::default_style = &::style [static] |
The default_style for Clock reverts selection_color_ to GRAY85, which is the colour used to fill the hands. Everything else is inherited
Reimplemented from fltk::Widget.