MCPcopy Create free account
hub / github.com/ZL-Audio/ZLEqualizer / mouseDown

Method mouseDown

source/gui/dragger/dragger_component.cpp:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 void Dragger::mouseDown(const juce::MouseEvent& e) {
44 current_pos_ = button_pos_;
45 global_pos_ = e.position + button_pos_;
46 button_.setToggleState(true, juce::NotificationType::sendNotificationSync);
47 const BailOutChecker checker(this);
48 listeners_.callChecked(checker, [&](Dragger::Listener& l) { l.dragStarted(this); });
49 }
50
51 void Dragger::mouseUp(const juce::MouseEvent& e) {
52 juce::ignoreUnused(e);

Callers

nothing calls this directly

Calls 1

dragStartedMethod · 0.80

Tested by

no test coverage detected