MCPcopy Create free account
hub / github.com/audacity/audacity / UpdateWidth

Method UpdateWidth

src/MixerBoard.cpp:1166–1176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1164
1165
1166void MixerBoard::UpdateWidth()
1167{
1168 int newWidth = this->GetTrackClustersWidth();
1169
1170 // Min width is one cluster wide, plus margins.
1171 if (newWidth < MIXER_BOARD_MIN_WIDTH)
1172 newWidth = MIXER_BOARD_MIN_WIDTH;
1173
1174 mScrolledWindow->SetVirtualSize(newWidth, -1);
1175 this->GetParent()->SetSize(newWidth + kDoubleInset, -1);
1176}
1177
1178//
1179// private methods

Callers 3

UpdateTrackClustersMethod · 0.95
RemoveTrackClusterMethod · 0.95
OnMaximizeMethod · 0.80

Calls 3

GetTrackClustersWidthMethod · 0.95
SetSizeMethod · 0.45
GetParentMethod · 0.45

Tested by

no test coverage detected