diff options
| author | Bill Spitzak <spitzak@gmail.com> | 2000-06-20 07:56:09 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 2000-06-20 07:56:09 +0000 |
| commit | 823b1f8460c82110ff0cd28c94684d413d955ad7 (patch) | |
| tree | 98b5b99f6519772c84c7a7478f13a7dcc5cf2cc0 /FL | |
| parent | f7e4caec2575619b6578b866bb59630bb513049c (diff) | |
Fixes to WORDWRAP modification to Fl_Input based on work done by
Alexander Rabi Beels. This will not affect things much because WORDWRAP
is normally disabled. However it fixes a few bugs with word+line selection
and with up/down arrows working when there are tabs or control characters
in the text. I modified his patches so no changes are needed to the
header files to enable wordwrap and so that very long words scroll
horizontally rather than break between letters.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1223 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Input_.H | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/FL/Fl_Input_.H b/FL/Fl_Input_.H index f02e77487..5151e8207 100644 --- a/FL/Fl_Input_.H +++ b/FL/Fl_Input_.H @@ -1,5 +1,5 @@ // -// "$Id: Fl_Input_.H,v 1.6.2.2 2000/06/05 21:20:24 mike Exp $" +// "$Id: Fl_Input_.H,v 1.6.2.3 2000/06/20 07:56:06 bill Exp $" // // Input base class header file for the Fast Light Tool Kit (FLTK). // @@ -66,8 +66,10 @@ class Fl_Input_ : public Fl_Widget { protected: - FL_EXPORT int wordboundary(int i) const; - FL_EXPORT int lineboundary(int i) const; + FL_EXPORT int word_start(int i) const; + FL_EXPORT int word_end(int i) const; + FL_EXPORT int line_start(int i) const; + FL_EXPORT int line_end(int i) const; FL_EXPORT void drawtext(int, int, int, int); FL_EXPORT int up_down_position(int, int keepmark=0); FL_EXPORT void handle_mouse(int, int, int, int, int keepmark=0); @@ -120,5 +122,5 @@ public: #endif // -// End of "$Id: Fl_Input_.H,v 1.6.2.2 2000/06/05 21:20:24 mike Exp $". +// End of "$Id: Fl_Input_.H,v 1.6.2.3 2000/06/20 07:56:06 bill Exp $". // |
