MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / scrollCellVisible

Method scrollCellVisible

engine/source/gui/guiArrayCtrl.cc:124–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void GuiArrayCtrl::scrollCellVisible(Point2I cell)
125{
126 //make sure we have a parent
127 //make sure we have a valid cell selected
128 GuiScrollCtrl *parent = dynamic_cast<GuiScrollCtrl*>(getParent());
129 if(!parent || cell.x < 0 || cell.y < 0)
130 return;
131
132 RectI cellBounds(cell.x * mCellSize.x, cell.y * mCellSize.y, mCellSize.x, mCellSize.y);
133 parent->scrollRectVisible(cellBounds);
134}
135
136// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- //
137

Callers 3

onActionMethod · 0.80
onActionMethod · 0.80
guiTextListCtrl.ccFile · 0.80

Calls 1

scrollRectVisibleMethod · 0.80

Tested by

no test coverage detected