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>
|
|
|
|
|
2018-01-08 20:20:48 +00:00
|
|
|
// MSVC 2013 says this can't be instantiated - but in fact it can
|
|
|
|
// using {} syntax.
|
|
|
|
// As it's a bogus warning caused by a bug in MSVC2013, it's Ok to disable it.
|
|
|
|
#pragma warning( push )
|
|
|
|
#pragma warning( disable : 4510)
|
|
|
|
#pragma warning( disable : 4610)
|
|
|
|
|
2017-07-01 02:23:54 +00:00
|
|
|
struct TrackPanelDrawingContext {
|
|
|
|
wxDC &dc;
|
|
|
|
UIHandlePtr target;
|
|
|
|
wxMouseState lastState;
|
2018-01-07 00:09:38 +00:00
|
|
|
};
|
2018-01-06 13:03:48 +00:00
|
|
|
|
2018-01-08 20:20:48 +00:00
|
|
|
#pragma warning( pop )
|
|
|
|
|
2017-07-01 02:23:54 +00:00
|
|
|
#endif
|