1265 {
1268 {
1269 auto vRulerRect = rect;
1271
1272 auto dc = &context.
dc;
1273
1274
1276 dc->DrawRectangle( vRulerRect );
1277
1278 const auto channels =
mpTrack->Channels();
1280 if(auto affordance = view.GetAffordanceControls())
1281 {
1284 AColor::Line( *dc, vRulerRect.GetLeft(), yy, vRulerRect.GetRight(), yy );
1285 }
1286
1287
1288 dc->SetPen(*wxBLACK_PEN);
1289
1290 AColor::Line( *dc, vRulerRect.GetLeftTop(), vRulerRect.GetLeftBottom() );
1291 AColor::Line( *dc, vRulerRect.GetRightTop(), vRulerRect.GetRightBottom() );
1292 }
1294 const auto channels =
mpTrack->Channels();
1295 const auto pLast = *channels.rbegin();
1296 wxCoord yy = rect.GetTop();
1298 auto pHeight = heights.begin();
1299 for (auto pChannel : channels) {
1301 auto height = *pHeight++;
1302 if (auto affordance = view.GetAffordanceControls())
1304 auto trackRect = wxRect(
1306 yy,
1310 yy += height;
1311 }
1312 }
1313 }
static void Line(wxDC &dc, wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
static void MediumTrackInfo(wxDC *dc, bool selected)
static void Dark(wxDC *dc, bool selected, bool highlight=false)
virtual void Draw(TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass)
AUDACITY_DLL_API void DrawCursor(TrackPanelDrawingContext &context, const wxRect &rect, const Track *track)