]> git.saurik.com Git - wxWidgets.git/blob - src/stc/scintilla/src/Style.h
dc643d08d2c43a1ad757c0f2640365476dfcd793
[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
22 Font font;
23 unsigned int lineHeight;
24 unsigned int ascent;
25 unsigned int descent;
26 unsigned int externalLeading;
27 unsigned int aveCharWidth;
28 unsigned int spaceWidth;
29
30 Style();
31 Style(const Style &source);
32 ~Style();
33 Style &operator=(const Style &source);
34 void Clear(Colour fore_, Colour back_,
35 int size_,
36 const char *fontName_, int characterSet_,
37 bool bold_, bool italic_, bool eolFilled_, bool underline_);
38 bool EquivalentFontTo(const Style *other) const;
39 void Realise(Surface &surface, int zoomLevel, Style *defaultStyle=0);
40 };
41
42 #endif