2006-10-29 17:16:03 +03:00
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
|
|
|
<TITLE>Fl_Value_Output</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_Value_Output>class Fl_Value_Output</A></H2>
|
|
|
|
<HR>
|
|
|
|
<H3>Class Hierarchy</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
<A href=Fl_Valuator.html#Fl_Valuator>Fl_Valuator</A>
|
1998-12-29 17:21:17 +03:00
|
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
+----<B>Fl_Value_Output</B>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Include Files</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
#include <FL/Fl_Value_Output.H>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Description</H3>
|
2001-11-29 22:24:00 +03:00
|
|
|
The <TT>Fl_Value_Output</TT> widget displays a floating point value.
|
|
|
|
If <TT>step()</TT> is not zero, the user can adjust the value by
|
1999-01-13 22:28:54 +03:00
|
|
|
dragging the mouse left and right. The left button moves one <TT>step()</TT>
|
|
|
|
per pixel, the middle by <TT>10 * step()</TT>, and the right button by <TT>
|
2001-11-29 22:24:00 +03:00
|
|
|
100 * step()</TT>.
|
1999-01-13 22:28:54 +03:00
|
|
|
<P>This is much lighter-weight than <A href=Fl_Value_Input.html#Fl_Value_Input>
|
2001-11-29 22:24:00 +03:00
|
|
|
<TT>Fl_Value_Input</TT></A> because it contains no text editing code or
|
1999-01-13 22:28:54 +03:00
|
|
|
character buffer. </P>
|
2001-10-01 00:25:36 +04:00
|
|
|
<P ALIGN=CENTER><IMG src="Fl_Value_Output.gif" ALT="Fl_Value_Output widget."></P>
|
1999-01-13 22:28:54 +03:00
|
|
|
<H3>Methods</H3>
|
|
|
|
<UL>
|
|
|
|
<LI><A href=#Fl_Value_Output.Fl_Value_Output>Fl_Value_Output</A></LI>
|
|
|
|
<LI><A href=#Fl_Value_Output.~Fl_Value_Output>~Fl_Value_Output</A></LI>
|
|
|
|
<LI><A href=#Fl_Value_Output.soft>soft</A></LI>
|
|
|
|
<LI><A href=#Fl_Value_Output.textcolor>textcolor</A></LI>
|
|
|
|
<LI><A href=#Fl_Value_Output.textfont>textfont</A></LI>
|
|
|
|
<LI><A href=#Fl_Value_Output.textsize>textsize</A></LI>
|
|
|
|
</UL>
|
|
|
|
<H4><A name=Fl_Value_Output.Fl_Value_Output>
|
2001-11-29 22:24:00 +03:00
|
|
|
Fl_Value_Output::Fl_Value_Output(int x, int y, int w, int h, const char
|
1999-01-13 22:28:54 +03:00
|
|
|
*label = 0)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Creates a new <TT>Fl_Value_Output</TT> widget using the given
|
1999-01-13 22:28:54 +03:00
|
|
|
position, size, and label string. The default boxtype is <TT>FL_NO_BOX</TT>
|
2001-11-29 22:24:00 +03:00
|
|
|
.
|
|
|
|
<H4><A name=Fl_Value_Output.~Fl_Value_Output>virtual
|
1999-01-13 22:28:54 +03:00
|
|
|
Fl_Value_Output::~Fl_Value_Output()</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Destroys the valuator.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Value_Output.soft>uchar Fl_Value_Output::soft() const
|
|
|
|
<BR> void Fl_Value_Output::soft(uchar)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
If "soft" is turned on, the user is allowed to drag the value outside
|
|
|
|
the range. If they drag the value to one of the ends, let go, then
|
|
|
|
grab again and continue to drag, they can get to any value. Default is
|
|
|
|
one.
|
|
|
|
<H4><A name=Fl_Value_Output.textcolor>Fl_Color
|
1999-01-13 22:28:54 +03:00
|
|
|
Fl_Value_Output::textcolor() const
|
|
|
|
<BR> void Fl_Value_Output::textcolor(Fl_Color)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Gets or sets the color of the text in the value box.
|
|
|
|
<H4><A name=Fl_Value_Output.textfont>Fl_Font
|
1999-01-13 22:28:54 +03:00
|
|
|
Fl_Value_Output::textfont() const
|
|
|
|
<BR>
|
|
|
|
<BR>void Fl_Value_Output::textfont(Fl_Font)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Gets or sets the typeface of the text in the value box.
|
|
|
|
<H4><A name=Fl_Value_Output.textsize>uchar Fl_Value_Output::textsize()
|
1999-01-13 22:28:54 +03:00
|
|
|
const
|
|
|
|
<BR> void Fl_Value_Output::textsize(uchar)</A></H4>
|
2001-10-01 00:25:36 +04:00
|
|
|
Gets or sets the size of the text in the value box. </BODY></HTML>
|