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__
|
|
|
|
|
2021-05-21 18:13:13 +00:00
|
|
|
#include <memory>
|
2017-07-01 02:23:54 +00:00
|
|
|
|
|
|
|
class UIHandle;
|
|
|
|
using UIHandlePtr = std::shared_ptr<UIHandle>;
|
|
|
|
class wxDC;
|
|
|
|
|
2018-11-14 16:48:46 +00:00
|
|
|
#include <wx/mousestate.h> // member variable
|
2017-07-01 02:23:54 +00:00
|
|
|
|
|
|
|
struct TrackPanelDrawingContext {
|
|
|
|
wxDC &dc;
|
|
|
|
UIHandlePtr target;
|
|
|
|
wxMouseState lastState;
|
2018-01-06 13:03:48 +00:00
|
|
|
|
2018-11-03 17:34:48 +00:00
|
|
|
void *pUserData;
|
|
|
|
|
2018-01-13 19:04:25 +00:00
|
|
|
// This redundancy fixes an MSVC compiler warning:
|
|
|
|
TrackPanelDrawingContext() = delete;
|
|
|
|
};
|
2018-01-08 20:20:48 +00:00
|
|
|
|
2017-07-01 02:23:54 +00:00
|
|
|
#endif
|