Audacity 3.2.0
Namespaces | Macros | Typedefs | Functions | Variables
CommonTrackInfo.cpp File Reference
#include "CommonTrackInfo.h"
#include <wx/dc.h>
#include "AColor.h"
#include "AllThemeResources.h"
#include "SyncLock.h"
#include "Theme.h"
#include "Track.h"
#include "TrackControls.h"
#include "TrackPanelDrawingContext.h"
#include "UIHandle.h"
#include "ViewInfo.h"
#include "tracks/ui/ChannelView.h"
Include dependency graph for CommonTrackInfo.cpp:

Go to the source code of this file.

Namespaces

namespace  CommonTrackInfo
 Functions for drawing the track control panel, which is shown to the side of a track It has the menus, pan and gain controls displayed in it. So "Info" is somewhat a misnomer. Should possibly be "TrackControls".
 
namespace  anonymous_namespace{CommonTrackInfo.cpp}
 

Macros

#define RANGE(array)   std::begin(array), std::end(array)
 

Typedefs

using TCPLine = TrackInfo::TCPLine
 
using TCPLines = TrackInfo::TCPLines
 

Functions

static const TCPLinescommonTrackTCPLines ()
 
int anonymous_namespace{CommonTrackInfo.cpp}::totalTCPLines (const TCPLines &lines, bool omitLastExtra)
 
std::pair< int, int > anonymous_namespace{CommonTrackInfo.cpp}::CalcBottomItemY (const TCPLines &lines, unsigned iItem, int height)
 

Variables

const TrackInfo::TCPLine anonymous_namespace{CommonTrackInfo.cpp}::defaultCommonTrackTCPBottomLines []
 
TCPLines anonymous_namespace{CommonTrackInfo.cpp}::commonTrackTCPBottomLines { RANGE(defaultCommonTrackTCPBottomLines) }
 

Macro Definition Documentation

◆ RANGE

#define RANGE (   array)    std::begin(array), std::end(array)

Definition at line 41 of file CommonTrackInfo.cpp.

Typedef Documentation

◆ TCPLine

Definition at line 42 of file CommonTrackInfo.cpp.

◆ TCPLines

Definition at line 43 of file CommonTrackInfo.cpp.

Function Documentation

◆ commonTrackTCPLines()

static const TCPLines & commonTrackTCPLines ( )
static

Definition at line 45 of file CommonTrackInfo.cpp.

46{
47 static const TCPLines theLines{
50 };
51 return theLines;
52}
std::vector< TrackInfo::TCPLine > TCPLines
@ kTrackInfoBtnSize
Definition: ViewInfo.h:96
AUDACITY_DLL_API void CloseTitleDrawFunction(TrackPanelDrawingContext &context, const wxRect &rect, const Track *pTrack)

References CommonTrackInfo::CloseTitleDrawFunction(), TrackInfo::TCPLine::kItemBarButtons, and kTrackInfoBtnSize.

Referenced by CommonTrackInfo::GetCloseBoxRect(), CommonTrackInfo::GetTitleBarRect(), CommonTrackInfo::MinimumTrackHeight(), and CommonTrackInfo::StaticTCPLines().

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