summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Display.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2011-10-01 15:42:39 +0000
committerMatthias Melcher <fltk@matthiasm.com>2011-10-01 15:42:39 +0000
commit8709753e1b9d3292a2dbf2bebde38777ea1eef71 (patch)
treefef9d96e50f5e0e769fef217b2e58eb74a52ac58 /src/Fl_Text_Display.cxx
parentdde4dbd61f5b8efd2ac5a995e896a4ed8a58140d (diff)
STR 2701: more tolerant Xft Font Attribute interpretation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9108 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Display.cxx')
-rw-r--r--src/Fl_Text_Display.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index 3955f196b..c1ce82a05 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -1371,7 +1371,11 @@ void Fl_Text_Display::previous_word() {
\brief This is called before any characters are deleted.
Callback attached to the text buffer to receive delete information before
- the modifications are actually made.
+ the modifications are actually made.
+
+ This callback can be used to adjust
+ the display or update other setting. It is not advisable to change any
+ buffers or text in this callback, or line counting may get out of sync.
\param pos starting index of deletion
\param nDeleted number of bytes we will delete (must be UTF-8 aligned!)
@@ -1402,6 +1406,10 @@ void Fl_Text_Display::buffer_predelete_cb(int pos, int nDeleted, void *cbArg) {
Callback attached to the text buffer to receive modification information
+ This callback can be used to adjust
+ the display or update other setting. It is not advisable to change any
+ buffers or text in this callback, or line counting may get out of sync.
+
\param pos starting index of modification
\param nInserted number of bytes we inserted (must be UTF-8 aligned!)
\param nDeleted number of bytes deleted (must be UTF-8 aligned!)