aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authorPrakash Sahni <unknown>2020-06-12 09:34:59 +1000
committerPrakash Sahni <unknown>2020-06-12 09:34:59 +1000
commitee0f914744608d9a859aa7212fe839e5e638776e (patch)
tree3c2546438e5a28d792d8f896e6df84f940e64b04 /src/Document.h
parent7bdbad1346fa2d34ab37d7fd7d1574b78f879b6f (diff)
downloadscintilla-mirror-ee0f914744608d9a859aa7212fe839e5e638776e.tar.gz
Backport: Bug [#2141]. Implement end of line annotations.
Backport of changeset 8306:1b383adfdf71.
Diffstat (limited to 'src/Document.h')
-rw-r--r--src/Document.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Document.h b/src/Document.h
index f56bf01eb..a9c591cb1 100644
--- a/src/Document.h
+++ b/src/Document.h
@@ -244,13 +244,14 @@ private:
std::vector<WatcherWithUserData> watchers;
// ldSize is not real data - it is for dimensions and loops
- enum lineData { ldMarkers, ldLevels, ldState, ldMargin, ldAnnotation, ldSize };
+ enum lineData { ldMarkers, ldLevels, ldState, ldMargin, ldAnnotation, ldEOLAnnotation, ldSize };
std::unique_ptr<PerLine> perLineData[ldSize];
LineMarkers *Markers() const noexcept;
LineLevels *Levels() const noexcept;
LineState *States() const noexcept;
LineAnnotation *Margins() const noexcept;
LineAnnotation *Annotations() const noexcept;
+ LineAnnotation *EOLAnnotations() const noexcept;
bool matchesValid;
std::unique_ptr<RegexSearchBase> regex;
@@ -483,6 +484,11 @@ public:
int AnnotationLines(Sci::Line line) const noexcept;
void AnnotationClearAll();
+ StyledText EOLAnnotationStyledText(Sci::Line line) const noexcept;
+ void EOLAnnotationSetStyle(Sci::Line line, int style);
+ void EOLAnnotationSetText(Sci::Line line, const char *text);
+ void EOLAnnotationClearAll();
+
bool AddWatcher(DocWatcher *watcher, void *userData);
bool RemoveWatcher(DocWatcher *watcher, void *userData);