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 57 of file TrackInfo.cpp.

58{
59 int y = 0;
60 auto pLines = lines.begin();
61 while ( pLines != lines.end() &&
62 0 == (pLines->items & iItem) ) {
63 y += pLines->height + pLines->extraSpace;
64 ++pLines;
65 }
66 int height = 0;
67 if ( pLines != lines.end() )
68 height = pLines->height;
69 return { y, height };
70}

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 73 of file TrackInfo.cpp.

74{
75 dc->SetFont(settings().gFont);
76}
static Settings & settings()
Definition: TrackInfo.cpp:47

References settings().

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

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