1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-04 21:50:51 +01:00

TrackPanelCell hit tests can return multiple results...

.. though only the first is used yet
This commit is contained in:
Paul Licameli
2017-06-29 10:34:57 -04:00
parent b3d62e2ab6
commit 8e44827980
32 changed files with 165 additions and 93 deletions

View File

@@ -25,6 +25,8 @@ class wxWindow;
class UIHandle;
using UIHandlePtr = std::shared_ptr<UIHandle>;
#include <vector>
// Abstract base class defining TrackPanel's access to specialist classes that
// implement drawing and user interactions
class AUDACITY_DLL_API TrackPanelCell /* not final */
@@ -32,12 +34,12 @@ class AUDACITY_DLL_API TrackPanelCell /* not final */
public:
virtual ~TrackPanelCell () = 0;
// Return null, or a pointer to an object that can be queried for a status
// bar message and cursor appropriate to the point, and that dispatches
// Return pointers to objects that can be queried for a status
// bar message and cursor appropriate to the point, and that dispatch
// mouse button events.
// The button-down state passed to the function is as it will be at click
// time -- not necessarily as it is now.
virtual UIHandlePtr HitTest
virtual std::vector<UIHandlePtr> HitTest
(const TrackPanelMouseState &state,
const AudacityProject *pProject) = 0;