diff options
| author | nyamatongwe <devnull@localhost> | 2000-03-08 01:43:56 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2000-03-08 01:43:56 +0000 | 
| commit | d9633124c20ad762ac16a9eb692d6e388fe75a11 (patch) | |
| tree | 3ea3c536f04e88499b86ed82e8a9a457f96b4978 /src/Style.h | |
| parent | 25019a2eed18227eea1db18f6d52d4c5c44a2283 (diff) | |
| download | scintilla-mirror-d9633124c20ad762ac16a9eb692d6e388fe75a11.tar.gz | |
Initial revision
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  | 
