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