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

Method AddMarkSet

scintilla/src/Document.cxx:233–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233void Document::AddMarkSet(int line, int valueSet) {
234 if (line < 0 || line > LinesTotal()) {
235 return;
236 }
237 unsigned int m = valueSet;
238 for (int i = 0; m; i++, m >>= 1)
239 if (m & 1)
240 static_cast<LineMarkers *>(perLineData[ldMarkers])->
241 AddMark(line, i, LinesTotal());
242 DocModification mh(SC_MOD_CHANGEMARKER, LineStart(line), 0, 0, 0, line);
243 NotifyModified(mh);
244}
245
246void Document::DeleteMark(int line, int markerNum) {
247 static_cast<LineMarkers *>(perLineData[ldMarkers])->DeleteMark(line, markerNum, false);

Callers 1

WndProcMethod · 0.80

Calls 2

LineStartFunction · 0.85
AddMarkMethod · 0.45

Tested by

no test coverage detected