diff options
author | Neil <nyamatongwe@gmail.com> | 2015-02-15 23:51:05 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-02-15 23:51:05 +1100 |
commit | deef968ba5e09d5280030aa24251c77cc8b47736 (patch) | |
tree | 8c8364337fab3f874b5180f61a5129b25e4a9a4e /src/Indicator.h | |
parent | a5267eb10508943c36fa2655832778f555f899a2 (diff) | |
download | scintilla-mirror-deef968ba5e09d5280030aa24251c77cc8b47736.tar.gz |
Add SC_INDICFLAG_VALUEFORE and INDIC_TEXTFORE to allow a wide range of indicator
colours and to change the colour of text.
Diffstat (limited to 'src/Indicator.h')
-rw-r--r-- | src/Indicator.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/Indicator.h b/src/Indicator.h index 56777e93e..c22ec71c6 100644 --- a/src/Indicator.h +++ b/src/Indicator.h @@ -34,15 +34,23 @@ public: bool under; int fillAlpha; int outlineAlpha; - Indicator() : under(false), fillAlpha(30), outlineAlpha(50) { + int attributes; + Indicator() : under(false), fillAlpha(30), outlineAlpha(50), attributes(0) { } Indicator(int style_, ColourDesired fore_=ColourDesired(0,0,0), bool under_=false, int fillAlpha_=30, int outlineAlpha_=50) : - sacNormal(style_, fore_), sacHover(style_, fore_), under(under_), fillAlpha(fillAlpha_), outlineAlpha(outlineAlpha_) { + sacNormal(style_, fore_), sacHover(style_, fore_), under(under_), fillAlpha(fillAlpha_), outlineAlpha(outlineAlpha_), attributes(0) { } - void Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine, DrawState drawState) const; + void Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine, DrawState drawState, int value) const; bool IsDynamic() const { return !(sacNormal == sacHover); } + bool OverridesTextFore() const { + return sacNormal.style == INDIC_TEXTFORE || sacHover.style == INDIC_TEXTFORE; + } + int Flags() const { + return attributes; + } + void SetFlags(int attributes_); }; #ifdef SCI_NAMESPACE |