| 81 | } |
| 82 | |
| 83 | UIHandlePtr 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 | |
| 100 | UIHandlePtr EnvelopeHandle::WaveChannelHitTest |
| 101 | (std::weak_ptr<EnvelopeHandle> &holder, |
nothing calls this directly
no test coverage detected