]> git.saurik.com Git - wxWidgets.git/blob - contrib/src/stc/scintilla/src/Style.h
916b646315bbbcf4fe02a4b50ce309523374fb5d
[wxWidgets.git] / contrib / 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 bold;
14 bool italic;
15 int size;
16 char fontName[100];
17 bool eolFilled;
18
19 Font font;
20 unsigned int lineHeight;
21 unsigned int ascent;
22 unsigned int descent;
23 unsigned int externalLeading;
24 unsigned int aveCharWidth;
25 unsigned int spaceWidth;
26
27 Style();
28 ~Style();
29 Style &operator=(const Style &source);
30 void Clear(Colour fore_=Colour(0,0,0), Colour back_=Colour(0xff,0xff,0xff),
31 int size_=Platform::DefaultFontSize(),
32 const char *fontName_=Platform::DefaultFont(),
33 bool bold_=false, bool italic_=false, bool eolFilled_=false);
34 void Realise(Surface &surface, int zoomLevel);
35 };
36
37 #endif