* Changes the color of the text in the list. This doesn't change * the color of existing text, just the color of text added from then on. * @param color Color value. */
| 444 | * @param color Color value. |
| 445 | */ |
| 446 | void TextList::setColor(Uint8 color) |
| 447 | { |
| 448 | _color = color; |
| 449 | _up->setColor(color); |
| 450 | _down->setColor(color); |
| 451 | _scrollbar->setColor(color); |
| 452 | for (std::vector< std::vector<Text*> >::iterator u = _texts.begin(); u < _texts.end(); ++u) |
| 453 | { |
| 454 | for (std::vector<Text*>::iterator v = u->begin(); v < u->end(); ++v) |
| 455 | { |
| 456 | (*v)->setColor(color); |
| 457 | } |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | /** |
| 462 | * Returns the color of the text in the list. |
no outgoing calls
no test coverage detected