![]() |
Audacity 3.2.0
|
Functions | |
AUDACITY_DLL_API wxRect | DrawClipAffordance (wxDC &dc, const wxRect &affordanceRect, bool highlight=false, bool selected=false) |
AUDACITY_DLL_API bool | DrawClipTitle (wxDC &dc, const wxRect &titleRect, const wxString &title) |
AUDACITY_DLL_API bool | DrawAudioClipTitle (wxDC &dc, const wxRect &titleRect, const wxString &title, double clipStretchRatio) |
AUDACITY_DLL_API void | DrawClipEdges (wxDC &dc, const wxRect &clipRect, bool selected=false) |
AUDACITY_DLL_API void | DrawClipFolded (wxDC &dc, const wxRect &rect) |
AUDACITY_DLL_API void | DrawSyncLockTiles (TrackPanelDrawingContext &context, const wxRect &rect) |
AUDACITY_DLL_API void | DrawBackgroundWithSelection (TrackPanelDrawingContext &context, const wxRect &rect, const Track *track, const wxBrush &selBrush, const wxBrush &unselBrush, bool useSelection=true) |
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 wxString | TruncateText (wxDC &dc, const wxString &text, const int maxWidth) |
Variables | |
static constexpr int | ClipFrameRadius { 6 } |
bool TrackArt::DrawAudioClipTitle | ( | wxDC & | dc, |
const wxRect & | titleRect, | ||
const wxString & | title, | ||
double | clipStretchRatio | ||
) |
Definition at line 333 of file TrackArt.cpp.
References anonymous_namespace{TrackArt.cpp}::DoDrawAudioTitle(), anonymous_namespace{TrackArt.cpp}::GetPlaybackSpeedFullText(), TimeAndPitchInterface::IsPassThroughMode(), Tuple::detail::npos(), title, and TruncateText().
Referenced by WaveTrackAffordanceControls::Draw().
void TrackArt::DrawBackgroundWithSelection | ( | TrackPanelDrawingContext & | context, |
const wxRect & | rect, | ||
const Track * | track, | ||
const wxBrush & | selBrush, | ||
const wxBrush & | unselBrush, | ||
bool | useSelection = true |
||
) |
Definition at line 704 of file TrackArt.cpp.
References TrackPanelDrawingContext::dc, DrawSyncLockTiles(), TrackArtist::Get(), Track::GetSelected(), SyncLock::IsSelectedOrSyncLockSelected(), ZoomInfo::TimeToPosition(), and within().
Referenced by SpectrumView::DoDraw(), WaveformView::DoDraw(), LabelTrackView::Draw(), NoteTrackAffordanceControls::Draw(), NoteTrackView::Draw(), and WaveTrackAffordanceControls::Draw().
wxRect TrackArt::DrawClipAffordance | ( | wxDC & | dc, |
const wxRect & | affordanceRect, | ||
bool | highlight = false , |
||
bool | selected = false |
||
) |
Definition at line 201 of file TrackArt.cpp.
References ClipFrameRadius, ClipSelectionStrokeSize, anonymous_namespace{TrackArt.cpp}::GetAffordanceTitleRect(), min(), and AColor::UseThemeColour().
Referenced by NoteTrackAffordanceControls::Draw(), and WaveTrackAffordanceControls::Draw().
void TrackArt::DrawClipEdges | ( | wxDC & | dc, |
const wxRect & | clipRect, | ||
bool | selected = false |
||
) |
Definition at line 362 of file TrackArt.cpp.
References ClipSelectionStrokeSize, AColor::Line(), and AColor::UseThemeColour().
Referenced by anonymous_namespace{SpectrumView.cpp}::DrawClipSpectrum(), anonymous_namespace{WaveformView.cpp}::DrawClipWaveform(), and anonymous_namespace{NoteTrackView.cpp}::DrawNoteTrack().
void TrackArt::DrawClipFolded | ( | wxDC & | dc, |
const wxRect & | rect | ||
) |
Definition at line 399 of file TrackArt.cpp.
References AColor::UseThemeColour().
Referenced by WaveTrackAffordanceControls::Draw(), anonymous_namespace{SpectrumView.cpp}::DrawClipSpectrum(), and anonymous_namespace{WaveformView.cpp}::DrawClipWaveform().
bool TrackArt::DrawClipTitle | ( | wxDC & | dc, |
const wxRect & | titleRect, | ||
const wxString & | title | ||
) |
Definition at line 327 of file TrackArt.cpp.
References anonymous_namespace{TrackArt.cpp}::DoDrawAudioTitle(), and title.
Referenced by NoteTrackAffordanceControls::Draw().
void TrackArt::DrawCursor | ( | TrackPanelDrawingContext & | context, |
const wxRect & | rect, | ||
const Track * | track | ||
) |
Definition at line 802 of file TrackArt.cpp.
References AColor::CursorColor(), TrackPanelDrawingContext::dc, TrackArtist::Get(), AColor::Line(), and ZoomInfo::TimeToPosition().
Referenced by anonymous_namespace{TrackPanel.cpp}::ChannelStack::Draw().
void TrackArt::DrawNegativeOffsetTrackArrows | ( | TrackPanelDrawingContext & | context, |
const wxRect & | rect | ||
) |
Definition at line 136 of file TrackArt.cpp.
References TrackPanelDrawingContext::dc, and AColor::Line().
Referenced by anonymous_namespace{WaveformView.cpp}::DrawClipWaveform(), and anonymous_namespace{NoteTrackView.cpp}::DrawNoteTrack().
void TrackArt::DrawSyncLockTiles | ( | TrackPanelDrawingContext & | context, |
const wxRect & | rect | ||
) |
Definition at line 418 of file TrackArt.cpp.
References TrackPanelDrawingContext::dc, ThemeBase::Image(), and theTheme.
Referenced by DrawBackgroundWithSelection(), and anonymous_namespace{WaveformView.cpp}::DrawWaveformBackground().
wxString TrackArt::TruncateText | ( | wxDC & | dc, |
const wxString & | text, | ||
const int | maxWidth | ||
) |
Definition at line 166 of file TrackArt.cpp.
References str.
Referenced by anonymous_namespace{TrackArt.cpp}::DoDrawAudioTitle(), DrawAudioClipTitle(), and AButton::OnPaint().
|
staticconstexpr |
Definition at line 22 of file TrackArt.h.
Referenced by DrawClipAffordance(), and anonymous_namespace{TrackArt.cpp}::GetAffordanceTitleRect().