1 // Scintilla source code edit control
3 ** Defines the font and colour style for a class of text.
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.
17 bool aliasOfDefaultFont
;
25 enum ecaseForced
{caseMixed
, caseUpper
, caseLower
};
26 ecaseForced caseForce
;
33 unsigned int lineHeight
;
36 unsigned int externalLeading
;
37 unsigned int aveCharWidth
;
38 unsigned int spaceWidth
;
41 Style(const Style
&source
);
43 Style
&operator=(const Style
&source
);
44 void Clear(ColourDesired fore_
, ColourDesired back_
,
46 const char *fontName_
, int characterSet_
,
47 bool bold_
, bool italic_
, bool eolFilled_
,
48 bool underline_
, ecaseForced caseForce_
,
49 bool visible_
, bool changeable_
, bool hotspot_
);
50 void ClearTo(const Style
&source
);
51 bool EquivalentFontTo(const Style
*other
) const;
52 void Realise(Surface
&surface
, int zoomLevel
, Style
*defaultStyle
= 0, bool extraFontFlag
= false);
53 bool IsProtected() const { return !(changeable
&& visible
);};