* redraw all the text-type surfaces. */
| 315 | * redraw all the text-type surfaces. |
| 316 | */ |
| 317 | void State::redrawText() |
| 318 | { |
| 319 | for (std::vector<Surface*>::iterator i = _surfaces.begin(); i != _surfaces.end(); ++i) |
| 320 | { |
| 321 | Text* text = dynamic_cast<Text*>(*i); |
| 322 | TextButton* button = dynamic_cast<TextButton*>(*i); |
| 323 | TextEdit* edit = dynamic_cast<TextEdit*>(*i); |
| 324 | TextList* list = dynamic_cast<TextList*>(*i); |
| 325 | if (text || button || edit || list) |
| 326 | { |
| 327 | (*i)->draw(); |
| 328 | } |
| 329 | } |
| 330 | } |
| 331 | |
| 332 | /** |
| 333 | * Changes the current modal surface. If a surface is modal, |