--------------------------------------------------------------------------
| 625 | |
| 626 | //-------------------------------------------------------------------------- |
| 627 | bool GuiMLTextCtrl::setCursorPosition(const S32 newPosition) |
| 628 | { |
| 629 | if (newPosition < 0) |
| 630 | { |
| 631 | mCursorPosition = 0; |
| 632 | return true; |
| 633 | } |
| 634 | else if (newPosition >= mTextBuffer.length() - 1) |
| 635 | { |
| 636 | mCursorPosition = mTextBuffer.length(); |
| 637 | return true; |
| 638 | } |
| 639 | else |
| 640 | { |
| 641 | mCursorPosition = newPosition; |
| 642 | return false; |
| 643 | } |
| 644 | } |
| 645 | |
| 646 | //-------------------------------------------------------------------------- |
| 647 | void GuiMLTextCtrl::ensureCursorOnScreen() |
no test coverage detected