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

Method DoDrawBackground

src/AdornedRulerPanel.cpp:2429–2443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2427}
2428
2429void AdornedRulerPanel::DoDrawBackground(wxDC * dc)
2430{
2431 // Draw AdornedRulerPanel border
2432 AColor::UseThemeColour( dc, TimelineBackgroundColor() );
2433 dc->DrawRectangle( mOuter );
2434
2435 if (ShowingScrubRuler()) {
2436 // Let's distinguish the scrubbing area by using a themable
2437 // colour and a line to set it off.
2438 AColor::UseThemeColour(dc, clrScrubRuler, TimelineTextColor() );
2439 wxRect ScrubRect = mScrubZone;
2440 ScrubRect.Inflate( 1,0 );
2441 dc->DrawRectangle(ScrubRect);
2442 }
2443}
2444
2445void AdornedRulerPanel::DoDrawEdge(wxDC *dc)
2446{

Callers

nothing calls this directly

Calls 2

TimelineBackgroundColorFunction · 0.85
TimelineTextColorFunction · 0.85

Tested by

no test coverage detected