From 1da92e82c03b517c9c814fce343d86d382a90a0a Mon Sep 17 00:00:00 2001 From: Prakash Sahni Date: Fri, 12 Jun 2020 09:34:59 +1000 Subject: Bug [#2141]. Implement end of line annotations. --- src/Document.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/Document.h') 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 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 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 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); -- cgit v1.2.3