MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / scrollToBottom

Method scrollToBottom

Engine/source/gui/controls/guiMLTextCtrl.cpp:1035–1045  ·  view source on GitHub ↗

--------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

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

Callers 2

chatHud.csFile · 0.80
guiMLTextCtrl.cppFile · 0.80

Calls 1

scrollRectVisibleMethod · 0.80

Tested by

no test coverage detected