|
FLTK 1.3.0
|
This widget provides a round analog clock display. More...
#include <Fl_Clock.H>
Public Member Functions | |
| Fl_Clock (int X, int Y, int W, int H, const char *L=0) | |
| Create an Fl_Clock widget using the given position, size, and label string. | |
| Fl_Clock (uchar t, int X, int Y, int W, int H, const char *L) | |
| Create an Fl_Clock widget using the given boxtype, position, size, and label string. | |
| int | handle (int) |
| Handles the specified event. | |
| ~Fl_Clock () | |
| The destructor removes the clock. | |
This widget provides a round analog clock display.
Fl_Clock is provided for Forms compatibility. It installs a 1-second timeout callback using Fl::add_timeout(). You can choose the rounded or square type of the clock with type(), see below.
|
|
| Fl_Clock::Fl_Clock | ( | int | X, |
| int | Y, | ||
| int | W, | ||
| int | H, | ||
| const char * | L = 0 |
||
| ) |
Create an Fl_Clock widget using the given position, size, and label string.
The default boxtype is FL_NO_BOX.
| [in] | X,Y,W,H | position and size of the widget |
| [in] | L | widget label, default is no label |
| Fl_Clock::Fl_Clock | ( | uchar | t, |
| int | X, | ||
| int | Y, | ||
| int | W, | ||
| int | H, | ||
| const char * | L | ||
| ) |
Create an Fl_Clock widget using the given boxtype, position, size, and label string.
| [in] | t | boxtype |
| [in] | X,Y,W,H | position and size of the widget |
| [in] | L | widget label, default is no label |
| int Fl_Clock::handle | ( | int | event | ) | [virtual] |
Handles the specified event.
You normally don't call this method directly, but instead let FLTK do it when the user interacts with the widget.
When implemented in a widget, this function must return 0 if the widget does not use the event or 1 otherwise.
Most of the time, you want to call the inherited handle() method in your overridden method so that you don't short-circuit events that you don't handle. In this last case you should return the callee retval.
| [in] | event | the kind of event received |
| 0 | if the event was not used or understood |
| 1 | if the event was used and can be deleted |
Reimplemented from Fl_Widget.