MCPcopy Create free account
hub / github.com/cxasm/notepad-- / AnnotationSetText

Method AnnotationSetText

src/qscint/scintilla/src/Document.cpp:2376–2386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2374}
2375
2376void Document::AnnotationSetText(Sci::Line line, const char *text) {
2377 if (line >= 0 && line < LinesTotal()) {
2378 const Sci::Line linesBefore = AnnotationLines(line);
2379 Annotations()->SetText(line, text);
2380 const int linesAfter = AnnotationLines(line);
2381 DocModification mh(SC_MOD_CHANGEANNOTATION, LineStart(line),
2382 0, 0, 0, line);
2383 mh.annotationLinesAdded = linesAfter - linesBefore;
2384 NotifyModified(mh);
2385 }
2386}
2387
2388void Document::AnnotationSetStyle(Sci::Line line, int style) {
2389 Annotations()->SetStyle(line, style);

Callers 1

WndProcMethod · 0.80

Calls 2

LineStartFunction · 0.85
SetTextMethod · 0.80

Tested by

no test coverage detected