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

Method Collapse

src/widgets/ExpandingToolBar.cpp:230–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230void ExpandingToolBar::Collapse(bool now /* = false */)
231{
232 // After being manually collapsed, we set mIsAutoExpanded back to
233 // true, which prevents it from being immediately auto-expanded
234 // again until after the mouse actually moves away and then
235 // back again later.
236
237 mToggleButton->PopUp();
238 mIsManualExpanded = false;
239 mIsAutoExpanded = false;
240 Fit();
241 mIsAutoExpanded = true;
242
243 if (now) {
244 mCurrentDrawerSize = mTargetDrawerSize;
245
246 MoveDrawer(wxSize(0, 0));
247 }
248}
249
250void ExpandingToolBar::TryAutoExpand()
251{

Callers 1

CollapseAllMethod · 0.80

Calls 2

wxSizeClass · 0.70
PopUpMethod · 0.45

Tested by

no test coverage detected