Mercurial > projects > dynamin
comparison dynamin/gui/layout.d @ 100:4f2d709760eb
Change from individual fields to a static array for x, y, width, height, etc.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Tue, 15 May 2012 15:17:24 -0500 |
parents | 2e466b478c0b |
children | 73060bc3f004 |
comparison
equal
deleted
inserted
replaced
99:8daa63a28707 | 100:4f2d709760eb |
---|---|
261 struct TableInfo { | 261 struct TableInfo { |
262 // number of semi-elastic columns/rows | 262 // number of semi-elastic columns/rows |
263 int semiColumns = 0; int semiRows = 0; | 263 int semiColumns = 0; int semiRows = 0; |
264 // the sum of fully elastic width/height, not including semi | 264 // the sum of fully elastic width/height, not including semi |
265 real elasticWidth = 0, elasticHeight = 0; | 265 real elasticWidth = 0, elasticHeight = 0; |
266 Size bestSize = Size(0, 0); | 266 Size bestSize; |
267 } | 267 } |
268 //{{{ getTableSizes() | 268 //{{{ getTableSizes() |
269 // Fills in the passed in array with the column and row sizes, as well | 269 // Fills in the passed in array with the column and row sizes, as well |
270 // as whether they are elastic. The passed in arrays must be the right | 270 // as whether they are elastic. The passed in arrays must be the right |
271 // sizes. They may be stack allocated. The table best size does | 271 // sizes. They may be stack allocated. The table best size does |