]> git.saurik.com Git - wxWidgets.git/blob - src/stc/scintilla/src/Style.h
Moved from Scintilla version 1.25 to 1.32
[wxWidgets.git] / src / stc / scintilla / src / Style.h
1 // Scintilla source code edit control
2 // Style.h - defines the font and colour style for a class of text
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 STYLE_H
7 #define STYLE_H
8
9 class Style {
10 public:
11 ColourPair fore;
12 ColourPair back;
13 bool aliasOfDefaultFont;
14 bool bold;
15 bool italic;
16 int size;
17 const char *fontName;
18 int characterSet;
19 bool eolFilled;
20 bool underline;
21 bool visible;
22
23 Font font;
24 unsigned int lineHeight;
25 unsigned int ascent;
26 unsigned int descent;
27 unsigned int externalLeading;
28 unsigned int aveCharWidth;
29 unsigned int spaceWidth;
30
31 Style();
32 Style(const Style &source);
33 ~Style();
34 Style &operator=(const Style &source);
35 void Clear(Colour fore_, Colour back_,
36 int size_,
37 const char *fontName_, int characterSet_,
38 bool bold_, bool italic_, bool eolFilled_, bool underline_, bool visible_);
39 bool EquivalentFontTo(const Style *other) const;
40 void Realise(Surface &surface, int zoomLevel, Style *defaultStyle=0);
41 };
42
43 #endif