diff options
Diffstat (limited to 'glcdskin/object.h')
-rw-r--r-- | glcdskin/object.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/glcdskin/object.h b/glcdskin/object.h index 694d552..cb2f180 100644 --- a/glcdskin/object.h +++ b/glcdskin/object.h @@ -76,6 +76,14 @@ enum eScale tscFill }; +enum eGradient +{ + tgrdNone, + tgrdTotal, + tgrdCurrent, + tgrdVertical +}; + class cSkinColor @@ -156,7 +164,8 @@ private: cSkinFunction * mCondition; eEffect mEffect; // effect: none, shadow, or outline cSkinColor mEffectColor; // effect colour (= shadow colour or colour of outline) - cSkinColor mPeakColor; // colour of peak marker + cSkinColor mPeakGradientColor; // colour of peak marker or gradient color (mutual exclusive) + eGradient mGradient; // use gradient effect for progress bar (overrules peak!) uint64_t mLastChange; // timestamp: last change in dynamic object (scroll, frame change, ...) int mChangeDelay; // delay between two changes (frame change, scrolling, ...) @@ -196,6 +205,7 @@ public: bool ParseVerticalAlignment(const std::string &Text); bool ParseEffect(const std::string &Text); bool ParseScale(const std::string &Text); + bool ParseGradient(const std::string &Text); bool ParseFontFace(const std::string &Text); bool ParseIntParam(const std::string &Text, int & Param); //bool ParseWidth(const std::string &Text); |