From 823b1f8460c82110ff0cd28c94684d413d955ad7 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Tue, 20 Jun 2000 07:56:09 +0000 Subject: 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 --- FL/Fl_Input_.H | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'FL') 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 $". // -- cgit v1.2.3