81 lines
2.4 KiB
HTML
81 lines
2.4 KiB
HTML
|
<html>
|
||
|
<body>
|
||
|
|
||
|
<hr break>
|
||
|
|
||
|
<h2><a name="Fl_Value_Output">class Fl_Value_Output</a></h2>
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<h3>Class Hierarchy</h3>
|
||
|
|
||
|
<ul><pre>
|
||
|
<a href="#Fl_Valuator">Fl_Valuator</a>
|
||
|
|
|
||
|
+----<b>Fl_Value_Output</b>
|
||
|
</pre></ul>
|
||
|
|
||
|
<h3>Include Files</h3>
|
||
|
|
||
|
<ul><pre>
|
||
|
#include <FL/Fl_Value_Output.H>
|
||
|
</pre></ul>
|
||
|
|
||
|
<h3>Description</h3>
|
||
|
|
||
|
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 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>100 * step()</tt>.
|
||
|
|
||
|
<p>This is much lighter-weight than <a
|
||
|
href=#Fl_Value_Input><tt>Fl_Value_Input</tt></a> because it contains no
|
||
|
text editing code or character buffer.
|
||
|
|
||
|
<h3>Methods</h3>
|
||
|
|
||
|
<ul>
|
||
|
<li><a href="#Fl_Value_Output.Fl_Value_Output">Fl_Value_Output</a>
|
||
|
<li><a href="#Fl_Value_Output.~Fl_Value_Output">~Fl_Value_Output</a>
|
||
|
<li><a href="#Fl_Value_Output.soft">soft</a>
|
||
|
<li><a href="#Fl_Value_Output.textcolor">textcolor</a>
|
||
|
<li><a href="#Fl_Value_Output.textfont">textfont</a>
|
||
|
<li><a href="#Fl_Value_Output.textsize">textsize</a>
|
||
|
</ul>
|
||
|
|
||
|
<h4><a name="Fl_Value_Output.Fl_Value_Output">Fl_Value_Output::Fl_Value_Output(int x, int y, int w, int h, const char *label = 0)</a></h4>
|
||
|
|
||
|
Creates a new <tt>Fl_Value_Output</tt> widget using the given position, size, and
|
||
|
label string. The default boxtype is <tt>FL_NO_BOX</tt>.
|
||
|
|
||
|
<h4><a name="Fl_Value_Output.~Fl_Value_Output">virtual Fl_Value_Output::~Fl_Value_Output()</a></h4>
|
||
|
|
||
|
Destroys the valuator.
|
||
|
|
||
|
<h4><a name="Fl_Value_Output.soft">uchar Fl_Value_Output::soft() const<br>
|
||
|
void Fl_Value_Output::soft(uchar)</a></h4>
|
||
|
|
||
|
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 Fl_Value_Output::textcolor() const<br>
|
||
|
void Fl_Value_Output::textcolor(Fl_Color)</a></h4>
|
||
|
|
||
|
Gets or sets the color of the text in the value box.
|
||
|
|
||
|
<h4><a name="Fl_Value_Output.textfont">Fl_Font Fl_Value_Output::textfont() const<br>
|
||
|
<br>void Fl_Value_Output::textfont(Fl_Font)</a></h4>
|
||
|
|
||
|
Gets or sets the typeface of the text in the value box.
|
||
|
|
||
|
<h4><a name="Fl_Value_Output.textsize">uchar Fl_Value_Output::textsize() const<br>
|
||
|
void Fl_Value_Output::textsize(uchar)</a></h4>
|
||
|
|
||
|
Gets or sets the size of the text in the value box.
|
||
|
|
||
|
</body>
|
||
|
</html>
|