void tbuilder_grid::build(tgrid& grid, const treplacements& replacements) const { grid.set_id(id); grid.set_linked_group(linked_group); grid.set_rows_cols(rows, cols); log_scope2(log_gui_general, "Window builder: building grid"); DBG_GUI_G << "Window builder: grid '" << id << "' has " << rows << " rows and " << cols << " columns.\n"; for(unsigned x = 0; x < rows; ++x) { grid.set_row_grow_factor(x, row_grow_factor[x]); for(unsigned y = 0; y < cols; ++y) { if(x == 0) { grid.set_column_grow_factor(y, col_grow_factor[y]); } DBG_GUI_G << "Window builder: adding child at " << x << ',' << y << ".\n"; grid.set_child(widgets[x * cols + y]->build(replacements), x, y, flags[x * cols + y], border_size[x * cols + y]); } } }