2006-10-29 17:16:03 +03:00
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
|
|
|
<TITLE>Fl_Timer</TITLE>
|
|
|
|
</HEAD>
|
|
|
|
<BODY>
|
2001-11-28 21:00:17 +03:00
|
|
|
<!-- NEW PAGE -->
|
1999-01-13 22:28:54 +03:00
|
|
|
<H2><A name=Fl_Timer>class Fl_Timer</A></H2>
|
|
|
|
<HR>
|
|
|
|
<H3>Class Hierarchy</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
<A href=Fl_Widget.html#Fl_Widget>Fl_Widget</A>
|
1998-12-29 17:21:17 +03:00
|
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
+----<B>Fl_Timer</B>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Include Files</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
#include <FL/Fl_Timer.H>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Description</H3>
|
2001-11-29 22:24:00 +03:00
|
|
|
This is provided only to emulate the Forms Timer widget. It works by
|
|
|
|
making a timeout callback every 1/5 second. This is wasteful and
|
|
|
|
inaccurate if you just want something to happen a fixed time in the
|
2002-01-15 05:17:19 +03:00
|
|
|
future. You should directly call <A href="Fl.html#Fl.add_timeout"><TT>
|
2001-11-29 22:24:00 +03:00
|
|
|
Fl::add_timeout()</TT></A> instead.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H3>Methods</H3>
|
|
|
|
<UL>
|
|
|
|
<LI><A href=#Fl_Timer.Fl_Timer>Fl_Timer</A></LI>
|
|
|
|
<LI><A href=#Fl_Timer.~Fl_Timer>~Fl_Timer</A></LI>
|
|
|
|
<LI><A href=#Fl_Timer.direction>direction</A></LI>
|
|
|
|
<LI><A href=#Fl_Timer.suspended>suspended</A></LI>
|
|
|
|
<LI><A href=#Fl_Timer.value>value</A></LI>
|
|
|
|
</UL>
|
2001-11-29 22:24:00 +03:00
|
|
|
<H4><A name=Fl_Timer.Fl_Timer>Fl_Timer::Fl_Timer(uchar type, int x, int
|
1999-01-13 22:28:54 +03:00
|
|
|
y, int w, int h, const char *label = 0)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Creates a new <TT>Fl_Timer</TT> widget using the given type, position,
|
|
|
|
size, and label string. The <TT>type</TT> parameter can be any of the
|
|
|
|
following symbolic constants:
|
1999-01-13 22:28:54 +03:00
|
|
|
<UL>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_NORMAL_TIMER</TT> - The timer just does the callback and
|
1999-01-13 22:28:54 +03:00
|
|
|
displays the string "Timer" in the widget. </LI>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_VALUE_TIMER</TT> - The timer does the callback and displays
|
1999-01-13 22:28:54 +03:00
|
|
|
the current timer value in the widget. </LI>
|
2001-11-29 22:24:00 +03:00
|
|
|
<LI><TT>FL_HIDDEN_TIMER</TT> - The timer just does the callback and
|
1999-01-13 22:28:54 +03:00
|
|
|
does not display anything. </LI>
|
|
|
|
</UL>
|
|
|
|
<H4><A name=Fl_Timer.~Fl_Timer>virtual Fl_Timer::~Fl_Timer()</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Destroys the timer and removes the timeout.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Timer.direction>char direction() const
|
|
|
|
<BR> void direction(char d)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Gets or sets the direction of the timer. If the direction is zero
|
|
|
|
then the timer will count up, otherwise it will count down from the
|
|
|
|
initial <TT>value()</TT>.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Timer.suspended>char suspended() const
|
|
|
|
<BR> void suspended(char d)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Gets or sets whether the timer is suspended.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Timer.value>float value() const
|
|
|
|
<BR> void value(float)</A></H4>
|
2001-11-28 21:00:17 +03:00
|
|
|
Gets or sets the current timer value. </BODY></HTML>
|