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

Method AddOverlay

src/widgets/OverlayPanel.cpp:24–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22{}
23
24void OverlayPanel::AddOverlay( const std::weak_ptr<Overlay> &pOverlay)
25{
26 if (pOverlay.expired())
27 return;
28 Compress();
29 auto iter = std::lower_bound( mOverlays.begin(), mOverlays.end(),
30 pOverlay.lock()->SequenceNumber(),
31 []( const OverlayPtr &p, unsigned value ) {
32 return p.expired() || p.lock()->SequenceNumber() < value;
33 }
34 );
35 mOverlays.insert(iter, pOverlay);
36}
37
38void OverlayPanel::ClearOverlays()
39{

Callers 6

CreateOverlaysMethod · 0.80
OnTimerMethod · 0.80
DrawMethod · 0.80
ScrubUI.cppFile · 0.80

Calls 5

beginMethod · 0.45
endMethod · 0.45
SequenceNumberMethod · 0.45
lockMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected