10#ifndef __AUDACITY_TRACK_ART__
11#define __AUDACITY_TRACK_ART__
30 wxDC& dc,
const wxRect& clipRect,
bool highlight =
false,
31 bool selected =
false);
38 void DrawClipEdges(wxDC& dc,
const wxRect& clipRect,
bool selected =
false);
55 const wxRect &rect,
const Channel &channel,
56 const wxBrush &selBrush,
const wxBrush &unselBrush,
57 bool useSelection =
true,
bool useBeatsAlternateColor =
false);
61 const wxRect& rect,
const Track* track);
65 const wxRect & rect );
68 wxString
TruncateText(wxDC& dc,
const wxString& text,
const int maxWidth);
74extern AUDACITY_DLL_API
int GetWaveYPos(
float value,
float min,
float max,
75 int height,
bool dB,
bool outer,
float dBr,
77extern float FromDB(
float value,
double dBRange);
78extern AUDACITY_DLL_API
float ValueOfPixel(
int yy,
int height,
bool offset,
79 bool dB,
double dBRange,
float zoomMin,
float zoomMax);
static const wxPoint2DDouble outer[]
float FromDB(float value, double dBRange)
AUDACITY_DLL_API float ValueOfPixel(int yy, int height, bool offset, bool dB, double dBRange, float zoomMin, float zoomMax)
AUDACITY_DLL_API int GetWaveYPos(float value, float min, float max, int height, bool dB, bool outer, float dBr, bool clip)
Abstract base class for an object holding data associated with points on a time axis.
AUDACITY_DLL_API void DrawBackgroundWithSelection(TrackPanelDrawingContext &context, const wxRect &rect, const Channel &channel, const wxBrush &selBrush, const wxBrush &unselBrush, bool useSelection=true, bool useBeatsAlternateColor=false)
Helper: draws background with selection rect.
AUDACITY_DLL_API void DrawSyncLockTiles(TrackPanelDrawingContext &context, const wxRect &rect)
AUDACITY_DLL_API bool DrawClipTitle(wxDC &dc, const wxRect &affordanceRect, const wxString &title)
AUDACITY_DLL_API wxString TruncateText(wxDC &dc, const wxString &text, const int maxWidth)
AUDACITY_DLL_API void DrawClipFolded(wxDC &dc, const wxRect &rect)
AUDACITY_DLL_API void DrawClipEdges(wxDC &dc, const wxRect &clipRect, bool selected=false)
AUDACITY_DLL_API void DrawSnapLines(wxDC *dc, wxInt64 snap0, wxInt64 snap1)
AUDACITY_DLL_API void DrawCursor(TrackPanelDrawingContext &context, const wxRect &rect, const Track *track)
AUDACITY_DLL_API void DrawNegativeOffsetTrackArrows(TrackPanelDrawingContext &context, const wxRect &rect)
AUDACITY_DLL_API wxRect DrawClipAffordance(wxDC &dc, const wxRect &clipRect, bool highlight=false, bool selected=false)
static constexpr int ClipFrameRadius