Update the character iter after the text has changed. */
| 288 | |
| 289 | /** Update the character iter after the text has changed. */ |
| 290 | void Textbuf::UpdateStringIter() |
| 291 | { |
| 292 | this->char_iter->SetString(this->buf); |
| 293 | size_t pos = this->char_iter->SetCurPosition(this->caretpos); |
| 294 | this->caretpos = pos == StringIterator::END ? 0 : (uint16_t)pos; |
| 295 | } |
| 296 | |
| 297 | /** Update pixel width of the text. */ |
| 298 | void Textbuf::UpdateWidth() |
no test coverage detected