1 // Scintilla source code edit control
2 // ViewStyle.h - store information on how the document is to be viewed
3 // Copyright 1998-2000 by Neil Hodgson <neilh@scintilla.org>
4 // The License.txt file describes the conditions under which this software may be distributed.
20 char *names
[STYLE_MAX
+ 1];
26 const char *Save(const char *name
);
29 enum WhiteSpaceVisibility
{wsInvisible
=0, wsVisibleAlways
=1, wsVisibleAfterIndent
=2};
33 Style styles
[STYLE_MAX
+ 1];
34 LineMarker markers
[MARKER_MAX
+ 1];
35 Indicator indicators
[INDIC_MAX
+ 1];
37 unsigned int maxAscent
;
38 unsigned int maxDescent
;
39 unsigned int aveCharWidth
;
40 unsigned int spaceWidth
;
42 ColourPair selforeground
;
44 ColourPair selbackground
;
45 ColourPair selbackground2
;
47 ColourPair selbarlight
;
48 // Margins are ordered: Line Numbers, Selection Margin, Spacing Margin
49 int leftMarginWidth
; // Spacing margin on left of text
50 int rightMarginWidth
; // Spacing margin on left of text
53 int maskInLine
; // Mask for markers to be put into text because there is nowhere for them to go in margin
54 MarginStyle ms
[margins
];
57 WhiteSpaceVisibility viewWhitespace
;
58 bool viewIndentationGuides
;
61 ColourPair caretcolour
;
62 ColourPair edgecolour
;
66 ViewStyle(const ViewStyle
&source
);
69 void RefreshColourPalette(Palette
&pal
, bool want
);
70 void Refresh(Surface
&surface
);
71 void ResetDefaultStyle();
73 void SetStyleFontName(int styleIndex
, const char *name
);