31#define FL_SQUARE_CLOCK 0
32#define FL_ROUND_CLOCK 1
33#define FL_ANALOG_CLOCK FL_SQUARE_CLOCK
34#define FL_DIGITAL_CLOCK FL_SQUARE_CLOCK
66 int hour_, minute_, second_;
72 void draw(
int X,
int Y,
int W,
int H);
79 void value(
int H,
int m,
int s);
92 int hour()
const {
return hour_;}
127 void shadow(
int mode) { shadow_ = mode ? 1 : 0; }
156 Fl_Clock(
int X,
int Y,
int W,
int H,
const char *L = 0);
158 Fl_Clock(
uchar t,
int X,
int Y,
int W,
int H,
const char *L);
unsigned int Fl_Color
An FLTK color value; see also Colors
Definition Enumerations.H:1101
This widget can be used to display a program-supplied time.
Definition Fl_Clock.H:65
void shadow(int mode)
Sets the shadow drawing mode of the hands.
Definition Fl_Clock.H:127
int hour() const
Returns the displayed hour (0 to 23).
Definition Fl_Clock.H:92
int shadow() const
Returns the shadow drawing mode of the hands.
Definition Fl_Clock.H:113
int minute() const
Returns the displayed minute (0 to 59).
Definition Fl_Clock.H:98
ulong value() const
Returns the displayed time.
Definition Fl_Clock.H:86
int second() const
Returns the displayed second (0 to 60, 60=leap second).
Definition Fl_Clock.H:104
This widget provides a round analog clock display.
Definition Fl_Clock.H:152
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46
unsigned char uchar
unsigned char
Definition fl_types.h:30
unsigned long ulong
unsigned long
Definition fl_types.h:32