| 325 | } |
| 326 | |
| 327 | void TextField::setText(std::string text) { |
| 328 | if (this->text != text) { |
| 329 | this->text = text; |
| 330 | // ChangeEvent |
| 331 | ChangeEvent eChange; |
| 332 | onChange(eChange); |
| 333 | } |
| 334 | selection = cursor = text.size(); |
| 335 | } |
| 336 | |
| 337 | void TextField::selectAll() { |
| 338 | cursor = text.size(); |