Audacity 3.2.0
|
#include <wx/types.h>
Go to the source code of this file.
Namespaces | |
namespace | TrackArt |
Functions | |
AUDACITY_DLL_API wxRect | TrackArt::DrawClipAffordance (wxDC &dc, const wxRect &clipRect, bool highlight=false, bool selected=false) |
AUDACITY_DLL_API bool | TrackArt::DrawClipTitle (wxDC &dc, const wxRect &affordanceRect, const wxString &title) |
AUDACITY_DLL_API void | TrackArt::DrawClipEdges (wxDC &dc, const wxRect &clipRect, bool selected=false) |
AUDACITY_DLL_API void | TrackArt::DrawClipFolded (wxDC &dc, const wxRect &rect) |
AUDACITY_DLL_API void | TrackArt::DrawSyncLockTiles (TrackPanelDrawingContext &context, const wxRect &rect) |
AUDACITY_DLL_API void | TrackArt::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. More... | |
AUDACITY_DLL_API void | TrackArt::DrawCursor (TrackPanelDrawingContext &context, const wxRect &rect, const Track *track) |
AUDACITY_DLL_API void | TrackArt::DrawNegativeOffsetTrackArrows (TrackPanelDrawingContext &context, const wxRect &rect) |
AUDACITY_DLL_API wxString | TrackArt::TruncateText (wxDC &dc, const wxString &text, const int maxWidth) |
AUDACITY_DLL_API void | TrackArt::DrawSnapLines (wxDC *dc, wxInt64 snap0, wxInt64 snap1) |
AUDACITY_DLL_API int | GetWaveYPos (float value, float min, float max, int height, bool dB, bool outer, float dBr, bool clip) |
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) |
Variables | |
static constexpr int | TrackArt::ClipFrameRadius { 6 } |
float FromDB | ( | float | value, |
double | dBRange | ||
) |
Definition at line 113 of file TrackArt.cpp.
References DB_TO_LINEAR.
Referenced by ValueOfPixel().
AUDACITY_DLL_API int GetWaveYPos | ( | float | value, |
float | min, | ||
float | max, | ||
int | height, | ||
bool | dB, | ||
bool | outer, | ||
float | dBr, | ||
bool | clip | ||
) |
Takes a value between min and max and returns a value between height and 0
Definition at line 66 of file TrackArt.cpp.
References LINEAR_TO_DB, min(), and outer.
Referenced by anonymous_namespace{WaveformView.cpp}::DrawEnvelope(), anonymous_namespace{WaveformView.cpp}::DrawIndividualSamples(), EnvelopeEditor::DrawPoints(), anonymous_namespace{WaveformView.cpp}::DrawWaveformBackground(), EnvelopeEditor::HandleMouseButtonDown(), EnvelopeHandle::HitEnvelope(), and SampleHandle::HitTest().
AUDACITY_DLL_API float ValueOfPixel | ( | int | yy, |
int | height, | ||
bool | offset, | ||
bool | dB, | ||
double | dBRange, | ||
float | zoomMin, | ||
float | zoomMax | ||
) |
Definition at line 122 of file TrackArt.cpp.
References FromDB().
Referenced by SampleHandle::FindSampleEditingLevel().