From 87dd7f0d23eba5c09e71ec6efeb34c6844f5e95f Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 29 Dec 1998 14:21:17 +0000 Subject: Revised documentation files. git-svn-id: file:///fltk/svn/fltk/trunk@177 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Clock.html | 78 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 documentation/Fl_Clock.html (limited to 'documentation/Fl_Clock.html') diff --git a/documentation/Fl_Clock.html b/documentation/Fl_Clock.html new file mode 100644 index 000000000..e1da8a9e9 --- /dev/null +++ b/documentation/Fl_Clock.html @@ -0,0 +1,78 @@ + + + +
+ +

class Fl_Clock

+ +
+ +

Class Hierarchy

+ + + +

Include Files

+ + + +

Description

+ +This widget provides a round analog clock display and is provided for +Forms compatibility. It installs a 1-second timeout callback using +Fl::add_timeout(). + +

Methods

+ + + +

Fl_Clock::Fl_Clock(int x, int y, int w, int h, const char *label = 0)

+ +Creates a new Fl_Clock widget using the given position, size, and +label string. The default boxtype is FL_NO_BOX. + +

virtual Fl_Clock::~Fl_Clock()

+ +The destructor also deletes all the children. This allows a +whole tree to be deleted at once, without having to keep a pointer to all +the children in the user code. A kludge has been done so the +Fl_Clock and all of it's children can be automatic (local) +variables, but you must declare the Fl_Clock first, so +that it is destroyed last. + +

int Fl_Clock::hour() const

+ +Returns the current hour (0 to 23). + +

int Fl_Clock::minute() const

+ +Returns the current minute (0 to 59). + +

int Fl_Clock::second() const

+ +Returns the current second (0 to 60, 60 = leap second). + +

void Fl_Clock::value(ulong v)
+void Fl_Clock::value(int h, int m, int s)
+ulong Fl_Clock::value(void)

+ +The first two forms of value set the displayed time to the given +UNIX time value or specific hours, minutes, and seconds. + +

The third form of value returns the displayed time in seconds +since the UNIX epoch (January 1, 1970). + + + -- cgit v1.2.3