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

Method setSize

Engine/source/gui/core/guiArrayCtrl.cpp:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97//-----------------------------------------------------------------------------
98
99void GuiArrayCtrl::setSize(Point2I newSize)
100{
101 mSize = newSize;
102 Point2I newExtent(newSize.x * mCellSize.x + mHeaderDim.x, newSize.y * mCellSize.y + mHeaderDim.y);
103
104 setExtent(newExtent);
105}
106
107//-----------------------------------------------------------------------------
108

Callers 6

handleResizeMethod · 0.45
setObjectModelMethod · 0.45
refreshShapeMethod · 0.45
GuiFilterCtrlMethod · 0.45
onWakeMethod · 0.45
onPreRenderMethod · 0.45

Calls 1

setExtentFunction · 0.85

Tested by

no test coverage detected