mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 15:32:12 +08:00
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
This commit is contained in:
+6
-4
@@ -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 $".
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user