2005-11-22 12:26:26 +00:00
|
|
|
// Scintilla source code edit control
|
|
|
|
/** @file Indicator.h
|
|
|
|
** Defines the style of indicators which are text decorations such as underlining.
|
|
|
|
**/
|
|
|
|
// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
|
|
|
|
// The License.txt file describes the conditions under which this software may be distributed.
|
|
|
|
|
|
|
|
#ifndef INDICATOR_H
|
|
|
|
#define INDICATOR_H
|
|
|
|
|
2007-06-18 13:02:34 +00:00
|
|
|
#ifdef SCI_NAMESPACE
|
|
|
|
namespace Scintilla {
|
|
|
|
#endif
|
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
/**
|
|
|
|
*/
|
|
|
|
class Indicator {
|
|
|
|
public:
|
|
|
|
int style;
|
2012-06-26 20:48:16 +02:00
|
|
|
ColourDesired fore;
|
2014-09-26 00:09:04 +02:00
|
|
|
bool under;
|
2009-05-03 17:49:33 +00:00
|
|
|
int fillAlpha;
|
2011-10-18 15:51:50 +02:00
|
|
|
int outlineAlpha;
|
2014-09-26 00:09:04 +02:00
|
|
|
Indicator() : style(INDIC_PLAIN), fore(ColourDesired(0,0,0)), under(false), fillAlpha(30), outlineAlpha(50) {
|
|
|
|
}
|
|
|
|
Indicator(int style_, ColourDesired fore_=ColourDesired(0,0,0), bool under_=false, int fillAlpha_=30, int outlineAlpha_=50) :
|
|
|
|
style(style_), fore(fore_), under(under_), fillAlpha(fillAlpha_), outlineAlpha(outlineAlpha_) {
|
2005-11-22 12:26:26 +00:00
|
|
|
}
|
2014-07-04 03:06:17 +02:00
|
|
|
void Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine) const;
|
2005-11-22 12:26:26 +00:00
|
|
|
};
|
|
|
|
|
2007-06-18 13:02:34 +00:00
|
|
|
#ifdef SCI_NAMESPACE
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
#endif
|