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

Method resize

Engine/source/gui/containers/guiContainer.cpp:130–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128//-----------------------------------------------------------------------------
129
130bool GuiContainer::resize( const Point2I &newPosition, const Point2I &newExtent )
131{
132 if( !Parent::resize( newPosition, newExtent ) )
133 return false;
134
135 RectI clientRect = getClientRect();
136 layoutControls( clientRect );
137
138 GuiControl *parent = getParent();
139 S32 docking = getDocking();
140 if( parent && docking != Docking::dockNone && docking != Docking::dockInvalid )
141 setUpdateLayout( updateParent );
142
143 return true;
144}
145
146//-----------------------------------------------------------------------------
147

Callers 2

dockControlMethod · 0.45
anchorControlMethod · 0.45

Calls 1

resizeFunction · 0.50

Tested by

no test coverage detected