class Fl_Clock : public Fl_Widget


(default type)


type(FL_ROUND_CLOCK)

This widget is provided for forms compatibility. It installs a 1-second timeout callback using Fl::add_timeout(). It probably should be fixed so that it does not do the timeout when not visible. Also I added a method to set the time but it is replaced with the current time after one second. The default colors may be different than Forms uses.

    Fl_Clock(int x,int y,int w,int h, const char *l = 0);
    ~Fl_Clock();
    void value(ulong v);	// set to this Unix time
    void value(int,int,int);	// set hour, minute, second
    ulong value() const {return value_;}
    int hour() const {return hour_;}
    int minute() const {return minute_;}
    int second() const {return second_;}