Mercurial > projects > mde
comparison mde/gui/widget/Widget.d @ 66:f54ae4fc2b2f
Replaced IWidget.getMinimalSize(out w,out h) with minWidth() and minHeight().
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Wed, 02 Jul 2008 17:10:07 +0100 |
parents | 891211f034f2 |
children | 25cb7420dc91 |
comparison
equal
deleted
inserted
replaced
65:891211f034f2 | 66:f54ae4fc2b2f |
---|---|
60 //BEGIN Size and position | 60 //BEGIN Size and position |
61 bool isWSizable () { return false; } | 61 bool isWSizable () { return false; } |
62 bool isHSizable () { return false; } | 62 bool isHSizable () { return false; } |
63 | 63 |
64 /* Return minimal/fixed size. */ | 64 /* Return minimal/fixed size. */ |
65 void getMinimalSize (out wdim a, out wdim b) { | 65 wdim minWidth () { |
66 a = mw; | 66 return mw; |
67 b = mh; | 67 } |
68 wdim minHeight () { | |
69 return mh; | |
68 } | 70 } |
69 | 71 |
70 void getCurrentSize (out wdim cw, out wdim ch) { | 72 void getCurrentSize (out wdim cw, out wdim ch) { |
71 cw = w; | 73 cw = w; |
72 ch = h; | 74 ch = h; |