Kaydet (Commit) a6023391 authored tarafından Caolán McNamara's avatar Caolán McNamara

map justification property to alignment bits

Change-Id: I7d1494430cbc75cfb831dfe5500a0c3e6c9147fa
üst ca776f34
...@@ -1906,6 +1906,20 @@ bool Window::set_property(const OString &rKey, const OString &rValue) ...@@ -1906,6 +1906,20 @@ bool Window::set_property(const OString &rKey, const OString &rValue)
SetStyle(nBits); SetStyle(nBits);
} }
else if (rKey == "justification")
{
WinBits nBits = GetStyle();
nBits &= ~(WB_LEFT | WB_CENTER | WB_RIGHT);
if (rValue == "left")
nBits |= WB_LEFT;
else if (rValue == "right")
nBits |= WB_RIGHT;
else if (rValue == "center")
nBits |= WB_CENTER;
SetStyle(nBits);
}
else if (rKey == "yalign") else if (rKey == "yalign")
{ {
WinBits nBits = GetStyle(); WinBits nBits = GetStyle();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment