summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2016-03-29 11:54:44 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2016-03-29 11:54:44 +0000
commit109ebd2dc03973c66cd8b2511f85b5f49e0b5ccb (patch)
tree6e76de1a6dbc8a0a16f9970e5bb9150e41d445ba /FL
parent1dca798b6e47b3bac50d44c3140eb4fc69c85e71 (diff)
Fix Fl_Browser::textsize(int) to adjust the scrollbars (STR #3057).
Setting a different text size didn't affect the scrollbars. Port of branch-1.3, r11453 and r11464. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11465 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Browser.H13
-rw-r--r--FL/Fl_Browser_.H2
2 files changed, 13 insertions, 2 deletions
diff --git a/FL/Fl_Browser.H b/FL/Fl_Browser.H
index 4c4521d72..467c6bf0c 100644
--- a/FL/Fl_Browser.H
+++ b/FL/Fl_Browser.H
@@ -3,7 +3,7 @@
//
// Browser header file for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2011 by Bill Spitzak and others.
+// Copyright 1998-2016 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -141,6 +141,17 @@ public:
int size() const { return lines; }
void size(int W, int H) { Fl_Widget::size(W, H); }
+ /**
+ Gets the default text size (in pixels) for the lines in the browser.
+ */
+ Fl_Fontsize textsize() const { return Fl_Browser_::textsize(); }
+
+ /*
+ Sets the default text size for the lines in the browser to newSize.
+ Defined and documented in Fl_Browser.cxx
+ */
+ void textsize(Fl_Fontsize newSize);
+
int topline() const ;
/** For internal use only? */
enum Fl_Line_Position { TOP, BOTTOM, MIDDLE };
diff --git a/FL/Fl_Browser_.H b/FL/Fl_Browser_.H
index 8fb22cae4..613574a01 100644
--- a/FL/Fl_Browser_.H
+++ b/FL/Fl_Browser_.H
@@ -3,7 +3,7 @@
//
// Common browser header file for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2010 by Bill Spitzak and others.
+// Copyright 1998-2016 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this