Home | History | Annotate | Download | only in layout

Lines Matching defs:Column

27     // Reset the layout width of each column.
38 // Reset the layout width of each column.
153 // Column -------------------------------------------------------------
155 // As the name implies, this represents a Column. Column contains default
156 // values for views originating in this column.
157 class Column : public LayoutElement {
159 Column(GridLayout::Alignment h_align,
176 virtual ~Column() {}
187 Column* GetLastMasterColumn();
189 // Determines the max size of all linked columns, and sets each column
190 // to that size. This should only be used for the master column.
205 // master column. The master column is identified by the
209 // are not the master column have their master_column pointing to
211 // to resolve the true master column.
212 std::vector<Column*> same_size_columns_;
213 Column* master_column_;
215 DISALLOW_COPY_AND_ASSIGN(Column);
218 void Column::ResetSize() {
226 Column* Column::GetLastMasterColumn() {
236 void Column::UnifySameSizedColumnSizes() {
241 for (std::vector<Column*>::iterator i = same_size_columns_.begin();
247 for (std::vector<Column*>::iterator i = same_size_columns_.begin();
253 void Column::AdjustSize(int size) {
298 // The column set used for this row; null for padding rows.
416 Column* column = new Column(h_align, v_align, resize_percent, size_type,
418 columns_.push_back(column);
431 for (std::vector<Column*>::iterator i = columns_.begin();
433 Column* column = *i;
434 int same_size_column_index = column->same_size_column_;
438 Column* master_column = column->master_column_;
439 Column* same_size_column = columns_[same_size_column_index];
440 Column* same_size_column_master = same_size_column->master_column_;
442 // Current column is not linked to any other column.
445 column->master_column_ = column;
446 same_size_column->master_column_ = column;
447 column->same_size_columns_.push_back(same_size_column);
448 column->same_size_columns_.push_back(column);
450 // Column to link to is linked with other columns.
451 // Add current column to list of linked columns in other columns
452 // master column.
454 same_size_columns_.push_back(column);
455 // And update the master column for the current column to that
456 // of the same sized column.
457 column->master_column_ = same_size_column;
460 // Current column is already linked with another column.
462 // Column to link with is not linked to any other columns.
464 same_size_column->master_column_ = column;
465 // Add linked column to list of linked column.
466 column->GetLastMasterColumn()->same_size_columns_.
468 } else if (column->GetLastMasterColumn() !=
471 std::vector<Column*>* same_size_columns =
472 &(column->GetLastMasterColumn()->same_size_columns_);
473 std::vector<Column*>* other_same_size_columns =
483 same_size_column->GetLastMasterColumn()->master_column_ = column;
493 for (std::vector<Column*>::iterator i = columns_.begin();
495 Column* column = *i;
496 Column* master_column = column->GetLastMasterColumn();
505 column->master_column_ = master_column;
510 for (std::vector<Column*>::iterator i = master_columns_.begin();
553 // width is distributed using the resize values of each column.
582 for (std::vector<Column*>::iterator i = columns_.begin();
623 Column* column = columns_[view_state->start_col];
624 column->AdjustSize(view_state->pref_width);
625 view_state->remaining_width -= column->Size();
631 // Distribute the size of each view with a column span > 1.
734 Column* column = current_row_col_set_->columns_[next_column_];
735 AddView(view, col_span, row_span, column->h_align(), column->v_align());
800 // SizeRowsAndColumns sets the size and location of each row/column, but
987 // column set for each of the rows the view lands it. This DCHECK verifies
1027 // Give all slop to the last column.