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

Method DoDrawSelection

src/AdornedRulerPanel.cpp:2581–2589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2579}
2580
2581void AdornedRulerPanel::DoDrawSelection(
2582 wxDC * dc, const wxRect &rectS, const wxRect &rectL, const wxRect &rectR)
2583{
2584 dc->SetBrush( wxBrush{ AlphaBlend(
2585 TimelineSelectionColor(), TimelineBackgroundColor(), SelectionOpacity) } );
2586 dc->SetPen( *wxTRANSPARENT_PEN );
2587 dc->DrawRectangle( rectS.Intersect(rectL) );
2588 dc->DrawRectangle( rectS.Intersect(rectR) );
2589}
2590
2591int AdornedRulerPanel::GetRulerHeight(bool showScrubBar)
2592{

Callers

nothing calls this directly

Calls 4

AlphaBlendFunction · 0.85
TimelineSelectionColorFunction · 0.85
TimelineBackgroundColorFunction · 0.85
IntersectMethod · 0.80

Tested by

no test coverage detected