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

Method ReparentExtraPanel

src/widgets/ExpandingToolBar.cpp:407–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void ExpandingToolBar::ReparentExtraPanel()
408{
409 // This is how we make sure the extra panel, which slides out
410 // like a drawer, appears on top of everything else in the window...
411
412 wxPoint pos;
413 pos.x = mGrabberSize.x;
414 pos.y = mMainSize.y + mButtonSize.y;
415 wxWindow *frame = this;
416 while(!frame->IsTopLevel()) {
417 pos += frame->GetPosition();
418 frame = frame->GetParent();
419 }
420
421 mExtraPanel->Reparent(frame);
422 mExtraPanel->SetPosition(pos);
423}
424
425void ExpandingToolBar::MoveDrawer(wxSize prevSize)
426{

Callers

nothing calls this directly

Calls 3

SetPositionMethod · 0.80
GetParentMethod · 0.45
ReparentMethod · 0.45

Tested by

no test coverage detected