From b983b285cc4f0627a1f72c9d6c510047af0ad116 Mon Sep 17 00:00:00 2001
From: Michael R Sweet FL_NO_BOX means nothing is drawn at all, so whatever is
already on the screen remains. The FL_..._FRAME types only
-draw their edges, leaving the center unchanged. In the above diagram
+draw their edges, leaving the interior unchanged. In the above diagram
the blue color is the area that is not drawn by the box. Buttons
- FLTK provides many types of buttons:
+ FLTK provides many types of buttons:
- For all of these buttons you just need to include the corresponding
+
@@ -39,7 +40,7 @@ rbutton->type(FL_RADIO_BUTTON);
clear() methods can be used on toggle buttons to turn a
toggle button on or off, respectively. Radio buttons can be turned on
with the setonly() method; this
-will also turn off other radio buttons in the current group.
+will also turn off other radio buttons in the same group.
The last 4 arguments to Fl::set_boxtype() are the offsets for
the bounding box that should be subtracted when drawing the label
-inside the box.
+inside the box.
Text
FLTK provides several text widgets for displaying and receiving text:
@@ -74,7 +75,8 @@ strings. FLTK provides the following valuators:
- The value()
+

Making your own Boxtypes
You can define your own boxtypes by making a small function that draws
-the box and adding a pointer to it to a table of boxtypes.
+the box and adding it to the table of boxtypes.
The Drawing Function
The drawing function is passed the bounding box and background color
for the widget:
@@ -183,9 +185,9 @@ Fl::set_boxtype(XYZ_BOX, xyz_draw, 1, 1, 2, 2);
Labels and Label Types
- The label(), align, labelfont(),
+ The label(), align(), labelfont(),
labelsize(), and labeltype() methods control the labeling
of widgets.
label()
@@ -226,7 +228,7 @@ raised
Fl_Bitmap or Fl_Pixmap
objects.
Making Your Own Label Types
- Label types are actually indexes into a table of functions to draw
+ Label types are actually indexes into a table of functions that draw
them. The primary purpose of this is to let you reuse the label()
pointer as a pointer to arbitrary data such as a bitmap or pixmap. You
can also use this to draw the labels in ways inaccessible through the
@@ -252,7 +254,7 @@ label value is NULL.
Fl_Label structure and references to the width and height:
-void xyz_measure(Fl_Label *label, int w int h {
+void xyz_measure(Fl_Label *label, int &w, int &h) {
...
}
@@ -276,9 +278,9 @@ type.
The Fl::set_labeltype method can also be used to overload an existing label type such as FL_NORMAL_LABEL.
The FL_SYMBOL_LABEL label type uses the label() +The FL_SYMBOL_LABEL label type uses the label() string to look up a small drawing procedure in a hash table. For -historical reasons the string always starts with '@', if it starts with +historical reasons the string always starts with '@'; if it starts with something else (or the symbol is not found) the label is drawn normally:
