Update Scintilla to 3.5.1 pre-release
[geany-mirror.git] / scintilla / src / Indicator.h
blob96cba3c0548f71a5b49f01a2f908445501f9c8a6
1 // Scintilla source code edit control
2 /** @file Indicator.h
3 ** Defines the style of indicators which are text decorations such as underlining.
4 **/
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.
8 #ifndef INDICATOR_H
9 #define INDICATOR_H
11 #ifdef SCI_NAMESPACE
12 namespace Scintilla {
13 #endif
15 /**
17 class Indicator {
18 public:
19 int style;
20 ColourDesired fore;
21 bool under;
22 int fillAlpha;
23 int outlineAlpha;
24 Indicator() : style(INDIC_PLAIN), fore(ColourDesired(0,0,0)), under(false), fillAlpha(30), outlineAlpha(50) {
26 Indicator(int style_, ColourDesired fore_=ColourDesired(0,0,0), bool under_=false, int fillAlpha_=30, int outlineAlpha_=50) :
27 style(style_), fore(fore_), under(under_), fillAlpha(fillAlpha_), outlineAlpha(outlineAlpha_) {
29 void Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine) const;
32 #ifdef SCI_NAMESPACE
34 #endif
36 #endif