From d851d8fe886b2cd8459b63b52043117c9679874e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 8 Mar 2000 01:42:56 +0000 Subject: no message --- src/Style.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/Style.h (limited to 'src/Style.h') 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 +// 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 -- cgit v1.2.3