Mercurial > projects > mde
comparison mde/gui/widget/layout.d @ 136:4084f07f2c7a
Added simpler mergetag readers and writers, with unittest.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sun, 01 Feb 2009 12:36:21 +0000 |
parents | 9fd705793568 |
children | 9f035cd139c6 |
comparison
equal
deleted
inserted
replaced
135:bc697a218716 | 136:4084f07f2c7a |
---|---|
911 | 911 |
912 b.setup (0,3); | 912 b.setup (0,3); |
913 b.spacing = 2; | 913 b.spacing = 2; |
914 foreach (ref wd; b.minWidth) | 914 foreach (ref wd; b.minWidth) |
915 wd = 10; | 915 wd = 10; |
916 b.sizable[1] = b.sizable[3] = true; | 916 b.sizable = [false, true, false, true, false]; |
917 b.setWidths; | 917 b.setWidths; |
918 assert (b.w == 58); | 918 assert (b.w == 58); |
919 | 919 |
920 assert (b.resizeWidth (60, -1) == 60); | 920 assert (b.resizeWidth (60, -1) == 60); |
921 assert (b.width[3] == 12); | 921 assert (b.width[3] == 12); |