Audacity 3.2.0
Classes | Typedefs | Functions
TrackInfo Namespace Reference

Classes

struct  TCPLine
 

Typedefs

using TCPLines = std::vector< TCPLine >
 

Functions

AUDACITY_DLL_API std::pair< int, int > CalcItemY (const TCPLines &lines, unsigned iItem)
 
AUDACITY_DLL_API void SetTrackInfoFont (wxDC *dc)
 

Typedef Documentation

◆ TCPLines

using TrackInfo::TCPLines = typedef std::vector< TCPLine >

Definition at line 59 of file TrackInfo.h.

Function Documentation

◆ CalcItemY()

std::pair< int, int > TrackInfo::CalcItemY ( const TCPLines lines,
unsigned  iItem 
)

Definition at line 79 of file TrackInfo.cpp.

80{
81 int y = 0;
82 auto pLines = lines.begin();
83 while ( pLines != lines.end() &&
84 0 == (pLines->items & iItem) ) {
85 y += pLines->height + pLines->extraSpace;
86 ++pLines;
87 }
88 int height = 0;
89 if ( pLines != lines.end() )
90 height = pLines->height;
91 return { y, height };
92}

Referenced by CommonTrackInfo::GetCloseBoxRect(), PlayableTrackControls::GetEffectsRect(), WaveTrackControls::GetGainRect(), NoteTrackControls::GetMidiControlsRect(), PlayableTrackControls::GetMuteSoloRect(), WaveTrackControls::GetPanRect(), CommonTrackInfo::GetTitleBarRect(), and NoteTrackControls::GetVelocityRect().

Here is the caller graph for this function:

◆ SetTrackInfoFont()

void TrackInfo::SetTrackInfoFont ( wxDC *  dc)
Todo:
Probably should move to 'Utils.cpp'.

Definition at line 95 of file TrackInfo.cpp.

96{
97 dc->SetFont(settings().gFont);
98}
static Settings & settings()
Definition: TrackInfo.cpp:69

References settings().

Referenced by CommonTrackInfo::CloseTitleDrawFunction(), CommonTrackInfo::DrawItems(), anonymous_namespace{PlayableTrackControls.cpp}::EffectsDrawFunction(), CommonTrackInfo::MinimizeSyncLockDrawFunction(), and anonymous_namespace{PlayableTrackControls.cpp}::MuteOrSoloDrawFunction().

Here is the call graph for this function:
Here is the caller graph for this function: