Changeset 63
- Timestamp:
- 05/17/07 11:52:18 (2 years ago)
- Files:
-
- branches/bughunt/docs/minwin/layout.d (modified) (1 diff)
- branches/bughunt/dsss.conf (modified) (1 diff)
- branches/bughunt/minwin/layout.d (modified) (2 diffs)
- branches/bughunt/minwin/logging.d (modified) (1 diff)
- branches/bughunt/samples/tablegrid.d (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/bughunt/docs/minwin/layout.d
r44 r63 63 63 /// Construct a TableLayout with extra width distributed among the columns according to colScales and the extra height among the rows according to rowScales. The scale values must be between 0 and 1 and must total 1. The gap is the space in pixels to leave between children. 64 64 this(double[] colScales, double[] rowScales, int gap = 0); 65 /// Construct a evenly distributed TableLayout with width and height given in cells. The gap is the space in pixels to leave between children. 66 this(int width, int height, int gap = 0); 65 67 /// Position children in the grid starting from the upper left and moving initially along the first row. 66 68 void layout(Component c); branches/bughunt/dsss.conf
r61 r63 17 17 [samples/sdialog.d] 18 18 [samples/sdialog2.d] 19 [samples/tablegrid.d] 19 20 [samples/topgroup.d] 20 21 [samples/widgets.d] branches/bughunt/minwin/layout.d
r33 r63 12 12 public import minwin.component; 13 13 14 private import minwin.logging; 14 import minwin.app; 15 version(LOG) import minwin.logging; 15 16 16 17 interface LayoutManager { … … 223 224 } 224 225 226 this(int width, int height, int gap = 0) { 227 sysAssert(width > 0 && height > 0, "0 or negative passed as width or height to TableLayout"); 228 double dr = 1.0 / height; 229 double dc = 1.0 / width; 230 rowScales = new double[height]; 231 colScales = new double[width]; 232 rowScales[] = dr; 233 colScales[] = dc; 234 this.gap = gap; 235 reset(); 236 } 237 225 238 void reset() { 226 239 prows.length = rowScales.length; branches/bughunt/minwin/logging.d
r33 r63 1 1 module minwin.logging; 2 3 public import std.stream;4 public import std.cstream;5 2 6 3 //version=StdOutLog; 7 4 8 5 version (LOG) { 6 public import std.stream; 7 public import std.cstream; 9 8 Stream log; 10 9 version (StdOutLog) {
