Audacity  2.2.2
EditCursorOverlay.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3 Audacity: A Digital Audio Editor
4 
5 EditCursorOverlay.h
6 
7 Paul Licameli split from TrackPanel.cpp
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_EDIT_CURSOR_OVERLAY__
12 #define __AUDACITY_EDIT_CURSOR_OVERLAY__
13 
14 #include "../../MemoryX.h"
15 #include "../../widgets/Overlay.h"
16 
17 class AudacityProject;
18 
19 class EditCursorOverlay final : public Overlay
20 {
21 public:
22  EditCursorOverlay(AudacityProject *project, bool isMaster = true);
23  virtual ~EditCursorOverlay();
24 
25 private:
26  std::pair<wxRect, bool> DoGetRectangle(wxSize size) override;
27  void Draw(OverlayPanel &panel, wxDC &dc) override;
28 
30  bool mIsMaster;
31  std::unique_ptr<EditCursorOverlay> mPartner;
32 
34  double mCursorTime;
36 };
37 
38 #endif
AudacityProject provides the main window, with tools and tracks contained within it.
Definition: Project.h:176
void Draw(OverlayPanel &panel, wxDC &dc) override
AudacityProject * mProject
std::pair< wxRect, bool > DoGetRectangle(wxSize size) override
std::unique_ptr< EditCursorOverlay > mPartner
EditCursorOverlay(AudacityProject *project, bool isMaster=true)