diff options
author | Prakash Sahni <unknown> | 2020-06-12 09:34:59 +1000 |
---|---|---|
committer | Prakash Sahni <unknown> | 2020-06-12 09:34:59 +1000 |
commit | 1da92e82c03b517c9c814fce343d86d382a90a0a (patch) | |
tree | 6a25f06b19774f48cf73fdaac8e8e48fdcec2c54 /src/Document.h | |
parent | e1421b5feaff77e9a047a53a7859c577616fae2b (diff) | |
download | scintilla-mirror-1da92e82c03b517c9c814fce343d86d382a90a0a.tar.gz |
Bug [#2141]. Implement end of line annotations.
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Document.h b/src/Document.h index a1017810e..6e8507f04 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); |