aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WindowAccessor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2007-04-07 00:57:03 +0000
committernyamatongwe <unknown>2007-04-07 00:57:03 +0000
commit6d82fda3c167c1ebdc7242f9ee6d42de2a47e838 (patch)
tree855af185b33b67caf44e49c655059ff76782ef35 /src/WindowAccessor.cxx
parentcfc2acb4089acc872b9f06031ca39eef637c149c (diff)
downloadscintilla-mirror-6d82fda3c167c1ebdc7242f9ee6d42de2a47e838.tar.gz
More decoration code, with modifications reported from document to views
although this isn't optimal. Some checking for null changes. Messages documented. Methods for changing indicators in Accessor so can be used by lexers.
Diffstat (limited to 'src/WindowAccessor.cxx')
-rw-r--r--src/WindowAccessor.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/WindowAccessor.cxx b/src/WindowAccessor.cxx
index ce42534e7..8132b584e 100644
--- a/src/WindowAccessor.cxx
+++ b/src/WindowAccessor.cxx
@@ -176,3 +176,12 @@ int WindowAccessor::IndentAmount(int line, int *flags, PFNIsCommentLeader pfnIsC
return indent;
}
+void WindowAccessor::IndicatorFill(int start, int end, int indicator, int value) {
+ Platform::SendScintilla(id, SCI_SETINDICATORCURRENT, indicator);
+ if (value) {
+ Platform::SendScintilla(id, SCI_SETINDICATORVALUE, value);
+ Platform::SendScintilla(id, SCI_INDICATORFILLRANGE, start, end - start);
+ } else {
+ Platform::SendScintilla(id, SCI_INDICATORCLEARRANGE, start, end - start);
+ }
+}