diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2011-10-15 18:41:49 +0200 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2011-10-15 18:41:49 +0200 |
commit | cb4534730274a32e7c4e64c7f282bd258375b1f9 (patch) | |
tree | e14bfcce71b13d802a31cdae9ed7b43cff9dc1b1 /glcdskin/object.h | |
parent | ab3acde2326a9d8f942995325b71b3aeaf24b918 (diff) | |
download | graphlcd-base-cb4534730274a32e7c4e64c7f282bd258375b1f9.tar.gz graphlcd-base-cb4534730274a32e7c4e64c7f282bd258375b1f9.tar.bz2 |
support for scaling of images (image/graphicsmagick supported images only at the moment); skins: additional paraemter 'scale' for <image/>; added method for emptying of image cache (cImageCache::Clear())
Diffstat (limited to 'glcdskin/object.h')
-rw-r--r-- | glcdskin/object.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/glcdskin/object.h b/glcdskin/object.h index ec8027b..a82bedb 100644 --- a/glcdskin/object.h +++ b/glcdskin/object.h @@ -67,6 +67,14 @@ enum eEffect tfxOutline }; +enum eScale +{ + tscNone, + tscAutoX, + tscAutoY, + tscFill +}; + class cSkinColor @@ -157,6 +165,7 @@ private: std::string mStoredImagePath; // stored image path int mImageFrameId; // frame ID of image int mOpacity; // opacity of an image ([0, 255], default 255) + eScale mScale; // image scaling (['none', 'autox', 'autoy', 'fill'], default: none) int mScrollLoopMode; // scroll (text) or loop (image) mode: -1: default, 0: never, 1: once, 2: always bool mScrollLoopReached; // if scroll/loop == once: already looped once? @@ -185,6 +194,7 @@ public: bool ParseAlignment(const std::string &Text); bool ParseVerticalAlignment(const std::string &Text); bool ParseEffect(const std::string &Text); + bool ParseScale(const std::string &Text); bool ParseFontFace(const std::string &Text); bool ParseIntParam(const std::string &Text, int & Param); //bool ParseWidth(const std::string &Text); |