summaryrefslogtreecommitdiff
path: root/documentation/src/common.dox
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/src/common.dox')
-rw-r--r--documentation/src/common.dox60
1 files changed, 30 insertions, 30 deletions
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 (<tt>UP_BOX</tt>),
a filled, depressed box (<tt>DOWN_BOX</tt>),
and the same as outlines only (<tt>UP_FRAME</tt> and <tt>DOWN_FRAME</tt>).
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
<tt>void drawit(Fl_Color c)</tt> 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);
<CENTER><TABLE WIDTH="80%" BORDER="1" CELLPADDING="5" CELLSPACING="0" BGCOLOR="#cccccc">
<TR>
- <TD><B>Note:</B>
+ <TD><B>Note:</B>
- 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.
- <B>Hint:</B>
+ <B>Hint:</B>
- 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 <tt>this</tt> 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 <tt>this</tt> 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
- </TD>
+ </TD>
</TR>
</TABLE></CENTER>