src/tracks/playabletrack/wavetrack/ui/SpectrumView.cpp
// This always hits, but details of the hit vary with mouse position and
// key state.
This always hits, but details of the hit vary with mouse position and
key state.
This always hits but details of the hit vary with mouse position and key state .
static UIHandlePtr BrushHandleHitTest(
   std::weak_ptr<BrushHandle> &holder,
   const TrackPanelMouseState &st, const AudacityProject *pProject,
   const std::shared_ptr<SpectrumView> &pTrackView,
   const std::shared_ptr<SpectralData> &mpData)
{
   const auto &viewInfo = ViewInfo::Get( *pProject );
   auto &projectSettings = ProjectSettings::Get( *pProject );
   auto result = std::make_shared<BrushHandle>(
      std::make_shared<SpectrumView::SpectralDataSaver>(*pTrackView),
      pTrackView, TrackList::Get( *pProject ),
      st, viewInfo, mpData, projectSettings);
   result = AssignUIHandlePtr(holder, result);
   auto pTrack = pTrackView->FindTrack();
   if (!pTrack->GetSelected() || !viewInfo.bAdjustSelectionEdges)
   {
      return result;
   }
   return result;
}
static UIHandlePtr BrushHandleHitTest ( std :: weak_ptr < BrushHandle > & holder , const TrackPanelMouseState & st , const AudacityProject * pProject , const std :: shared_ptr < SpectrumView > & pTrackView , const std :: shared_ptr < SpectralData > & mpData ) { const auto & viewInfo = ViewInfo :: Get ( * pProject ) ; auto & projectSettings = ProjectSettings :: Get ( * pProject ) ; auto result = std :: make_shared < BrushHandle > ( std :: make_shared < SpectrumView :: SpectralDataSaver > ( * pTrackView ) , pTrackView , TrackList :: Get ( * pProject ) , st , viewInfo , mpData , projectSettings ) ; result = AssignUIHandlePtr ( holder , result ) ; auto pTrack = pTrackView -> FindTrack ( ) ; if ( ! pTrack -> GetSelected ( ) || ! viewInfo . bAdjustSelectionEdges ) { return result ; } return result ; }
This always hits, but details of the hit vary with mouse position and
key state.
This always hits but details of the hit vary with mouse position and key state .
//Make sure we are within the selected track // Adjusting the selection edges can be turned off in // the preferences...