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

Method SetStyle

scintilla/src/PerLine.cxx:443–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443void LineAnnotation::SetStyle(int line, int style) {
444 annotations.EnsureLength(line+1);
445 if (!annotations[line]) {
446 annotations[line] = AllocateAnnotation(0, style);
447 }
448 reinterpret_cast<AnnotationHeader *>(annotations[line])->style = static_cast<short>(style);
449}
450
451void LineAnnotation::SetStyles(int line, const unsigned char *styles) {
452 if (line >= 0) {

Callers 2

MarginSetStyleMethod · 0.80
AnnotationSetStyleMethod · 0.80

Calls 2

AllocateAnnotationFunction · 0.85
EnsureLengthMethod · 0.80

Tested by

no test coverage detected