From f09e17c3c564e8310125a10c03397cbf473ff643 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 1 Jul 2020 18:03:10 +0200 Subject: Remove $Id$ tags, update URL's, and more - remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers. --- documentation/src/common.dox | 60 ++++++++++++++++++++++---------------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'documentation/src/common.dox') diff --git a/documentation/src/common.dox b/documentation/src/common.dox index 70cbe8901..2c586a352 100644 --- a/documentation/src/common.dox +++ b/documentation/src/common.dox @@ -1,6 +1,6 @@ /** - \page common Common Widgets and Attributes + \page common Common Widgets and Attributes This chapter describes many of the widgets that are provided with FLTK and covers how to query and set the standard @@ -46,10 +46,10 @@ lbutton->type(FL_TOGGLE_BUTTON); rbutton->type(FL_RADIO_BUTTON); \endcode -For toggle and radio buttons, the \p value() method returns +For toggle and radio buttons, the \p value() method returns the current button state (0 = off, 1 = on). The \p set() and -\p clear() methods can be used on toggle buttons to turn a -toggle button on or off, respectively. +\p 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 \p setonly() method; this will also turn off other radio buttons in the same group. @@ -64,7 +64,7 @@ FLTK provides several text widgets for displaying and receiving text: \li Fl_Multiline_Input - A multi-line text input field. -\li Fl_Multiline_Output - A multi-line text output field. +\li Fl_Multiline_Output - A multi-line text output field. \li Fl_Text_Display - A multi-line text display widget. @@ -76,7 +76,7 @@ The Fl_Output and Fl_Multiline_Output widgets allow the user to copy text from the output field but not change it. -The \p value() method is used to get or set the +The \p value() method is used to get or set the string that is displayed: \code @@ -113,7 +113,7 @@ strings. FLTK provides the following valuators: \image html valuators.png "Figure 3-2: FLTK valuator widgets" \image latex valuators.png "FLTK valuator widgets" width=10cm -The \p value() method gets and sets the current value +The \p value() method gets and sets the current value of the widget. The \p minimum() and \p maximum() methods set the range of values that are reported by the widget. @@ -329,14 +329,14 @@ The last 4 arguments to Fl::set_boxtype() are the offsets for the \p x, \p y, \p width, and \p height values that should be subtracted when drawing the label inside the box. -A complete box design contains four box types in this order: +A complete box design contains four box types in this order: a filled, neutral box (UP_BOX), a filled, depressed box (DOWN_BOX), and the same as outlines only (UP_FRAME and DOWN_FRAME). The function \ref common_fl_down "fl_down(Fl_Boxtype)" -expects the neutral design on a boxtype with a numerical -value evenly dividable by two. +expects the neutral design on a boxtype with a numerical +value evenly dividable by two. \ref common_fl_frame "fl_frame(Fl_Boxtype)" expects the \p UP_BOX design at a value dividable by four. @@ -507,7 +507,7 @@ It is also possible to define your own drawings and add them to the symbol list, so they can be rendered as part of any label. -To create a new symbol, you implement a drawing function +To create a new symbol, you implement a drawing function void drawit(Fl_Color c) which typically uses the functions described in \ref ssect_Complex to generate a vector shape inside a two-by-two units sized box @@ -567,28 +567,28 @@ button->when(FL_WHEN_CHANGED | FL_WHEN_NOT_CHANGED);
- +
Note: + Note: - You cannot delete a widget inside a callback, as the - widget may still be accessed by FLTK after your callback - is completed. Instead, use the Fl::delete_widget() - method to mark your widget for deletion when it is safe - to do so. + You cannot delete a widget inside a callback, as the + widget may still be accessed by FLTK after your callback + is completed. Instead, use the Fl::delete_widget() + method to mark your widget for deletion when it is safe + to do so. - Hint: + Hint: - Many programmers new to FLTK or C++ try to use a - non-static class method instead of a static class method - or function for their callback. Since callbacks are done - outside a C++ class, the this pointer is not - initialized for class methods. + Many programmers new to FLTK or C++ try to use a + non-static class method instead of a static class method + or function for their callback. Since callbacks are done + outside a C++ class, the this pointer is not + initialized for class methods. - To work around this problem, define a static method - in your class that accepts a pointer to the class, and - then have the static method call the class method(s) as - needed. The data pointer you provide to the - \p callback() method of the widget can be a - pointer to the instance of your class. + To work around this problem, define a static method + in your class that accepts a pointer to the class, and + then have the static method call the class method(s) as + needed. The data pointer you provide to the + \p callback() method of the widget can be a + pointer to the instance of your class. \code class Foo { @@ -601,7 +601,7 @@ class Foo { w->callback(my_static_callback, (void *)this); \endcode -
-- cgit v1.2.3