From 70385593387e1f47549e050c3aaea047a96bc7a2 Mon Sep 17 00:00:00 2001 From: Duncan Gibson Date: Sat, 11 Jul 2020 01:03:09 +0200 Subject: add resize documentation as per STR3433 add resize chapter to documentation, plus images, based on Article #415: How does resizing work? https://www.fltk.org/articles.php?L415 see also https://www.fltk.org/str.php?L3433 --- documentation/src/common.dox | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'documentation/src/common.dox') diff --git a/documentation/src/common.dox b/documentation/src/common.dox index 2c586a352..4f7a59011 100644 --- a/documentation/src/common.dox +++ b/documentation/src/common.dox @@ -23,7 +23,7 @@ FLTK provides many types of buttons: \li Fl_Round_Button - A button with a radio circle. -\image html buttons.png "Figure 3-1: FLTK Button Widgets" +\image html buttons.png "Figure 5.1: FLTK Button Widgets" \image latex buttons.png "FLTK Button Widgets" width=10cm All of these buttons just need the corresponding @@ -110,7 +110,7 @@ strings. FLTK provides the following valuators: \li Fl_Value_Slider - A slider that shows the current value. -\image html valuators.png "Figure 3-2: FLTK valuator widgets" +\image html valuators.png "Figure 5.2: FLTK valuator widgets" \image latex valuators.png "FLTK valuator widgets" width=10cm The \p value() method gets and sets the current value @@ -249,15 +249,15 @@ the nearest entry in the colormap. The type Fl_Boxtype stored and returned in Fl_Widget::box() is an enumeration defined in Enumerations.H. -Figure 3-3 shows the standard box types included with FLTK. +Figure 5.3 shows the standard box types included with FLTK. -\image html boxtypes.png "Figure 3-3: FLTK box types" +\image html boxtypes.png "Figure 5.3: FLTK box types" \image latex boxtypes.png "FLTK box types" width=12cm \p 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 interior unchanged. The blue color in -Figure 3-3 is the area that is not drawn by the frame types. +Figure 5.3 is the area that is not drawn by the frame types. \subsection common_custom_boxtypes Making Your Own Boxtypes @@ -351,9 +351,9 @@ labeling of widgets. The \p label() method sets the string that is displayed for the label. Symbols can be included with the label string by escaping them using the "@" symbol - "@@" displays a single at -sign. Figure 3-4 shows the available symbols. +sign. Figure 5.4 shows the available symbols. -\image html symbols.png "Figure 3-4: FLTK label symbols" +\image html symbols.png "Figure 5.4: FLTK label symbols" \image latex symbols.png "FLTK label symbols" width=10cm @@ -379,7 +379,7 @@ Symbols and text can be combined in a label, however the symbol must be at the beginning and/or at the end of the text. If the text spans multiple lines, the symbol or symbols will scale up to match the height of all the lines. -\image html symbol-examples.png "Figure 3-5: FLTK symbols and text" +\image html symbol-examples.png "Figure 5.5: FLTK symbols and text" \image latex symbol-examples.png "FLTK symbols and text" width=10cm @@ -640,8 +640,8 @@ combined with any modifiers like \p Shift , \p Alt , and \p Control. [Index] - - Designing a Simple Text Editor + + How does resizing work? [Next] -- cgit v1.2.3