11#ifndef __AUDACITY_BACKGROUND_CELL__
12#define __AUDACITY_BACKGROUND_CELL__
41 std::vector<UIHandlePtr>
HitTest
51 const wxRect &rect,
unsigned iPass )
override;
55 const wxRect &rect,
const wxRect &panelRect,
unsigned iPass )
override;
58 const wxRect &rect,
const wxPoint *pPosition,
AudacityProject *pProject )
Utility ClientData::Site to register hooks into a host class that attach client data.
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Class representing the background of a Track. It provides the hit test function that tells us what wa...
static BackgroundCell & Get(AudacityProject &project)
std::vector< MenuItem > GetMenuItems(const wxRect &rect, const wxPoint *pPosition, AudacityProject *pProject) override
Return a list of items for DoContextMenu() (empties for separators)
BackgroundCell(AudacityProject *pProject)
std::weak_ptr< ZoomHandle > mZoomHandle
std::shared_ptr< Track > DoFindTrack() override
virtual ~BackgroundCell()
AudacityProject * mpProject
std::vector< UIHandlePtr > HitTest(const TrackPanelMouseState &state, const AudacityProject *) override
wxRect DrawingArea(TrackPanelDrawingContext &, const wxRect &rect, const wxRect &panelRect, unsigned iPass) override
std::weak_ptr< BackgroundHandle > mHandle
void Draw(TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override
A convenient default parameter for class template Site.