aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Indicator.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-02-15 23:51:05 +1100
committerNeil <nyamatongwe@gmail.com>2015-02-15 23:51:05 +1100
commitdeef968ba5e09d5280030aa24251c77cc8b47736 (patch)
tree8c8364337fab3f874b5180f61a5129b25e4a9a4e /src/Indicator.h
parenta5267eb10508943c36fa2655832778f555f899a2 (diff)
downloadscintilla-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.h14
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