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 58 of file TrackInfo.h.

Function Documentation

◆ CalcItemY()

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

Definition at line 61 of file TrackInfo.cpp.

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

Referenced by CommonTrackInfo::GetCloseBoxRect(), PlayableTrackControls::GetEffectsButtonRect(), NoteTrackControls::GetMidiControlsRect(), CommonTrackInfo::GetMinimizeRect(), PlayableTrackControls::GetMuteSoloRect(), WaveTrackControls::GetPanRect(), CommonTrackInfo::GetTrackMenuButtonRect(), CommonTrackInfo::GetTrackTitleRect(), NoteTrackControls::GetVelocityRect(), and WaveTrackControls::GetVolumeRect().

Here is the caller graph for this function:

◆ SetTrackInfoFont()

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

Definition at line 77 of file TrackInfo.cpp.

78{
79 dc->SetFont(settings().gFont);
80}
static Settings & settings()
Definition: TrackInfo.cpp:51

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: