Audacity 3.2.0
LabelTrackVRulerControls.cpp
Go to the documentation of this file.
1/**********************************************************************
2
3Audacity: A Digital Audio Editor
4
5LabelTrackVRulerControls.cpp
6
7Paul Licameli split from TrackPanel.cpp
8
9**********************************************************************/
10
11
13
14#include "../../../HitTestResult.h"
15
16#include "AColor.h"
17#include "../../../TrackArtist.h"
18#include "../../../TrackPanelDrawingContext.h"
19
21{
22}
23
26 const wxRect &rect_, unsigned iPass )
27{
28 ChannelVRulerControls::Draw(context, rect_, iPass);
29
30 // Draw on a later pass because the bevel overpaints one pixel
31 // out of bounds on the bottom
32
33 if ( iPass == TrackArtist::PassControls ) {
34 auto rect = rect_;
35 --rect.width;
36 --rect.height;
37
38 auto dc = &context.dc;
39 wxRect bev = rect;
40 bev.Inflate(-1, 0);
41 bev.width += 1;
42 AColor::BevelTrackInfo(*dc, true, bev);
43 }
44}
45
46void LabelTrackVRulerControls::UpdateRuler( const wxRect &rect )
47{
48 // Label tracks do not have a vruler
49 // do nothing
50}
static void BevelTrackInfo(wxDC &dc, bool up, const wxRect &r, bool highlight=false)
Definition: AColor.cpp:340
void Draw(TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override
void Draw(TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override
void UpdateRuler(const wxRect &rect) override