* Changes the columns that the list contains. * While rows can be unlimited, columns need to be specified * since they can have various widths for lining up the text. * @param cols Number of columns. * @param ... Width of each column. */
| 356 | * @param ... Width of each column. |
| 357 | */ |
| 358 | void TextList::setColumns(int cols, ...) |
| 359 | { |
| 360 | va_list args; |
| 361 | va_start(args, cols); |
| 362 | |
| 363 | for (int i = 0; i < cols; ++i) |
| 364 | { |
| 365 | _columns.push_back(va_arg(args, int)); |
| 366 | } |
| 367 | |
| 368 | va_end(args); |
| 369 | } |
| 370 | |
| 371 | /** |
| 372 | * Replaces a certain amount of colors in the palette of all |
no outgoing calls