FLUID GUI tweeks (OK and Cancel use now consistent, spacing now consistent,
Courier font for code, etc.)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
@ -145,10 +145,9 @@ also the maximum size (so the window cannot resize in that direction). </LI>
@@ -145,10 +145,9 @@ also the maximum size (so the window cannot resize in that direction). </LI>
It is undefined what happens if the current size does not fit in the
@ -89,6 +89,8 @@ will be duplicated exactly on any platform FLTK is ported to. It is
@@ -89,6 +89,8 @@ will be duplicated exactly on any platform FLTK is ported to. It is
undefined whether these are affected by the <Ahref=#complex_shapes>
transformation matrix</A>, so you should only call these while it is
the identity.
<H4>void fl_point(int x, int y)</H4>
Draw a single pixel at the given coordinates.
<H4>void fl_rectf(int x, int y, int w, int h)</H4>
Color a rectangle that exactly fills the given bounding box.
<H4>void fl_rectf(int x, int y, int w, int h, uchar r, uchar g, uchar b)</H4>
@ -538,10 +538,11 @@ grid that all widgets snap to when you move and resize them, and for the
@@ -538,10 +538,11 @@ grid that all widgets snap to when you move and resize them, and for the
"snap" which is how far a widget has to be dragged from its original position
The output filenames control the extensions or names of the files the are
<P>The output filenames control the extensions or names of the files the are
generated by FLUID. If you check the "Include .h from .cxx" button the code
file will include the header file automatically.
@ -580,8 +581,7 @@ which is described later in this chapter. </P>
@@ -580,8 +581,7 @@ which is described later in this chapter. </P>
<H4>Help/About FLUID</H4>
Pops up a panel showing the version of FLUID.
<H3>The Widget Panel</H3>
<TABLEcellpadding=0cellspacing=0width=100%>
<TR><TD>When you double-click on a widget or a set of widgets you will get
When you double-click on a widget or a set of widgets you will get
the "widget attribute panel".
<P>When you change attributes using this panel, the changes are
reflected immediately in the window. It is useful to hit the "no
@ -591,7 +591,9 @@ the widgets more accurately, especially when setting the box type.
@@ -591,7 +591,9 @@ the widgets more accurately, especially when setting the box type.
for the fields. In this case the value for <I>one</I> of the widgets
is shown. But if you change this value, <I>all</I> of the selected
widgets are changed to the new value.
<P>Hitting "OK" makes the changes permanent. Selecting a different
<TABLEcellpadding=0cellspacing=0width=100%>
<TR>
<TDVALIGN=TOP>Hitting "OK" makes the changes permanent. Selecting a different
widget also makes the changes permanent. FLUID checks for simple
syntax errors such as mismatched parenthesis in any code before
saving any text.
@ -600,8 +602,6 @@ the panel or hit OK. However in the current version of FLUID, changes
@@ -600,8 +602,6 @@ the panel or hit OK. However in the current version of FLUID, changes
to "visible" attributes (such as the color, label, box) are not undone
by revert or cancel. Changes to code like the callbacks are undone,
@ -126,10 +126,70 @@ not work. If you do <TT>show()</TT> the window, call <TT>make_current()</TT>
@@ -126,10 +126,70 @@ not work. If you do <TT>show()</TT> the window, call <TT>make_current()</TT>
again to set the context. </P>
<P><TT>~Fl_Glut_Window()</TT> is the same as <TT>glutDestroyWindow()</TT>
. </P>
<H3>Members</H3>
The <TT>Fl_Glut_Window</TT> class contains several public members that can
be altered directly:
<CENTER><TABLEWIDTH="80%"BORDER">
<TR>
<TH>member</TH>
<TH>description</TH>
</TR>
<TR>
<TD>display</TD>
<TD>A pointer to the function to call to draw the normal planes.</TD>
</TR>
<TR>
<TD>entry</TD>
<TD>A pointer to the function to call when the mouse moves into
or out of the window.</TD>
</TR>
<TR>
<TD>keyboard</TD>
<TD>A pointer to the function to call when a regular key is pressed.</TD>
</TR>
<TR>
<TD>menu[3]</TD>
<TD>The menu to post when one of the mouse buttons is pressed.</TD>
</TR>
<TR>
<TD>mouse</TD>
<TD>A pointer to the function to call when a button is pressed or
released.</TD>
</TR>
<TR>
<TD>motion</TD>
<TD>A pointer to the function to call when the mouse is moved with
a button down.</TD>
</TR>
<TR>
<TD>overlaydisplay</TD>
<TD>A pointer to the function to call to draw the overlay planes.</TD>
</TR>
<TR>
<TD>passivemotion</TD>
<TD>A pointer to the function to call when the mouse is moved with
no buttons down.</TD>
</TR>
<TR>
<TD>reshape</TD>
<TD>A pointer to the function to call when the window is resized.</TD>
</TR>
<TR>
<TD>special</TD>
<TD>A pointer to the function to call when a special key is pressed.</TD>
</TR>
<TR>
<TD>visibility</TD>
<TD>A pointer to the function to call when the window is iconified
Fl_Glut_Window::Fl_Glut_Window(int x, int y, int w, int h, const char
@ -142,4 +202,9 @@ will create the window with a preset size, but the window manager will
@@ -142,4 +202,9 @@ will create the window with a preset size, but the window manager will