![]() |
Audacity 3.2.0
|
#include <PlayIndicatorOverlay.h>
Public Member Functions | |
| PlayIndicatorOverlayBase (AudacityProject *project, bool isMaster) | |
| virtual | ~PlayIndicatorOverlayBase () |
| void | Update (int newIndicatorX) |
Public Member Functions inherited from Overlay | |
| Overlay ()=default | |
| Overlay (const Overlay &)=delete | |
| Overlay & | operator= (const Overlay &)=delete |
| virtual | ~Overlay ()=0 |
| virtual unsigned | SequenceNumber () const =0 |
| This number determines an ordering of overlays, so that those with higher numbers overpaint those with lower numbers that intersect. More... | |
| std::pair< wxRect, bool > | GetRectangle (wxSize size) |
| virtual std::pair< wxRect, bool > | DoGetRectangle (wxSize size)=0 |
| virtual void | Erase (wxDC &dc, wxDC &src) |
| virtual void | Draw (OverlayPanel &panel, wxDC &dc)=0 |
Public Member Functions inherited from ClientData::Base | |
| virtual | ~Base () |
Protected Attributes | |
| AudacityProject *const | mProject |
| const bool | mIsMaster |
| int | mLastIndicatorX { -1 } |
| int | mNewIndicatorX { -1 } |
| bool | mNewIsCapturing { false } |
| bool | mLastIsCapturing { false } |
Private Member Functions | |
| unsigned | SequenceNumber () const override |
| This number determines an ordering of overlays, so that those with higher numbers overpaint those with lower numbers that intersect. More... | |
| std::pair< wxRect, bool > | DoGetRectangle (wxSize size) override |
| void | Draw (OverlayPanel &panel, wxDC &dc) override |
Definition at line 23 of file PlayIndicatorOverlay.h.
| PlayIndicatorOverlayBase::PlayIndicatorOverlayBase | ( | AudacityProject * | project, |
| bool | isMaster | ||
| ) |
Definition at line 44 of file PlayIndicatorOverlay.cpp.
|
virtual |
Definition at line 50 of file PlayIndicatorOverlay.cpp.
|
overrideprivatevirtual |
Implements Overlay.
Definition at line 77 of file PlayIndicatorOverlay.cpp.
References AudioIO::Get(), anonymous_namespace{PlayIndicatorOverlay.cpp}::GetIndicatorBitmap(), mIsMaster, mLastIndicatorX, mLastIsCapturing, mNewIndicatorX, mNewIsCapturing, mProject, and size.
|
overrideprivatevirtual |
Implements Overlay.
Definition at line 99 of file PlayIndicatorOverlay.cpp.
References anonymous_namespace{PlayIndicatorOverlay.cpp}::between_incexc(), AudioIO::Get(), AdornedRulerPanel::Get(), anonymous_namespace{PlayIndicatorOverlay.cpp}::GetIndicatorBitmap(), AColor::IndicatorColor(), AColor::Line(), mIsMaster, mLastIndicatorX, mLastIsCapturing, mNewIndicatorX, mNewIsCapturing, mProject, and anonymous_namespace{TimeTrackVRulerControls.cpp}::ruler().
|
overrideprivatevirtual |
This number determines an ordering of overlays, so that those with higher numbers overpaint those with lower numbers that intersect.
Implements Overlay.
Definition at line 54 of file PlayIndicatorOverlay.cpp.
|
inline |
Definition at line 31 of file PlayIndicatorOverlay.h.
References mNewIndicatorX.
|
protected |
Definition at line 41 of file PlayIndicatorOverlay.h.
Referenced by DoGetRectangle(), and Draw().
|
protected |
Definition at line 42 of file PlayIndicatorOverlay.h.
Referenced by DoGetRectangle(), and Draw().
|
protected |
Definition at line 45 of file PlayIndicatorOverlay.h.
Referenced by DoGetRectangle(), and Draw().
|
protected |
Definition at line 43 of file PlayIndicatorOverlay.h.
Referenced by DoGetRectangle(), Draw(), PlayIndicatorOverlay::OnTimer(), and Update().
|
protected |
Definition at line 44 of file PlayIndicatorOverlay.h.
Referenced by DoGetRectangle(), Draw(), and PlayIndicatorOverlay::OnTimer().
|
protected |
Definition at line 40 of file PlayIndicatorOverlay.h.
Referenced by DoGetRectangle(), Draw(), PlayIndicatorOverlay::OnTimer(), and PlayIndicatorOverlay::PlayIndicatorOverlay().