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

Method TimeTrackHitTest

src/tracks/ui/EnvelopeHandle.cpp:83–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83UIHandlePtr EnvelopeHandle::TimeTrackHitTest(
84 std::weak_ptr<EnvelopeHandle> &holder,
85 const wxMouseState &state, const wxRect &rect,
86 const AudacityProject *pProject, const std::shared_ptr<TimeTrack> &tt)
87{
88 auto envelope = tt->GetEnvelope();
89 if (!envelope)
90 return {};
91 bool dB;
92 double dBRange;
93 float zoomMin, zoomMax;
94 GetTimeTrackData( *pProject, *tt, dBRange, dB, zoomMin, zoomMax);
95 return EnvelopeHandle::HitEnvelope(holder, state, rect, pProject, envelope,
96 std::dynamic_pointer_cast<const Channel>(tt),
97 zoomMin, zoomMax, dB, dBRange, true);
98}
99
100UIHandlePtr EnvelopeHandle::WaveChannelHitTest
101(std::weak_ptr<EnvelopeHandle> &holder,

Callers

nothing calls this directly

Calls 1

GetTimeTrackDataFunction · 0.85

Tested by

no test coverage detected