Audacity 3.2.0
NoteTrackAffordanceControls.h
Go to the documentation of this file.
1/*!********************************************************************
2*
3 Audacity: A Digital Audio Editor
4
5 NoteTrackAffordanceControls.h
6
7 Vitaly Sverchinsky
8
9 **********************************************************************/
10
11#pragma once
12
13#include "../../../ui/CommonTrackPanelCell.h"
14
16class SelectHandle;
18
19class AUDACITY_DLL_API NoteTrackAffordanceControls : public CommonTrackCell
20{
21 std::weak_ptr<NoteTrackAffordanceHandle> mAffordanceHandle;
22 std::weak_ptr<SelectHandle> mSelectHandle;
23public:
24 NoteTrackAffordanceControls(const std::shared_ptr<Track>& pTrack);
25
26 std::vector<UIHandlePtr> HitTest(const TrackPanelMouseState& state, const AudacityProject* pProject) override;
27
28 void Draw(TrackPanelDrawingContext& context, const wxRect& rect, unsigned iPass) override;
29
30 bool IsSelected() const;
31};
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
std::weak_ptr< NoteTrackAffordanceHandle > mAffordanceHandle
std::weak_ptr< SelectHandle > mSelectHandle
virtual std::vector< UIHandlePtr > HitTest(const TrackPanelMouseState &state, const AudacityProject *pProject)=0
virtual void Draw(TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass)