From b983b285cc4f0627a1f72c9d6c510047af0ad116 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 26 Jan 1999 21:36:02 +0000 Subject: Lots of documentation fixes, and added a new image for the Fluid chapter. git-svn-id: file:///fltk/svn/fltk/trunk@244 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/common.html | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'documentation/common.html') diff --git a/documentation/common.html b/documentation/common.html index 4fa974e75..ae42af388 100644 --- a/documentation/common.html +++ b/documentation/common.html @@ -3,7 +3,7 @@ This chapter describes many of the widgets that are provided with FLTK and covers how to query and set the standard attributes.

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 +

+For all of these buttons you just need to include the corresponding <FL/Fl_xyz_Button.H> header file. The constructor takes the bounding box of the button and optionally a label string: 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.

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.

    Symbol Labels

    -

    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:

    -- cgit v1.2.3