]>
git.saurik.com Git - wxWidgets.git/blob - contrib/src/stc/scintilla/src/ViewStyle.h
4436e83ff4057b637c358f622440867a11a95f4e
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
);
32 Style styles
[STYLE_MAX
+ 1];
33 LineMarker markers
[MARKER_MAX
+ 1];
34 Indicator indicators
[INDIC_MAX
+ 1];
36 unsigned int maxAscent
;
37 unsigned int maxDescent
;
38 unsigned int aveCharWidth
;
39 unsigned int spaceWidth
;
41 ColourPair selforeground
;
43 ColourPair selbackground
;
45 ColourPair selbarlight
;
46 // Margins are ordered: Line Numbers, Selection Margin, Spacing Margin
47 int leftMarginWidth
; // Spacing margin on left of text
48 int rightMarginWidth
; // Spacing margin on left of text
51 int maskInLine
; // Mask for markers to be put into text because there is nowhere for them to go in margin
52 MarginStyle ms
[margins
];
58 ColourPair caretcolour
;
59 ColourPair edgecolour
;
62 ViewStyle(const ViewStyle
&source
);
65 void RefreshColourPalette(Palette
&pal
, bool want
);
66 void Refresh(Surface
&surface
);
67 void ResetDefaultStyle();
69 void SetStyleFontName(int styleIndex
, const char *name
);