Audacity
3.2.0
src
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
22
struct
TrackPanelDrawingContext
{
23
wxDC &
dc
;
24
UIHandlePtr
target
;
25
wxMouseState
lastState
;
26
27
void
*
pUserData
;
28
29
// This redundancy fixes an MSVC compiler warning:
30
TrackPanelDrawingContext
() =
delete
;
31
};
32
33
#endif
UIHandlePtr
std::shared_ptr< UIHandle > UIHandlePtr
Definition:
CellularPanel.h:28
UIHandle
Short-lived drawing and event-handling object associated with a TrackPanelCell.
Definition:
UIHandle.h:37
TrackPanelDrawingContext
Definition:
TrackPanelDrawingContext.h:22
TrackPanelDrawingContext::dc
wxDC & dc
Definition:
TrackPanelDrawingContext.h:23
TrackPanelDrawingContext::TrackPanelDrawingContext
TrackPanelDrawingContext()=delete
TrackPanelDrawingContext::target
UIHandlePtr target
Definition:
TrackPanelDrawingContext.h:24
TrackPanelDrawingContext::lastState
wxMouseState lastState
Definition:
TrackPanelDrawingContext.h:25
TrackPanelDrawingContext::pUserData
void * pUserData
Definition:
TrackPanelDrawingContext.h:27
Generated by
1.9.3