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_Positioner>class Fl_Positioner</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_Positioner</B>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Include Files</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
#include <FL/Fl_Positioner.H>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Description</H3>
|
2001-11-29 22:24:00 +03:00
|
|
|
This class is provided for Forms compatibility. It provides 2D input.
|
|
|
|
It would be useful if this could be put atop another widget so that the
|
|
|
|
crosshairs are on top, but this is not implemented. The color of the
|
|
|
|
crosshairs is <TT>selection_color()</TT>.
|
2001-05-06 20:25:05 +04:00
|
|
|
<P ALIGN=CENTER><IMG src="positioner.gif" ALT="Fl_Positioner widget."></P>
|
1999-01-13 22:28:54 +03:00
|
|
|
<H3>Methods</H3>
|
|
|
|
<CENTER>
|
2001-05-06 20:25:05 +04:00
|
|
|
<TABLE width=90% summary="Fl_Positioner methods.">
|
1999-01-13 22:28:54 +03:00
|
|
|
<TR><TD align=left valign=top>
|
|
|
|
<UL>
|
|
|
|
<LI><A href=#Fl_Positioner.Fl_Positioner>Fl_Positioner</A></LI>
|
|
|
|
<LI><A href=#Fl_Positioner.~Fl_Positioner>~Fl_Positioner</A></LI>
|
|
|
|
<LI><A href=#Fl_Positioner.value>value</A></LI>
|
|
|
|
<LI><A href=#Fl_Positioner.xbounds>xbounds</A></LI>
|
|
|
|
<LI><A href=#Fl_Positioner.xstep>xstep</A></LI>
|
|
|
|
<LI><A href=#Fl_Positioner.xvalue>xvalue</A></LI>
|
|
|
|
<LI><A href=#Fl_Positioner.ybounds>ybounds</A></LI>
|
|
|
|
<LI><A href=#Fl_Positioner.ystep>ystep</A></LI>
|
|
|
|
<LI><A href=#Fl_Positioner.yvalue>yvalue</A></LI>
|
|
|
|
</UL>
|
|
|
|
</TD></TR>
|
|
|
|
</TABLE>
|
|
|
|
</CENTER>
|
|
|
|
<H4><A name=Fl_Positioner.Fl_Positioner>
|
2001-11-29 22:24:00 +03:00
|
|
|
Fl_Positioner::Fl_Positioner(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_Positioner</TT> widget using the given position,
|
|
|
|
size, and label string. The default boxtype is <TT>FL_NO_BOX</TT>.
|
|
|
|
<H4><A name=Fl_Positioner.~Fl_Positioner>virtual
|
1999-01-13 22:28:54 +03:00
|
|
|
Fl_Positioner::~Fl_Positioner()</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Deletes the widget.
|
|
|
|
<H4><A name=Fl_Positioner.value>void Fl_Positioner::value(float *x,
|
1999-01-13 22:28:54 +03:00
|
|
|
float *y) const</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Returns the current position in <TT>x</TT> and <TT>y</TT>.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Positioner.xbounds>void xbounds(float *xmin, float *xmax)
|
|
|
|
<BR> void xbounds(float xmin, float xmax)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Gets or sets the X axis bounds.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Positioner.xstep>void xstep(float x)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Sets the stepping value for the X axis.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Positioner.xvalue>float Fl_Positioner::xvalue(void) const
|
|
|
|
<BR> void Fl_Positioner::xvalue(float x)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Gets or sets the X axis coordinate.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Positioner.ybounds>void ybounds(float *ymin, float *ymay)
|
|
|
|
<BR> void ybounds(float ymin, float ymay)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Gets or sets the Y axis bounds.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Positioner.ystep>void ystep(float y)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Sets the stepping value for the Y axis.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Positioner.yvalue>float Fl_Positioner::yvalue(void) const
|
|
|
|
<BR> void Fl_Positioner::yvalue(float y)</A></H4>
|
1999-01-15 01:14:01 +03:00
|
|
|
Gets or sets the Y axis coordinate. </BODY></HTML>
|