Audacity 3.2.0
Enumerations | Functions
anonymous_namespace{PlayIndicatorOverlay.cpp} Namespace Reference

Enumerations

enum  { IndicatorMediumWidth = 13 }
 

Functions

template<class LOW , class MID , class HIGH >
bool between_incexc (LOW l, MID m, HIGH h)
 
std::pair< wxPoint, wxBitmap > GetIndicatorBitmap (AudacityProject &project, wxCoord xx, bool playing)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
IndicatorMediumWidth 

Definition at line 41 of file PlayIndicatorOverlay.cpp.

@ IndicatorMediumWidth

Function Documentation

◆ between_incexc()

template<class LOW , class MID , class HIGH >
bool anonymous_namespace{PlayIndicatorOverlay.cpp}::between_incexc ( LOW  l,
MID  m,
HIGH  h 
)

Definition at line 36 of file PlayIndicatorOverlay.cpp.

37 {
38 return (m >= l && m < h);
39 }

Referenced by PlayIndicatorOverlayBase::Draw(), and PlayIndicatorOverlay::OnTimer().

Here is the caller graph for this function:

◆ GetIndicatorBitmap()

std::pair< wxPoint, wxBitmap > anonymous_namespace{PlayIndicatorOverlay.cpp}::GetIndicatorBitmap ( AudacityProject project,
wxCoord  xx,
bool  playing 
)

Definition at line 62 of file PlayIndicatorOverlay.cpp.

64{
65 wxBitmap & bmp = theTheme.Bitmap(
66 playing ? bmpPlayPointer : bmpRecordPointer
67 );
68 const int IndicatorHalfWidth = bmp.GetWidth() / 2;
69 return {
70 { xx - IndicatorHalfWidth - 1,
72 bmp
73 };
74}
const auto project
THEME_API Theme theTheme
Definition: Theme.cpp:82
wxRect GetInnerRect() const
static AdornedRulerPanel & Get(AudacityProject &project)
wxBitmap & Bitmap(int iIndex)

References ThemeBase::Bitmap(), AdornedRulerPanel::Get(), AdornedRulerPanel::GetInnerRect(), project, and theTheme.

Referenced by PlayIndicatorOverlayBase::DoGetRectangle(), and PlayIndicatorOverlayBase::Draw().

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