summaryrefslogtreecommitdiff
path: root/glcdskin/object.h
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2010-06-27 12:03:20 +0200
committermrwastl <mrwastl@users.sourceforge.net>2010-06-27 12:03:20 +0200
commitd1e66f46673f4ad6c5e3a69652a1def8501b4621 (patch)
tree35b0c9de9cfeaee5e5ec2e54363c99b9d6af4747 /glcdskin/object.h
parente7a6f08bbc22a5cc547303219c384ac9702e3066 (diff)
downloadgraphlcd-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.h9
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);