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

Method scrollToTop

Engine/source/gui/controls/guiMLTextCtrl.cpp:1029–1036  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1027
1028//--------------------------------------------------------------------------
1029void GuiMLTextCtrl::scrollToTop()
1030{
1031 // If the parent control is not a GuiScrollContentCtrl, then this call is invalid:
1032 GuiScrollCtrl *pappy = dynamic_cast<GuiScrollCtrl*>(getParent());
1033 if ( !pappy )
1034 return;
1035 pappy->scrollRectVisible(RectI(0,0,0,0));
1036}
1037
1038//--------------------------------------------------------------------------
1039void GuiMLTextCtrl::scrollToBottom()

Callers 1

guiMLTextCtrl.cppFile · 0.80

Calls 2

scrollRectVisibleMethod · 0.80
RectIClass · 0.50

Tested by

no test coverage detected