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.
39
const char *Save(const char *name);
42
enum IndentView {ivNone, ivReal, ivLookForward, ivLookBoth};
44
enum WhiteSpaceVisibility {wsInvisible=0, wsVisibleAlways=1, wsVisibleAfterIndent=2};
53
LineMarker markers[MARKER_MAX + 1];
54
Indicator indicators[INDIC_MAX + 1];
56
unsigned int maxAscent;
57
unsigned int maxDescent;
58
unsigned int aveCharWidth;
59
unsigned int spaceWidth;
61
ColourPair selforeground;
62
ColourPair selAdditionalForeground;
64
ColourPair selbackground;
65
ColourPair selAdditionalBackground;
66
ColourPair selbackground2;
68
int selAdditionalAlpha;
70
bool whitespaceForegroundSet;
71
ColourPair whitespaceForeground;
72
bool whitespaceBackgroundSet;
73
ColourPair whitespaceBackground;
75
ColourPair selbarlight;
76
bool foldmarginColourSet;
77
ColourPair foldmarginColour;
78
bool foldmarginHighlightColourSet;
79
ColourPair foldmarginHighlightColour;
80
bool hotspotForegroundSet;
81
ColourPair hotspotForeground;
82
bool hotspotBackgroundSet;
83
ColourPair hotspotBackground;
84
bool hotspotUnderline;
85
bool hotspotSingleLine;
86
/// Margins are ordered: Line Numbers, Selection Margin, Spacing Margin
88
int leftMarginWidth; ///< Spacing margin on left of text
89
int rightMarginWidth; ///< Spacing margin on left of text
91
int maskInLine; ///< Mask for markers to be put into text because there is nowhere for them to go in margin
92
MarginStyle ms[margins];
95
WhiteSpaceVisibility viewWhitespace;
97
IndentView viewIndentationGuides;
100
ColourPair caretcolour;
101
ColourPair additionalCaretColour;
102
bool showCaretLineBackground;
103
ColourPair caretLineBackground;
105
ColourPair edgecolour;
109
bool someStylesProtected;
110
bool someStylesForceCase;
114
int marginStyleOffset;
115
int annotationVisible;
116
int annotationStyleOffset;
119
ViewStyle(const ViewStyle &source);
121
void Init(size_t stylesSize_=64);
122
void RefreshColourPalette(Palette &pal, bool want);
123
void Refresh(Surface &surface);
124
void AllocStyles(size_t sizeNew);
125
void EnsureStyle(size_t index);
126
void ResetDefaultStyle();
128
void SetStyleFontName(int styleIndex, const char *name);
129
bool ProtectionActive() const;
130
bool ValidStyle(size_t styleIndex) const;