![]() |
Audacity 3.2.0
|
Functions | |
| AUDACITY_DLL_API wxRect | DrawClipAffordance (wxDC &dc, const wxRect &clipRect, bool highlight=false, bool selected=false) |
| AUDACITY_DLL_API bool | DrawClipTitle (wxDC &dc, const wxRect &affordanceRect, const wxString &title) |
| 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 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 | 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) |
| AUDACITY_DLL_API void | DrawSnapLines (wxDC *dc, wxInt64 snap0, wxInt64 snap1) |
Variables | |
| static constexpr int | ClipFrameRadius { 6 } |
| 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.
| useBeatsAlternateColor | is only meaningful in Beats mode |
Definition at line 648 of file TrackArt.cpp.
References TrackPanelDrawingContext::dc, DrawSyncLockTiles(), TrackArtist::Get(), Channel::GetChannelGroup(), anonymous_namespace{TrackArt.cpp}::GetProject(), 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 & | clipRect, | ||
| bool | highlight = false, |
||
| bool | selected = false |
||
| ) |
Definition at line 223 of file TrackArt.cpp.
References ClipFrameRadius, ClipSelectionStrokeSize, anonymous_namespace{TrackArt.cpp}::GetClipAffordanceRect(), 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 309 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 346 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 & | affordanceRect, | ||
| const wxString & | title | ||
| ) |
Definition at line 289 of file TrackArt.cpp.
References anonymous_namespace{TrackArt.cpp}::GetClipTruncatedTitleRect(), anonymous_namespace{TrackArt.cpp}::GetTruncatedTitle(), and title.
Referenced by NoteTrackAffordanceControls::Draw(), and WaveTrackAffordanceControls::Draw().
| void TrackArt::DrawCursor | ( | TrackPanelDrawingContext & | context, |
| const wxRect & | rect, | ||
| const Track * | track | ||
| ) |
Definition at line 756 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 143 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::DrawSnapLines | ( | wxDC * | dc, |
| wxInt64 | snap0, | ||
| wxInt64 | snap1 | ||
| ) |
Definition at line 775 of file TrackArt.cpp.
References AColor::Line(), and AColor::SnapGuidePen().
Referenced by AdjustClipBorder::Draw(), SelectHandle::Draw(), and TimeShiftHandle::Draw().
| void TrackArt::DrawSyncLockTiles | ( | TrackPanelDrawingContext & | context, |
| const wxRect & | rect | ||
| ) |
Definition at line 365 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 173 of file TrackArt.cpp.
References str.
Referenced by CommonTrackInfo::CloseTitleDrawFunction(), anonymous_namespace{TrackArt.cpp}::GetTruncatedTitle(), and AButton::OnPaint().
|
staticconstexpr |
Definition at line 24 of file TrackArt.h.
Referenced by DrawClipAffordance(), and anonymous_namespace{TrackArt.cpp}::GetAffordanceTitleRect().