1999-01-13 22:28:54 +03:00
|
|
|
<HTML><BODY>
|
2001-11-28 21:00:17 +03:00
|
|
|
<!-- NEW PAGE -->
|
1999-01-13 22:28:54 +03:00
|
|
|
<H2><A name=Fl_Adjuster>class Fl_Adjuster</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_Adjuster</B>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Include Files</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
#include <FL/Fl_Adjuster.H>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Description</H3>
|
2001-11-29 22:24:00 +03:00
|
|
|
The <TT>Fl_Adjuster</TT> widget was stolen from Prisms, and has proven
|
1999-01-19 23:53:39 +03:00
|
|
|
to be very useful for values that need a large dynamic range.
|
2001-05-06 20:25:05 +04:00
|
|
|
<P ALIGN=CENTER><IMG SRC="adjuster1.gif" ALT="Fl_Adjuster widget."></P>
|
1999-01-19 23:53:39 +03:00
|
|
|
<P>When you press a button and drag to the right the value increases.
|
|
|
|
When you drag to the left it decreases. The largest button adjusts by
|
|
|
|
<TT>100 * step()</TT>, the next by <TT>10 * step()</TT> and that
|
|
|
|
smallest button by <TT>step()</TT>. Clicking on the buttons
|
|
|
|
increments by 10 times the amount dragging by a pixel does. Shift +
|
2001-11-29 22:24:00 +03:00
|
|
|
click decrements by 10 times the amount.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H3>Methods</H3>
|
|
|
|
<UL>
|
|
|
|
<LI><A href=#Fl_Adjuster.Fl_Adjuster>Fl_Adjuster</A></LI>
|
|
|
|
<LI><A href=#Fl_Adjuster.~Fl_Adjuster>~Fl_Adjuster</A></LI>
|
|
|
|
<LI><A href=#Fl_Adjuster.soft>soft</A></LI>
|
|
|
|
</UL>
|
2001-11-29 22:24:00 +03:00
|
|
|
<H4><A name=Fl_Adjuster.Fl_Adjuster>Fl_Adjuster::Fl_Adjuster(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_Adjuster</TT> widget using the given position,
|
|
|
|
size, and label string. It looks best if one of the dimensions is 3
|
|
|
|
times the other.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Adjuster.~Fl_Adjuster>virtual Fl_Adjuster::~Fl_Adjuster()</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_Adjuster.soft>uchar Fl_Adjuster::soft() const
|
|
|
|
<BR> void Fl_Adjuster::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
|
1999-01-19 23:53:39 +03:00
|
|
|
one.
|
|
|
|
</BODY></HTML>
|