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

Method Init

scintilla/src/ViewStyle.cxx:179–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void ViewStyle::Init(size_t stylesSize_) {
180 AllocStyles(stylesSize_);
181 nextExtendedStyle = 256;
182 fontNames.Clear();
183 ResetDefaultStyle();
184
185 // There are no image markers by default, so no need for calling CalcLargestMarkerHeight()
186 largestMarkerHeight = 0;
187
188 indicators[0].style = INDIC_SQUIGGLE;
189 indicators[0].under = false;
190 indicators[0].fore = ColourDesired(0, 0x7f, 0);
191 indicators[1].style = INDIC_TT;
192 indicators[1].under = false;
193 indicators[1].fore = ColourDesired(0, 0, 0xff);
194 indicators[2].style = INDIC_PLAIN;
195 indicators[2].under = false;
196 indicators[2].fore = ColourDesired(0xff, 0, 0);
197
198 technology = SC_TECHNOLOGY_DEFAULT;
199 lineHeight = 1;
200 maxAscent = 1;
201 maxDescent = 1;
202 aveCharWidth = 8;
203 spaceWidth = 8;
204
205 selforeset = false;
206 selforeground = ColourDesired(0xff, 0, 0);
207 selAdditionalForeground = ColourDesired(0xff, 0, 0);
208 selbackset = true;
209 selbackground = ColourDesired(0xc0, 0xc0, 0xc0);
210 selAdditionalBackground = ColourDesired(0xd7, 0xd7, 0xd7);
211 selbackground2 = ColourDesired(0xb0, 0xb0, 0xb0);
212 selAlpha = SC_ALPHA_NOALPHA;
213 selAdditionalAlpha = SC_ALPHA_NOALPHA;
214 selEOLFilled = false;
215
216 foldmarginColourSet = false;
217 foldmarginColour = ColourDesired(0xff, 0, 0);
218 foldmarginHighlightColourSet = false;
219 foldmarginHighlightColour = ColourDesired(0xc0, 0xc0, 0xc0);
220
221 whitespaceForegroundSet = false;
222 whitespaceForeground = ColourDesired(0, 0, 0);
223 whitespaceBackgroundSet = false;
224 whitespaceBackground = ColourDesired(0xff, 0xff, 0xff);
225 selbar = Platform::Chrome();
226 selbarlight = Platform::ChromeHighlight();
227 styles[STYLE_LINENUMBER].fore = ColourDesired(0, 0, 0);
228 styles[STYLE_LINENUMBER].back = Platform::Chrome();
229 caretcolour = ColourDesired(0, 0, 0);
230 additionalCaretColour = ColourDesired(0x7f, 0x7f, 0x7f);
231 showCaretLineBackground = false;
232 alwaysShowCaretLineBackground = false;
233 caretLineBackground = ColourDesired(0xff, 0xff, 0);
234 caretLineAlpha = SC_ALPHA_NOALPHA;
235 edgecolour = ColourDesired(0xc0, 0xc0, 0xc0);
236 edgeState = EDGE_NONE;

Callers

nothing calls this directly

Calls 2

ColourDesiredClass · 0.85
ClearMethod · 0.45

Tested by

no test coverage detected