diff options
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 |