--------------------------------------------------------------------------
| 1037 | |
| 1038 | //-------------------------------------------------------------------------- |
| 1039 | void GuiMLTextCtrl::scrollToBottom() |
| 1040 | { |
| 1041 | // If the parent control is not a GuiScrollContentCtrl, then this call is invalid: |
| 1042 | GuiScrollCtrl *pappy = dynamic_cast<GuiScrollCtrl*>(getParent()); |
| 1043 | if ( !pappy ) |
| 1044 | return; |
| 1045 | |
| 1046 | // Figure bounds for the bottom left corner |
| 1047 | RectI cornerBounds (0, getPosition().y + getExtent().y, 1, 1); |
| 1048 | pappy->scrollRectVisible(cornerBounds); |
| 1049 | } |
| 1050 | |
| 1051 | //-------------------------------------------------------------------------- |
| 1052 | GuiMLTextCtrl::Atom *GuiMLTextCtrl::findHitAtom(const Point2I localCoords) |
no test coverage detected