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

Method ClearStyles

scintilla/src/ViewStyle.cxx:367–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367void ViewStyle::ClearStyles() {
368 // Reset all styles to be like the default style
369 for (unsigned int i=0; i<styles.size(); i++) {
370 if (i != STYLE_DEFAULT) {
371 styles[i].ClearTo(styles[STYLE_DEFAULT]);
372 }
373 }
374 styles[STYLE_LINENUMBER].back = Platform::Chrome();
375
376 // Set call tip fore/back to match the values previously set for call tips
377 styles[STYLE_CALLTIP].back = ColourDesired(0xff, 0xff, 0xff);
378 styles[STYLE_CALLTIP].fore = ColourDesired(0x80, 0x80, 0x80);
379}
380
381void ViewStyle::SetStyleFontName(int styleIndex, const char *name) {
382 styles[styleIndex].fontName = fontNames.Save(name);

Callers 1

WndProcMethod · 0.80

Calls 3

ColourDesiredClass · 0.85
sizeMethod · 0.80
ClearToMethod · 0.80

Tested by

no test coverage detected