diff options
author | nyamatongwe <unknown> | 2000-03-08 01:43:56 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-03-08 01:43:56 +0000 |
commit | c196d2fc7c3ece7ccb7d89c425499a75ead7e59b (patch) | |
tree | 3ea3c536f04e88499b86ed82e8a9a457f96b4978 /src/Style.h | |
parent | 7fbd8e2a34d2f5084ce26ad95d7c70ae4de6a233 (diff) | |
download | scintilla-mirror-c196d2fc7c3ece7ccb7d89c425499a75ead7e59b.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 |