MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / AnnotationSetText

Method AnnotationSetText

scintilla/src/Document.cxx:1804–1813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1802}
1803
1804void Document::AnnotationSetText(int line, const char *text) {
1805 if (line >= 0 && line < LinesTotal()) {
1806 const int linesBefore = AnnotationLines(line);
1807 static_cast<LineAnnotation *>(perLineData[ldAnnotation])->SetText(line, text);
1808 const int linesAfter = AnnotationLines(line);
1809 DocModification mh(SC_MOD_CHANGEANNOTATION, LineStart(line), 0, 0, 0, line);
1810 mh.annotationLinesAdded = linesAfter - linesBefore;
1811 NotifyModified(mh);
1812 }
1813}
1814
1815void Document::AnnotationSetStyle(int line, int style) {
1816 static_cast<LineAnnotation *>(perLineData[ldAnnotation])->SetStyle(line, style);

Callers 1

WndProcMethod · 0.80

Calls 2

LineStartFunction · 0.85
SetTextMethod · 0.80

Tested by

no test coverage detected