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

Method DoDrawOverlap

src/AdornedRulerPanel.cpp:2572–2579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2570constexpr double SelectionOpacity = 0.4;
2571
2572void AdornedRulerPanel::DoDrawOverlap(wxDC * dc, const wxRect &rect)
2573{
2574 dc->SetBrush( wxBrush{ AlphaBlend(
2575 TimelineSelectionColor(), TimelineLoopRegionColor(mLastPlayRegionActive),
2576 SelectionOpacity) } );
2577 dc->SetPen( *wxTRANSPARENT_PEN );
2578 dc->DrawRectangle( rect );
2579}
2580
2581void AdornedRulerPanel::DoDrawSelection(
2582 wxDC * dc, const wxRect &rectS, const wxRect &rectL, const wxRect &rectR)

Callers

nothing calls this directly

Calls 3

AlphaBlendFunction · 0.85
TimelineSelectionColorFunction · 0.85
TimelineLoopRegionColorFunction · 0.85

Tested by

no test coverage detected