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

Method scrollToBottom

Engine/source/gui/controls/guiMLTextCtrl.cpp:1039–1049  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1037
1038//--------------------------------------------------------------------------
1039void 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//--------------------------------------------------------------------------
1052GuiMLTextCtrl::Atom *GuiMLTextCtrl::findHitAtom(const Point2I localCoords)

Callers 1

guiMLTextCtrl.cppFile · 0.80

Calls 2

getPositionFunction · 0.85
scrollRectVisibleMethod · 0.80

Tested by

no test coverage detected