Author: AlbrechtS
Date: 2009-02-08 10:47:37 -0800 (Sun, 08 Feb 2009)
New Revision: 6654
Log:
Added Fl_Scroll::bbox() documentation (STR #1893)
Modified:
branches/branch-1.3/CHANGES
branches/branch-1.3/src/Fl_Scroll.cxx
Modified: branches/branch-1.3/CHANGES
===================================================================
--- branches/branch-1.3/CHANGES 2009-02-08 17:50:22 UTC (rev 6653)
+++ branches/branch-1.3/CHANGES 2009-02-08 18:47:37 UTC (rev 6654)
@@ -1,5 +1,6 @@
CHANGES IN FLTK 1.3.0
+ - Added Fl_Scroll::bbox() documentation (STR #1893)
- Removed an XForms compatibility "feature" that prevented the down
array of Fl_Menu_Button from drawing (STR #2141).
- New helper class Fl_Watch to simplify safe handling of widget
Modified: branches/branch-1.3/src/Fl_Scroll.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Scroll.cxx 2009-02-08 17:50:22 UTC (rev
6653)
+++ branches/branch-1.3/src/Fl_Scroll.cxx 2009-02-08 18:47:37 UTC (rev
6654)
@@ -92,6 +92,16 @@
fl_pop_clip();
}
+/**
+ Returns the bounding box for the interior of the scrolling area, inside
+ the scrollbars.
+
+ Currently this is only reliable after draw(), and before any resizing of
+ the Fl_Scroll or any child widgets occur.
+
+ \todo The visibility of the scrollbars ought to be checked/calculated
+ outside of the draw() method (STR #1895).
+*/
void Fl_Scroll::bbox(int& X, int& Y, int& W, int& H) {
X = x()+Fl::box_dx(box());
Y = y()+Fl::box_dy(box());
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit