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

Method scrollToTop

Engine/source/gui/controls/guiMLTextCtrl.cpp:1025–1032  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 7

GuiEditorFunction · 0.80
EditorChooseGUIFunction · 0.80
GuiEditorFunction · 0.80
EditorChooseGUIFunction · 0.80
guiMLTextCtrl.cppFile · 0.80

Calls 2

scrollRectVisibleMethod · 0.80
RectIClass · 0.50

Tested by

no test coverage detected