summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2009-09-19 21:16:21 +0000
committerMatthias Melcher <fltk@matthiasm.com>2009-09-19 21:16:21 +0000
commit62eac883d1bd545214abe37c774cac332bd1bbc7 (patch)
treed633db314c9cbe105ff0d9b8908f04ee097a5762 /FL
parent08dea80a5a03aa90d8f1480b918e5620b36d953a (diff)
First few additions to create scroll wheel support for multiline Fl_Input.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6888 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Input_.H3
1 files changed, 2 insertions, 1 deletions
diff --git a/FL/Fl_Input_.H b/FL/Fl_Input_.H
index e53e9277b..dc7a319d1 100644
--- a/FL/Fl_Input_.H
+++ b/FL/Fl_Input_.H
@@ -120,7 +120,7 @@ class FL_EXPORT Fl_Input_ : public Fl_Widget {
\p mark_, no text is selected */
int mark_;
- /** \internal Offset to text origin within wdget bounds */
+ /** \internal Offset to text origin within widget bounds */
int xscroll_, yscroll_;
/** \internal Minimal update pointer. Display requirs redraw from here to the end
@@ -206,6 +206,7 @@ protected:
/** \internal Vertical offset of text to top edge of widget. */
int yscroll() const {return yscroll_;}
+ void yscroll(int y) { yscroll_ = y; damage(FL_DAMAGE_EXPOSE);}
/* Return the number of lines displayed on a single page. */
int linesPerPage();