1 // Scintilla source code edit control
3 ** Store information on how the document is to be viewed.
5 // Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
6 // The License.txt file describes the conditions under which this software may be distributed.
26 char *names
[STYLE_MAX
+ 1];
33 const char *Save(const char *name
);
36 enum WhiteSpaceVisibility
{wsInvisible
=0, wsVisibleAlways
=1, wsVisibleAfterIndent
=2};
43 Style styles
[STYLE_MAX
+ 1];
44 LineMarker markers
[MARKER_MAX
+ 1];
45 Indicator indicators
[INDIC_MAX
+ 1];
47 unsigned int maxAscent
;
48 unsigned int maxDescent
;
49 unsigned int aveCharWidth
;
50 unsigned int spaceWidth
;
52 ColourPair selforeground
;
54 ColourPair selbackground
;
55 ColourPair selbackground2
;
57 ColourPair selbarlight
;
58 /// Margins are ordered: Line Numbers, Selection Margin, Spacing Margin
60 int leftMarginWidth
; ///< Spacing margin on left of text
61 int rightMarginWidth
; ///< Spacing margin on left of text
63 int maskInLine
; ///< Mask for markers to be put into text because there is nowhere for them to go in margin
64 MarginStyle ms
[margins
];
67 WhiteSpaceVisibility viewWhitespace
;
68 bool viewIndentationGuides
;
71 ColourPair caretcolour
;
72 bool showCaretLineBackground
;
73 ColourPair caretLineBackground
;
74 ColourPair edgecolour
;
79 ViewStyle(const ViewStyle
&source
);
82 void RefreshColourPalette(Palette
&pal
, bool want
);
83 void Refresh(Surface
&surface
);
84 void ResetDefaultStyle();
86 void SetStyleFontName(int styleIndex
, const char *name
);