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

Method OnMouse

src/widgets/MeterPanel.cpp:665–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663}
664
665void MeterPanel::OnMouse(wxMouseEvent &evt)
666{
667 if ((evt.GetEventType() == wxEVT_MOTION || evt.Entering() || evt.Leaving())) {
668 mLayoutValid = false;
669 Refresh();
670 }
671
672 if (mStyle == MixerTrackCluster) // MixerTrackCluster style has no menu.
673 return;
674
675 if (evt.Entering()) {
676 mTipTimer.StartOnce(500);
677 }
678 else if(evt.Leaving())
679 mTipTimer.Stop();
680
681 if (evt.RightDown())
682 ShowMenu(evt.GetPosition());
683 else
684 {
685
686 if (mSlider)
687 mSlider->OnMouseEvent(evt);
688 }
689}
690
691void MeterPanel::OnCharHook(wxKeyEvent& evt)
692{

Callers

nothing calls this directly

Calls 2

StopMethod · 0.45
OnMouseEventMethod · 0.45

Tested by

no test coverage detected