]> git.saurik.com Git - wxWidgets.git/blob - src/stc/scintilla/src/Style.h
fix for a typo (== instead of =)
[wxWidgets.git] / src / stc / scintilla / src / Style.h
1 // Scintilla source code edit control
2 /** @file Style.h
3 ** Defines the font and colour style for a class of text.
4 **/
5 // Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
6 // The License.txt file describes the conditions under which this software may be distributed.
7
8 #ifndef STYLE_H
9 #define STYLE_H
10
11 /**
12 */
13 class Style {
14 public:
15 ColourPair fore;
16 ColourPair back;
17 bool aliasOfDefaultFont;
18 bool bold;
19 bool italic;
20 int size;
21 const char *fontName;
22 int characterSet;
23 bool eolFilled;
24 bool underline;
25 enum ecaseForced {caseMixed, caseUpper, caseLower};
26 ecaseForced caseForce;
27 bool visible;
28
29 Font font;
30 int sizeZoomed;
31 unsigned int lineHeight;
32 unsigned int ascent;
33 unsigned int descent;
34 unsigned int externalLeading;
35 unsigned int aveCharWidth;
36 unsigned int spaceWidth;
37
38 Style();
39 Style(const Style &source);
40 ~Style();
41 Style &operator=(const Style &source);
42 void Clear(Colour fore_, Colour back_,
43 int size_,
44 const char *fontName_, int characterSet_,
45 bool bold_, bool italic_, bool eolFilled_,
46 bool underline_, ecaseForced caseForce_, bool visible_);
47 void ClearTo(const Style &source);
48 bool EquivalentFontTo(const Style *other) const;
49 void Realise(Surface &surface, int zoomLevel, Style *defaultStyle = 0);
50 };
51
52 #endif