diff options
Diffstat (limited to 'src/Style.h')
| -rw-r--r-- | src/Style.h | 39 | 
1 files changed, 39 insertions, 0 deletions
| diff --git a/src/Style.h b/src/Style.h new file mode 100644 index 000000000..a610ff8ba --- /dev/null +++ b/src/Style.h @@ -0,0 +1,39 @@ +// Scintilla source code edit control +// Style.h - defines the font and colour style for a class of text +// Copyright 1998-2000 by Neil Hodgson <neilh@scintilla.org> +// The License.txt file describes the conditions under which this software may be distributed. + +#ifndef STYLE_H +#define STYLE_H + +class Style { +public: +	ColourPair fore; +	ColourPair back; +	bool aliasOfDefaultFont; +	bool bold; +	bool italic; +	int size; +	const char *fontName; +	bool eolFilled; + +	Font font; +	unsigned int lineHeight; +	unsigned int ascent; +	unsigned int descent; +	unsigned int externalLeading; +	unsigned int aveCharWidth; +	unsigned int spaceWidth; + +	Style(); +	~Style(); +	Style &operator=(const Style &source); +	void Clear(Colour fore_, Colour back_, +           	int size_,  +		const char *fontName_,  +		bool bold_, bool italic_, bool eolFilled_); +	bool EquivalentFontTo(const Style *other) const; +	void Realise(Surface &surface, int zoomLevel, Style *defaultStyle=0); +}; + +#endif | 
