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