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 bool pinned = Scrubber::Get( project ).IsTransportingPinned();
66 wxBitmap & bmp = theTheme.Bitmap( pinned ?
67 (playing ? bmpPlayPointerPinned : bmpRecordPointerPinned) :
68 (playing ? bmpPlayPointer : bmpRecordPointer)
69 );
70 const int IndicatorHalfWidth = bmp.GetWidth() / 2;
71 return {
72 { xx - IndicatorHalfWidth - 1,
74 bmp
75 };
76}
THEME_API Theme theTheme
Definition: Theme.cpp:82
wxRect GetInnerRect() const
static AdornedRulerPanel & Get(AudacityProject &project)
static Scrubber & Get(AudacityProject &project)
Definition: Scrubbing.cpp:187
bool IsTransportingPinned() const
wxBitmap & Bitmap(int iIndex)

References ThemeBase::Bitmap(), AdornedRulerPanel::Get(), Scrubber::Get(), AdornedRulerPanel::GetInnerRect(), Scrubber::IsTransportingPinned(), 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: