Mercurial > projects > dynamin
diff dynamin/gui/x_window.d @ 106:acdbb30fee7e
Port to D2.
Most of the effort was dealing with immutable and const.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Mon, 17 Dec 2012 23:41:50 -0600 |
parents | 73060bc3f004 |
children |
line wrap: on
line diff
--- a/dynamin/gui/x_window.d Sat Nov 24 10:21:50 2012 -0600 +++ b/dynamin/gui/x_window.d Mon Dec 17 23:41:50 2012 -0600 @@ -185,7 +185,7 @@ return x2 <= x1 + width1 && y2 <= y1 + height1 && x2 + width2 >= x1 && y2 + height2 >= y1; } - void join(inout int x, inout int y, inout int width, inout int height, + void join(ref int x, ref int y, ref int width, ref int height, int x2, int y2, int width2, int height2) { auto minx = min(x, x2); auto miny = min(y, y2); @@ -695,7 +695,7 @@ backend_updateWM_NORMAL_HINTS(); backend_locationSizeToNative(); } - void backend_text(string str) { + void backend_text(mstring str) { //auto tmp = str.ToCharPtr(); //XTextProperty strProperty; //if(!XStringListToTextProperty(&tmp, 1, &strProperty))