summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2014-07-15 15:23:33 +0000
committerGreg Ercolano <erco@seriss.com>2014-07-15 15:23:33 +0000
commit73821732239738743ac5dc6833222b0c88437b8f (patch)
tree141e28b48a101cc1c84802a232932ec65ab68cc0
parent677e13f2bb12a16cb94303fcbcdf7d7f0a5adaba (diff)
Solves STR #1895 by making the recalc method and structure
protected (accessible to derived widgets). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10219 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/Fl_Scroll.H12
1 files changed, 5 insertions, 7 deletions
diff --git a/FL/Fl_Scroll.H b/FL/Fl_Scroll.H
index f29142567..4d763faae 100644
--- a/FL/Fl_Scroll.H
+++ b/FL/Fl_Scroll.H
@@ -94,14 +94,12 @@ class FL_EXPORT Fl_Scroll : public Fl_Group {
void fix_scrollbar_order();
static void draw_clip(void*,int,int,int,int);
-private:
-
- //
+#if FLTK_ABI_VERSION >= 10303
+protected: // NEW (STR#1895)
+#else
+private: // OLD
+#endif
// Structure to manage scrollbar and widget interior sizes.
- //
- // Private for now -- we'd like to expose some of this at
- // some point to solve STR#1895.)
- //
typedef struct {
int scrollsize; // the scrollsize (global|local)
int innerbox_x, innerbox_y, innerbox_w, innerbox_h; // widget's inner box (excludes scrollbars)