From: Mikko Rasa Date: Thu, 15 Sep 2016 14:53:27 +0000 (+0300) Subject: Add lexical conversion for the centering constraints X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=commitdiff_plain;h=58d820ce194de4e78e4718f7cee2159ee0a64925 Add lexical conversion for the centering constraints --- diff --git a/source/layout.cpp b/source/layout.cpp index ce9c8dc..1cf35c7 100644 --- a/source/layout.cpp +++ b/source/layout.cpp @@ -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")