fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
  SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation)  

Fl_Clock Class Reference

This widget provides a round analog clock display. More...

#include <Fl_Clock.H>

Inheritance diagram for Fl_Clock:
Collaboration diagram for Fl_Clock:

List of all members.

Public Member Functions

int handle (int)
 Fl_Clock (int X, int Y, int W, int H, const char *L=0)
 Fl_Clock (uchar t, int X, int Y, int W, int H, const char *L)
 ~Fl_Clock ()

Detailed Description

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.

type() FL_SQUARE_CLOCK and FL_ROUND_CLOCK
clock.png
round_clock.png

Definition at line 122 of file Fl_Clock.H.


Constructor & Destructor Documentation

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.

Parameters:
[in]X,Y,W,Hposition and size of the widget
[in]Lwidget label, default is no label

Definition at line 176 of file Fl_Clock.cxx.

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.

Parameters:
[in]tboxtype
[in]X,Y,W,Hposition and size of the widget
[in]Lwidget label, default is no label

Definition at line 186 of file Fl_Clock.cxx.

References Fl_Widget::box(), FL_NO_BOX, FL_ROUND_CLOCK, FL_UP_BOX, and Fl_Widget::type().

Fl_Clock::~Fl_Clock ( )

The destructor removes the clock.

Definition at line 212 of file Fl_Clock.cxx.

References Fl::remove_timeout().


Member Function Documentation

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.

Parameters:
[in]eventthe kind of event received
Return values:
0if the event was not used or understood
1if the event was used and can be deleted
See also:
Fl_Event

Reimplemented from Fl_Widget.

Definition at line 197 of file Fl_Clock.cxx.

References FL_HIDE, FL_SHOW, and Fl::remove_timeout().


The documentation for this class was generated from the following files: