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

Method updatePanes

Engine/source/gui/containers/guiStackCtrl.cpp:192–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void GuiStackControl::updatePanes()
193{
194 // Prevent recursion
195 if(mResizing)
196 return;
197
198 // Set Resizing.
199 mResizing = true;
200
201 Point2I extent = getExtent();
202
203 // Do we need to stack horizontally?
204 if( ( extent.x > extent.y && mStackingType == stackingTypeDyn ) || mStackingType == stackingTypeHoriz )
205 {
206 stackHorizontal( mStackHorizSizing == horizStackLeft );
207 }
208 // Or, vertically?
209 else if( ( extent.y > extent.x && mStackingType == stackingTypeDyn ) || mStackingType == stackingTypeVert)
210 {
211 stackVertical( mStackVertSizing == vertStackTop );
212 }
213
214 // Clear Sizing Flag.
215 mResizing = false;
216}
217
218void GuiStackControl::freeze(bool _shouldfreeze)
219{

Callers 4

guiStackCtrl.cppFile · 0.80
inspectGroupMethod · 0.80
addInspectorFieldMethod · 0.80
inspectGroupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected