| 190 | } |
| 191 | |
| 192 | void 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 | |
| 218 | void GuiStackControl::freeze(bool _shouldfreeze) |
| 219 | { |
no outgoing calls
no test coverage detected