2017-07-01 02:23:54 +00:00
|
|
|
/**********************************************************************
|
|
|
|
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
|
|
|
|
TrackPanelDrawingContext.h
|
|
|
|
|
|
|
|
Paul Licameli
|
|
|
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
|
|
#ifndef __AUDACITY_TRACK_PANEL_DRAWING_CONTEXT__
|
|
|
|
#define __AUDACITY_TRACK_PANEL_DRAWING_CONTEXT__
|
|
|
|
|
|
|
|
#include "MemoryX.h"
|
|
|
|
|
|
|
|
class UIHandle;
|
|
|
|
using UIHandlePtr = std::shared_ptr<UIHandle>;
|
|
|
|
class wxDC;
|
|
|
|
|
|
|
|
#include <wx/mousestate.h>
|
|
|
|
|
2017-12-08 11:26:09 +00:00
|
|
|
// MSVC 2013 says this can't be instantiated - but in fact it can
|
|
|
|
// using {} syntax.
|
2017-07-01 02:23:54 +00:00
|
|
|
struct TrackPanelDrawingContext {
|
|
|
|
wxDC &dc;
|
|
|
|
UIHandlePtr target;
|
|
|
|
wxMouseState lastState;
|
2017-12-08 11:26:09 +00:00
|
|
|
|
|
|
|
// MSVC 2013 has a bug and reports
|
|
|
|
// warning C4610: struct 'TrackPanelDrawingContext'
|
|
|
|
// can never be instantiated
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
// Add a default initialiser here to workaround that?
|
|
|
|
//TrackPanelDrawingContext();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2017-07-01 02:23:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|