1 // Scintilla source code edit control
\r
3 ** Defines the font and colour style for a class of text.
\r
5 // Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
\r
6 // The License.txt file describes the conditions under which this software may be distributed.
\r
11 #ifdef SCI_NAMESPACE
\r
12 namespace Scintilla {
\r
21 bool aliasOfDefaultFont;
\r
25 const char *fontName;
\r
29 enum ecaseForced {caseMixed, caseUpper, caseLower};
\r
30 ecaseForced caseForce;
\r
37 unsigned int lineHeight;
\r
38 unsigned int ascent;
\r
39 unsigned int descent;
\r
40 unsigned int externalLeading;
\r
41 unsigned int aveCharWidth;
\r
42 unsigned int spaceWidth;
\r
45 Style(const Style &source);
\r
47 Style &operator=(const Style &source);
\r
48 void Clear(ColourDesired fore_, ColourDesired back_,
\r
50 const char *fontName_, int characterSet_,
\r
51 bool bold_, bool italic_, bool eolFilled_,
\r
52 bool underline_, ecaseForced caseForce_,
\r
53 bool visible_, bool changeable_, bool hotspot_);
\r
54 void ClearTo(const Style &source);
\r
55 bool EquivalentFontTo(const Style *other) const;
\r
56 void Realise(Surface &surface, int zoomLevel, Style *defaultStyle = 0, bool extraFontFlag = false);
\r
57 bool IsProtected() const { return !(changeable && visible);};
\r
60 #ifdef SCI_NAMESPACE
\r