1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-07 06:55:52 +01:00
Files
audacity/src/TrackPanelDrawingContext.h
Paul Licameli e6e96de0fd Replace most inclusions of MemoryX.h with <memory> ...
... Most often it was needed for a custom definition of std::make_unique, but
we build C++14 now.
2021-06-02 07:08:19 -04:00

34 lines
692 B
C++

/**********************************************************************
Audacity: A Digital Audio Editor
TrackPanelDrawingContext.h
Paul Licameli
**********************************************************************/
#ifndef __AUDACITY_TRACK_PANEL_DRAWING_CONTEXT__
#define __AUDACITY_TRACK_PANEL_DRAWING_CONTEXT__
#include <memory>
class UIHandle;
using UIHandlePtr = std::shared_ptr<UIHandle>;
class wxDC;
#include <wx/mousestate.h> // member variable
struct TrackPanelDrawingContext {
wxDC &dc;
UIHandlePtr target;
wxMouseState lastState;
void *pUserData;
// This redundancy fixes an MSVC compiler warning:
TrackPanelDrawingContext() = delete;
};
#endif