Mercurial > projects > mde
comparison mde/gui/widget/ParentContent.d @ 174:3d58adc17d20
Temporary commit to allow backup
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Mon, 31 Aug 2009 13:54:23 +0200 |
parents | a1ba9157510e |
children | 1cbde9807293 |
comparison
equal
deleted
inserted
replaced
173:a1ba9157510e | 174:3d58adc17d20 |
---|---|
466 return this; | 466 return this; |
467 } | 467 } |
468 | 468 |
469 protected: | 469 protected: |
470 invariant { | 470 invariant { |
471 // this() calls makeWidget() which calls recursionCheck(); invariant is called at this point before this() finishes | 471 /+TODO |
472 if (subWidgets.length) { | 472 assert (subWidgets.length == 1); |
473 assert (subWidgets.length == 1); | 473 assert (mw == subWidgets[0].minWidth + border.x1 + border.x2); |
474 assert (mw == subWidgets[0].minWidth + border.x1 + border.x2); | 474 assert (mh == subWidgets[0].minHeight + border.y1 + border.y2); |
475 assert (mh == subWidgets[0].minHeight + border.y1 + border.y2); | 475 +/ |
476 } | |
477 } | 476 } |
478 | 477 |
479 alias IRenderer.Border.BTYPE BTYPE; | 478 alias IRenderer.Border.BTYPE BTYPE; |
480 alias IRenderer.Border.RESIZE RESIZE; | 479 alias IRenderer.Border.RESIZE RESIZE; |
481 BTYPE borderType; // what type of border to put around the widget | 480 BTYPE borderType; // what type of border to put around the widget |