MCPcopy Create free account
hub / github.com/audacity/audacity / Click

Method Click

src/tracks/ui/BackgroundCell.cpp:55–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 { return nullptr; }
54
55 Result Click
56 (const TrackPanelMouseEvent &evt, AudacityProject *pProject) override
57 {
58 using namespace RefreshCode;
59 const wxMouseEvent &event = evt.event;
60 // Do not start a drag
61 Result result = Cancelled;
62
63 // AS: If the user clicked outside all tracks, make nothing
64 // selected.
65 if ((event.ButtonDown() || event.ButtonDClick())) {
66 SelectionState::Get( *pProject ).SelectNone(
67 TrackList::Get( *pProject ) );
68 result |= RefreshAll;
69 }
70
71 return result;
72 }
73
74 Result Drag
75 (const TrackPanelMouseEvent &, AudacityProject *) override

Callers

nothing calls this directly

Calls 2

GetFunction · 0.85
SelectNoneMethod · 0.80

Tested by

no test coverage detected