]> git.tdb.fi Git - libs/gltk.git/commitdiff
Add lexical conversion for the centering constraints
authorMikko Rasa <tdb@tdb.fi>
Thu, 15 Sep 2016 14:53:27 +0000 (17:53 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 15 Sep 2016 14:53:27 +0000 (17:53 +0300)
source/layout.cpp

index ce9c8dcc9831afd3aaf0af1d345d5b40490d35ab..1cf35c722a3a95476532ec1d35898aa7a0e5b903 100644 (file)
@@ -627,10 +627,14 @@ void operator>>(const LexicalConverter &conv, Layout::ConstraintType &ctype)
                ctype = Layout::FAR_LEFT_OF;
        else if(str=="ALIGN_TOP")
                ctype = Layout::ALIGN_TOP;
+       else if(str=="ALIGN_VCENTER")
+               ctype = Layout::ALIGN_VCENTER;
        else if(str=="ALIGN_BOTTOM")
                ctype = Layout::ALIGN_BOTTOM;
        else if(str=="ALIGN_RIGHT")
                ctype = Layout::ALIGN_RIGHT;
+       else if(str=="ALIGN_HCENTER")
+               ctype = Layout::ALIGN_HCENTER;
        else if(str=="ALIGN_LEFT")
                ctype = Layout::ALIGN_LEFT;
        else if(str=="COPY_WIDTH")