Updated symbols image, and fixed a few more typos.

git-svn-id: file:///fltk/svn/fltk/trunk@250 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 1999-01-27 14:24:00 +00:00
parent 59c96f5463
commit 92ab051e21
5 changed files with 125 additions and 118 deletions

View File

@ -23,8 +23,8 @@
The <TT>Fl_Valuator</TT> class controls a single floating-point value
and provides a consistent interface to set the value, range, and step,
and insures that callbacks are done the same for every object.
<P>There are probably more of these classes in fltk than any others: </P>
<P ALIGN=CENTER><IMG src=valuators.gif></P>
<P>There are probably more of these classes in FLTK than any others: </P>
<P ALIGN=CENTER><IMG src=valuators.gif WIDTH=480></P>
<P>In the above diagram each box surrounds an actual subclass. These
are further differentiated by setting the <A href=#Fl_Widget.type><TT>
type()</TT></A> of the widget to the symbolic value labeling the

View File

@ -13,8 +13,8 @@ and covers how to query and set the standard attributes.
Enter key. </LI>
<LI><TT>Fl_Round_Button</TT> - A button with a check circle. </LI>
</UL>
<P ALIGN=CENTER><IMG SRC="buttons.gif"></P>
For all of these buttons you just need to include the corresponding <TT>
<P ALIGN=CENTER><IMG SRC="buttons.gif">
<P>For all of these buttons you just need to include the corresponding <TT>
&lt;FL/Fl_xyz_Button.H&gt;</TT> header file. The constructor takes the
bounding box of the button and optionally a label string:
<UL>

View File

@ -184,132 +184,139 @@ calls <TT>XK_Multi_key</TT>.
<center><table border=1>
<tr>
<td><TT>sp</TT>nbsp</td>
<td><TT>*</TT>°</td>
<td><TT>A`</TT>À</td>
<td><TT>D-</TT>Ð</td>
<td><TT>a`</TT>à</td>
<td><TT>d-</TT>ð</td>
<th>Keys</th><th>Char</th>
<th>Keys</th><th>Char</th>
<th>Keys</th><th>Char</th>
<th>Keys</th><th>Char</th>
<th>Keys</th><th>Char</th>
</tr>
<tr>
<td><TT>!</TT>¡</td>
<td><TT>+-</TT>±</td>
<td><TT>A'</TT>Á</td>
<td><TT>N~</TT>Ñ</td>
<td><TT>a'</TT>á</td>
<td><TT>n~</TT>ñ</td>
<td><TT>sp</TT></td><td>nbsp</td>
<td><TT>*</TT></td><td>°</td>
<td><TT>A`</TT></td><td>À</td>
<td><TT>D-</TT></td><td>Ð</td>
<td><TT>a`</TT></td><td>à</td>
<td><TT>d-</TT></td><td>ð</td>
</tr>
<tr>
<td><TT>%</TT>¢</td>
<td><TT>2</TT>²</td>
<td><TT>A^</TT>Â</td>
<td><TT>O`</TT>Ò</td>
<td><TT>a^</TT>â</td>
<td><TT>o`</TT>ò</td>
<td><TT>!</TT></td><td>¡</td>
<td><TT>+-</TT></td><td>±</td>
<td><TT>A'</TT></td><td>Á</td>
<td><TT>N~</TT></td><td>Ñ</td>
<td><TT>a'</TT></td><td>á</td>
<td><TT>n~</TT></td><td>ñ</td>
</tr>
<tr>
<td><TT>#</TT>£</td>
<td><TT>3</TT>³</td>
<td><TT>A~</TT>Ã</td>
<td><TT>O'</TT>Ó</td>
<td><TT>a~</TT>ã</td>
<td><TT>o'</TT>ó</td>
<td><TT>%</TT></td><td>¢</td>
<td><TT>2</TT></td><td>²</td>
<td><TT>A^</TT></td><td>Â</td>
<td><TT>O`</TT></td><td>Ò</td>
<td><TT>a^</TT></td><td>â</td>
<td><TT>o`</TT></td><td>ò</td>
</tr>
<tr>
<td><TT>$</TT>¤</td>
<td><TT>'</TT>´</td>
<td><TT>A:</TT>Ä</td>
<td><TT>O^</TT>Ô</td>
<td><TT>a:</TT>ä</td>
<td><TT>o^</TT>ô</td>
<td><TT>#</TT></td><td>£</td>
<td><TT>3</TT></td><td>³</td>
<td><TT>A~</TT></td><td>Ã</td>
<td><TT>O'</TT></td><td>Ó</td>
<td><TT>a~</TT></td><td>ã</td>
<td><TT>o'</TT></td><td>ó</td>
</tr>
<tr>
<td><TT>y=</TT>¥</td>
<td><TT>u</TT>µ</td>
<td><TT>A*</TT>Å</td>
<td><TT>O~</TT>Õ</td>
<td><TT>a*</TT>å</td>
<td><TT>o~</TT>õ</td>
<td><TT>$</TT></td><td>¤</td>
<td><TT>'</TT></td><td>´</td>
<td><TT>A:</TT></td><td>Ä</td>
<td><TT>O^</TT></td><td>Ô</td>
<td><TT>a:</TT></td><td>ä</td>
<td><TT>o^</TT></td><td>ô</td>
</tr>
<tr>
<td><TT>|</TT>¦</td>
<td><TT>p</TT></td>
<td><TT>AE</TT>Æ</td>
<td><TT>O:</TT>Ö</td>
<td><TT>ae</TT>æ</td>
<td><TT>o:</TT>ö</td>
<td><TT>y=</TT></td><td>¥</td>
<td><TT>u</TT></td><td>µ</td>
<td><TT>A*</TT></td><td>Å</td>
<td><TT>O~</TT></td><td>Õ</td>
<td><TT>a*</TT></td><td>å</td>
<td><TT>o~</TT></td><td>õ</td>
</tr>
<tr>
<td><TT>&</TT>§</td>
<td><TT>.</TT>·</td>
<td><TT>C,</TT>Ç</td>
<td><TT>x</TT>×</td>
<td><TT>c,</TT>ç</td>
<td><TT>-:</TT>÷</td>
<td><TT>|</TT></td><td>¦</td>
<td><TT>p</TT></td><td></td>
<td><TT>AE</TT></td><td>Æ</td>
<td><TT>O:</TT></td><td>Ö</td>
<td><TT>ae</TT></td><td>æ</td>
<td><TT>o:</TT></td><td>ö</td>
</tr>
<tr>
<td><TT>:</TT>¨</td>
<td><TT>,</TT>¸</td>
<td><TT>E`</TT>È</td>
<td><TT>O/</TT>Ø</td>
<td><TT>e`</TT>è</td>
<td><TT>o/</TT>ø</td>
<td><TT>&</TT></td><td>§</td>
<td><TT>.</TT></td><td>·</td>
<td><TT>C,</TT></td><td>Ç</td>
<td><TT>x</TT></td><td>×</td>
<td><TT>c,</TT></td><td>ç</td>
<td><TT>-:</TT></td><td>÷</td>
</tr>
<tr>
<td><TT>c</TT>©</td>
<td><TT>1</TT>¹</td>
<td><TT>E'</TT>É</td>
<td><TT>U`</TT>Ù</td>
<td><TT>e'</TT>é</td>
<td><TT>u`</TT>ù</td>
<td><TT>:</TT></td><td>¨</td>
<td><TT>,</TT></td><td>¸</td>
<td><TT>E`</TT></td><td>È</td>
<td><TT>O/</TT></td><td>Ø</td>
<td><TT>e`</TT></td><td>è</td>
<td><TT>o/</TT></td><td>ø</td>
</tr>
<tr>
<td><TT>a</TT>ª</td>
<td><TT>o</TT>º</td>
<td><TT>E^</TT>Ê</td>
<td><TT>U'</TT>Ú</td>
<td><TT>e^</TT>ê</td>
<td><TT>u'</TT>ú</td>
<td><TT>c</TT></td><td>©</td>
<td><TT>1</TT></td><td>¹</td>
<td><TT>E'</TT></td><td>É</td>
<td><TT>U`</TT></td><td>Ù</td>
<td><TT>e'</TT></td><td>é</td>
<td><TT>u`</TT></td><td>ù</td>
</tr>
<tr>
<td><TT>&lt;&lt;</TT>«</td>
<td><TT>>></TT>»</td>
<td><TT>E:</TT>Ë</td>
<td><TT>U^</TT>Û</td>
<td><TT>e:</TT>ë</td>
<td><TT>u^</TT>û</td>
<td><TT>a</TT></td><td>ª</td>
<td><TT>o</TT></td><td>º</td>
<td><TT>E^</TT></td><td>Ê</td>
<td><TT>U'</TT></td><td>Ú</td>
<td><TT>e^</TT></td><td>ê</td>
<td><TT>u'</TT></td><td>ú</td>
</tr>
<tr>
<td><TT>~</TT>¬</td>
<td><TT>14</TT>¼</td>
<td><TT>I`</TT>Ì</td>
<td><TT>U:</TT>Ü</td>
<td><TT>i`</TT>ì</td>
<td><TT>u:</TT>ü</td>
<td><TT>&lt;&lt;</TT></td><td>«</td>
<td><TT>>></TT></td><td>»</td>
<td><TT>E:</TT></td><td>Ë</td>
<td><TT>U^</TT></td><td>Û</td>
<td><TT>e:</TT></td><td>ë</td>
<td><TT>u^</TT></td><td>û</td>
</tr>
<tr>
<td><TT>-</TT>­</td>
<td><TT>12</TT>½</td>
<td><TT>I'</TT>Í</td>
<td><TT>Y'</TT>Ý</td>
<td><TT>i'</TT>í</td>
<td><TT>y'</TT>ý</td>
<td><TT>~</TT></td><td>¬</td>
<td><TT>14</TT></td><td>¼</td>
<td><TT>I`</TT></td><td>Ì</td>
<td><TT>U:</TT></td><td>Ü</td>
<td><TT>i`</TT></td><td>ì</td>
<td><TT>u:</TT></td><td>ü</td>
</tr>
<tr>
<td><TT>r</TT>®</td>
<td><TT>34</TT>¾</td>
<td><TT>I^</TT>Î</td>
<td><TT>DD</TT>Þ</td>
<td><TT>i^</TT>î</td>
<td><TT>dd</TT>þ</td>
<td><TT>-</TT></td><td>­</td>
<td><TT>12</TT></td><td>½</td>
<td><TT>I'</TT></td><td>Í</td>
<td><TT>Y'</TT></td><td>Ý</td>
<td><TT>i'</TT></td><td>í</td>
<td><TT>y'</TT></td><td>ý</td>
</tr>
<tr>
<td><TT>_</TT>¯</td>
<td><TT>?</TT>¿</td>
<td><TT>I:</TT>Ï</td>
<td><TT>ss</TT>ß</td>
<td><TT>i:</TT>ï</td>
<td><TT>y:</TT>ÿ</td>
<td><TT>r</TT></td><td>®</td>
<td><TT>34</TT></td><td>¾</td>
<td><TT>I^</TT></td><td>Î</td>
<td><TT>DD</TT></td><td>Þ</td>
<td><TT>i^</TT></td><td>î</td>
<td><TT>dd</TT></td><td>þ</td>
</tr>
<tr>
<td><TT>_</TT></td><td>¯</td>
<td><TT>?</TT></td><td>¿</td>
<td><TT>I:</TT></td><td>Ï</td>
<td><TT>ss</TT></td><td>ß</td>
<td><TT>i:</TT></td><td>ï</td>
<td><TT>y:</TT></td><td>ÿ</td>
</tr>
</table>
</center>

View File

@ -333,12 +333,12 @@ syntax errors such as mismatched parenthesis in any code before
saving any text. </P>
</TD><TD><IMG src=./fluid_widget.gif width=225></TD></TR>
</TABLE>
&quot;Revert&quot; or &quot;Cancel&quot; put everything back to when you last brought up
&quot;Revert&quot; or &quot;Cancel&quot; put everything back to when you last brought up
the panel or hit OK. However in the current version of FLUID, changes
to &quot;visible&quot; attributes (such as the color, label, box) are not undone
by revert or cancel. Changes to code like the callbacks are undone,
however. <A name=widget_attributes>
<H2>Widget Attributes</H2>
however.
<H2><A name=widget_attributes>Widget Attributes</A></H2>
<H3>Name (text field)</H3>
Name of a variable to declare, and to store a pointer to this
widget into. This variable will be of type &quot;&lt;class&gt;*&quot;. If the name is
@ -464,9 +464,9 @@ much other error checking. Be careful here, as it may be hard to
figure out what widget is producing an error in the compiler. </P>
<P>If the callback is blank then no callback is set. </P>
<H3>user_data</H3>
<P>This is a value for the <tt>user_data()</tt> of the widget. If blank the
This is a value for the <tt>user_data()</tt> of the widget. If blank the
default value of zero is used. This can be any piece of C code that
can be cast to a <tt>void</tt> pointer.</P>
can be cast to a <tt>void</tt> pointer.
<H3>User Data Type</H3>
The <tt>void *</tt> in the callback function prototypes is replaced with this.
You may want to use <tt>long</tt> for old XForms code. Be warned that
@ -482,11 +482,11 @@ the data is not changed.
<P>There are other rare but useful values for the <tt>when()</tt> field that are
not in the menu. You should use the extra code fields to put these
values in.</P>
<H2>Selecting Moving Widgets</H2>
<P>Double-clicking a window name in the browser will display it, if not
<H2>Selecting and Moving Widgets</H2>
Double-clicking a window name in the browser will display it, if not
displayed yet. From this display you can select widgets, sets of
widgets, and move or resize them. To close a window either
double-click it or type Esc. </P>
double-click it or type Esc.
<P>To select a widget, click it. To select several widgets drag a
rectangle around them. Holding down shift will toggle the selection of
the widgets instead. </P>
@ -530,8 +530,8 @@ effect.
The string typed into here is passed to the X window manager as the
class. This can change the icon or window decorations. On most (all?)
window managers you will have to close the window and reopen it to see
the effect. <A name=images>
<H2>Image Labels</H2>
the effect.
<H2><A name=images>Image Labels</A></H2>
<P>Selecting &quot;Image...&quot; off the label style pull-down menu will bring
up a file chooser from which you pick the image file. If an image has
already been chosen, you can change the image used by picking
@ -547,10 +547,10 @@ to the location the <TT>.fl</TT> file is (not necessarily the current
directory). I recommend you either put the images in the same
directory as the <TT>.fl</TT> file, or use absolute path names. </P>
<H3>Notes for all image types</H3>
<P>FLUID runs using the default visual of your X server. This may be 8
FLUID runs using the default visual of your X server. This may be 8
bits, which will give you dithered images. You may get better results
in your actual program by adding the code &quot;Fl::visual(FL_RGB)&quot; to your
code right before the first window is displayed. </P>
code right before the first window is displayed.
<P>All widgets with the same image on them share the same code and
source X pixmap. Thus once you have put an image on a widget, it is
nearly free to put the same image on many other widgets. </P>
@ -569,9 +569,9 @@ want the image inside it, you must change the button's boxtype to
FL_UP_FRAME (or another frame), otherwise when it is pushed it will
erase the image. </P>
<H3>XBM (X bitmap files)</H3>
<P>FLUID will read X bitmap files. These files have C source code to
FLUID will read X bitmap files. These files have C source code to
define a bitmap. Sometimes they are stored with the &quot;.h&quot; or &quot;.bm&quot;
extension rather than the standard &quot;.xbm&quot;. </P>
extension rather than the standard &quot;.xbm&quot;.
<P>FLUID will output code to construct an Fl_Bitmap widget and use it
to label the widget. The '1' bits in the bitmap are drawn using the
label color of the widget. You can change the color in FLUID. The '0'
@ -579,9 +579,9 @@ bits are transparent. </P>
<P>The program &quot;bitmap&quot; on the X distribution does an ok job of editing
bitmaps. </P>
<H3>XPM (X pixmap files)</H3>
<P>FLUID will read X pixmap files as used by the libxpm library. These
FLUID will read X pixmap files as used by the libxpm library. These
files have C source code to define a pixmap. The filenames usually
have a &quot;.xpm&quot; extension. </P>
have a &quot;.xpm&quot; extension.
<P>FLUID will output code to construct an Fl_Pixmap widget and use it
to label the widget. The label color of the widget is ignored, even
for 2-color images that could be a bitmap. </P>
@ -596,9 +596,9 @@ XPaint</A>. This (and most other) painting programs are designed for
large full color images and are difficult to use to edit an image of
small size and few colors. </P>
<H3>GIF files</H3>
<P>FLUID will also read GIF image files. These files are often used on
FLUID will also read GIF image files. These files are often used on
html documents to make icons. This lets you use nice icons that you
steal off the net in your user interface. </P>
steal off the net in your user interface.
<P>FLUID converts these into (modified) XPM format and uses an
Fl_Pixmap widget to label the widget. Transparency is handled the same
as for xpm files. Notice that the conversion removes the compression,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB