From 210e29362095a6069e0e3534f6426e39e95026e7 Mon Sep 17 00:00:00 2001 From: mrwastl Date: Tue, 31 May 2011 01:00:11 +0200 Subject: added text effects (shadow, outline) --- glcdskin/object.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'glcdskin/object.h') diff --git a/glcdskin/object.h b/glcdskin/object.h index cb5f35a..5131cd4 100644 --- a/glcdskin/object.h +++ b/glcdskin/object.h @@ -60,6 +60,14 @@ enum eTextVerticalAlignment tvaBottom }; +enum eEffect +{ + tfxNone, + tfxShadow, + tfxOutline +}; + + class cSkinColor { @@ -130,6 +138,8 @@ private: cSkinString mFont; cSkinString mText; cSkinFunction * mCondition; + eEffect mEffect; // effect: none, shadow, or outline + cSkinColor mEffectColor; // effect colour (= shadow colour or colour of outline) uint64_t mLastChange; // timestamp: last change in dynamic object (scroll, frame change, ...) int mChangeDelay; // delay between two changes (frame change, scrolling, ...) @@ -162,6 +172,7 @@ public: bool ParseCondition(const std::string &Text); bool ParseAlignment(const std::string &Text); bool ParseVerticalAlignment(const std::string &Text); + bool ParseEffect(const std::string &Text); bool ParseFontFace(const std::string &Text); bool ParseIntParam(const std::string &Text, int & Param); bool ParseWidth(const std::string &Text); -- cgit v1.2.3