Audacity  3.0.3
TrackPanelDrawingContext.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  TrackPanelDrawingContext.h
6 
7  Paul Licameli
8 
9  **********************************************************************/
10 
11 #ifndef __AUDACITY_TRACK_PANEL_DRAWING_CONTEXT__
12 #define __AUDACITY_TRACK_PANEL_DRAWING_CONTEXT__
13 
14 #include <memory>
15 
16 class UIHandle;
17 using UIHandlePtr = std::shared_ptr<UIHandle>;
18 class wxDC;
19 
20 #include <wx/mousestate.h> // member variable
21 
23  wxDC &dc;
25  wxMouseState lastState;
26 
27  void *pUserData;
28 
29  // This redundancy fixes an MSVC compiler warning:
31 };
32 
33 #endif
TrackPanelDrawingContext
Definition: TrackPanelDrawingContext.h:22
TrackPanelDrawingContext::dc
wxDC & dc
Definition: TrackPanelDrawingContext.h:23
UIHandle
Short-lived drawing and event-handling object associated with a TrackPanelCell.
Definition: UIHandle.h:35
TrackPanelDrawingContext::TrackPanelDrawingContext
TrackPanelDrawingContext()=delete
TrackPanelDrawingContext::lastState
wxMouseState lastState
Definition: TrackPanelDrawingContext.h:25
UIHandlePtr
std::shared_ptr< UIHandle > UIHandlePtr
Definition: CellularPanel.h:28
TrackPanelDrawingContext::pUserData
void * pUserData
Definition: TrackPanelDrawingContext.h:27
TrackPanelDrawingContext::target
UIHandlePtr target
Definition: TrackPanelDrawingContext.h:24