diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2010-06-27 12:03:20 +0200 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2010-06-27 12:03:20 +0200 |
commit | d1e66f46673f4ad6c5e3a69652a1def8501b4621 (patch) | |
tree | 35b0c9de9cfeaee5e5ec2e54363c99b9d6af4747 /glcdskin/object.h | |
parent | e7a6f08bbc22a5cc547303219c384ac9702e3066 (diff) | |
download | graphlcd-base-d1e66f46673f4ad6c5e3a69652a1def8501b4621.tar.gz graphlcd-base-d1e66f46673f4ad6c5e3a69652a1def8501b4621.tar.bz2 |
added new attribute 'valign' (vertical alignment) for text objects. format: valign="top|middle|bottom", default: "top"; changed debug output information to print 'graphlcd/skin' instead of 'Text2Skin'
Diffstat (limited to 'glcdskin/object.h')
-rw-r--r-- | glcdskin/object.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/glcdskin/object.h b/glcdskin/object.h index 2e05a12..0dd996d 100644 --- a/glcdskin/object.h +++ b/glcdskin/object.h @@ -51,6 +51,13 @@ enum eTextAlignment taRight }; +enum eTextVerticalAlignment +{ + tvaTop, + tvaMiddle, + tvaBottom +}; + class cSkinObject { friend bool StartElem(const std::string & name, std::map<std::string,std::string> & attrs); @@ -88,6 +95,7 @@ private: int mArc; int mDirection; eTextAlignment mAlign; + eTextVerticalAlignment mVerticalAlign; bool mMultiline; cSkinString mPath; cSkinString mCurrent; @@ -125,6 +133,7 @@ public: bool ParseColor(const std::string &Text); bool ParseCondition(const std::string &Text); bool ParseAlignment(const std::string &Text); + bool ParseVerticalAlignment(const std::string &Text); bool ParseFontFace(const std::string &Text); bool ParseIntParam(const std::string &Text, int & Param); bool ParseWidth(const std::string &Text); |