diff options
Diffstat (limited to 'documentation/Fl.html')
| -rw-r--r-- | documentation/Fl.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/documentation/Fl.html b/documentation/Fl.html index 30bc498a0..f7f64e81b 100644 --- a/documentation/Fl.html +++ b/documentation/Fl.html @@ -169,7 +169,7 @@ void callback(void*) { if (!state_changed) return; state_changed = false; do_expensive_calculation(); - widget->redraw(); + widget->redraw(); } main() { @@ -472,10 +472,10 @@ respectively. <P>An example to compute the area inside a widget's box(): <pre> - int X = yourwidget->x() + Fl::box_dx(yourwidget->box()); - int Y = yourwidget->y() + Fl::box_dy(yourwidget->box()); - int W = yourwidget->w() - Fl::box_dw(yourwidget->box()); - int H = yourwidget->h() - Fl::box_dh(yourwidget->box()); + int X = yourwidget->x() + Fl::box_dx(yourwidget->box()); + int Y = yourwidget->y() + Fl::box_dy(yourwidget->box()); + int W = yourwidget->w() - Fl::box_dw(yourwidget->box()); + int H = yourwidget->h() - Fl::box_dh(yourwidget->box()); </pre> <P>These functions are mainly useful in the <tt>draw()</tt> code for deriving custom widgets, where one wants to avoid drawing |
