]> git.saurik.com Git - wxWidgets.git/blob - contrib/src/stc/scintilla/src/ViewStyle.h
944872095a4fc28deb0340c76d782184dc4dfbbd
[wxWidgets.git] / contrib / src / stc / scintilla / src / ViewStyle.h
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.
5
6 #ifndef VIEWSTYLE_H
7 #define VIEWSTYLE_H
8
9 class MarginStyle {
10 public:
11 bool symbol;
12 int width;
13 int mask;
14 bool sensitive;
15 MarginStyle();
16 };
17
18 class ViewStyle {
19 public:
20 Style styles[STYLE_MAX + 1];
21 LineMarker markers[MARKER_MAX + 1];
22 Indicator indicators[INDIC_MAX + 1];
23 int lineHeight;
24 unsigned int maxAscent;
25 unsigned int maxDescent;
26 unsigned int aveCharWidth;
27 unsigned int spaceWidth;
28 bool selforeset;
29 ColourPair selforeground;
30 bool selbackset;
31 ColourPair selbackground;
32 ColourPair selbar;
33 ColourPair selbarlight;
34 // Margins are ordered: Line Numbers, Selection Margin, Spacing Margin
35 int leftMarginWidth; // Spacing margin on left of text
36 int rightMarginWidth; // Spacing margin on left of text
37 enum { margins=3 };
38 bool symbolMargin;
39 int maskInLine; // Mask for markers to be put into text because there is nowhere for them to go in margin
40 MarginStyle ms[margins];
41 int fixedColumnWidth;
42 int zoomLevel;
43 bool viewWhitespace;
44 bool viewEOL;
45 bool showMarkedLines;
46 ColourPair caretcolour;
47 ColourPair edgecolour;
48
49 ViewStyle();
50 ViewStyle(const ViewStyle &source);
51 ~ViewStyle();
52 void Init();
53 void RefreshColourPalette(Palette &pal, bool want);
54 void Refresh(Surface &surface);
55 void ResetDefaultStyle();
56 void ClearStyles();
57 };
58
59 #endif