Audacity 3.2.0
Namespaces | Macros | Typedefs | Functions | Variables
CommonTrackInfo.cpp File Reference
#include "CommonTrackInfo.h"
#include <wx/dc.h>
#include <wx/dcmemory.h>
#include "AColor.h"
#include "AllThemeResources.h"
#include "SyncLock.h"
#include "Theme.h"
#include "Track.h"
#include "TrackArt.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)
 
void anonymous_namespace{CommonTrackInfo.cpp}::DrawToolButtonBackground (TrackPanelDrawingContext &context, const wxRect &rect, bool captured)
 

Variables

constexpr auto anonymous_namespace{CommonTrackInfo.cpp}::Padding = 2
 
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 44 of file CommonTrackInfo.cpp.

Typedef Documentation

◆ TCPLine

Definition at line 45 of file CommonTrackInfo.cpp.

◆ TCPLines

Definition at line 46 of file CommonTrackInfo.cpp.

Function Documentation

◆ commonTrackTCPLines()

static const TCPLines & commonTrackTCPLines ( )
static

Definition at line 48 of file CommonTrackInfo.cpp.

49{
50 static const TCPLines theLines{
53 };
54 return theLines;
55}
std::vector< TrackInfo::TCPLine > TCPLines
@ kTrackInfoTitleHeight
Definition: ViewInfo.h:96
@ kTrackInfoTitleExtra
Definition: ViewInfo.h:97
AUDACITY_DLL_API void CloseTitleDrawFunction(TrackPanelDrawingContext &context, const wxRect &rect, const Track *pTrack)

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

Referenced by CommonTrackInfo::GetCloseBoxRect(), CommonTrackInfo::GetMinimizeRect(), CommonTrackInfo::GetTrackMenuButtonRect(), CommonTrackInfo::GetTrackTitleRect(), CommonTrackInfo::MinimumTrackHeight(), and CommonTrackInfo::StaticTCPLines().

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