Audacity 3.2.0
|
#include <EditCursorOverlay.h>
Public Member Functions | |
EditCursorOverlay (AudacityProject *project, bool isMaster=true) | |
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 () |
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 |
Private Attributes | |
AudacityProject * | mProject |
bool | mIsMaster |
std::shared_ptr< EditCursorOverlay > | mPartner |
int | mLastCursorX |
double | mCursorTime |
int | mNewCursorX |
Definition at line 20 of file EditCursorOverlay.h.
|
explicit |
Definition at line 42 of file EditCursorOverlay.cpp.
|
overrideprivatevirtual |
Implements Overlay.
Definition at line 56 of file EditCursorOverlay.cpp.
References ViewInfo::Get(), mCursorTime, mLastCursorX, mNewCursorX, mProject, and size.
|
overrideprivatevirtual |
Implements Overlay.
Definition at line 80 of file EditCursorOverlay.cpp.
References anonymous_namespace{EditCursorOverlay.cpp}::between_incexc(), ViewInfo::Get(), AdornedRulerPanel::Get(), TrackPanel::Get(), AColor::Line(), mCursorTime, mIsMaster, mLastCursorX, mNewCursorX, mPartner, 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 51 of file EditCursorOverlay.cpp.
|
private |
Definition at line 38 of file EditCursorOverlay.h.
Referenced by DoGetRectangle(), and Draw().
|
private |
Definition at line 34 of file EditCursorOverlay.h.
Referenced by Draw().
|
private |
Definition at line 37 of file EditCursorOverlay.h.
Referenced by DoGetRectangle(), and Draw().
|
private |
Definition at line 39 of file EditCursorOverlay.h.
Referenced by DoGetRectangle(), and Draw().
|
private |
Definition at line 35 of file EditCursorOverlay.h.
Referenced by Draw().
|
private |
Definition at line 33 of file EditCursorOverlay.h.
Referenced by DoGetRectangle(), and Draw().