summaryrefslogtreecommitdiff
path: root/glcdskin/object.h
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2011-05-31 01:00:11 +0200
committermrwastl <mrwastl@users.sourceforge.net>2011-05-31 01:00:11 +0200
commit210e29362095a6069e0e3534f6426e39e95026e7 (patch)
tree11b8d84f67a967df6d49c2d62ae7f0e4c30e6c24 /glcdskin/object.h
parent8b7ea2983245e2c2e046054a0acd0995e86e285e (diff)
downloadgraphlcd-base-210e29362095a6069e0e3534f6426e39e95026e7.tar.gz
graphlcd-base-210e29362095a6069e0e3534f6426e39e95026e7.tar.bz2
added text effects (shadow, outline)
Diffstat (limited to 'glcdskin/object.h')
-rw-r--r--glcdskin/object.h11
1 files changed, 11 insertions, 0 deletions
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);