| 217 | } |
| 218 | |
| 219 | void ArcSpectrogram::mouseMove(const juce::MouseEvent& evt) { |
| 220 | auto pos = evt.getEventRelativeTo(this).getPosition().toFloat(); |
| 221 | if (mCloudLeft.rect.contains(pos)) mCloudLeft.type = CloudType::TOUCH; |
| 222 | else if (mCloudRight.rect.contains(pos)) mCloudRight.type = CloudType::TOUCH; |
| 223 | else { |
| 224 | if (mCloudLeft.type == CloudType::TOUCH) mCloudLeft.type = CloudType::WAIT; |
| 225 | if (mCloudRight.type == CloudType::TOUCH) mCloudRight.type = CloudType::WAIT; |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | void ArcSpectrogram::mouseExit(const juce::MouseEvent&) { |
| 230 | if (mCloudLeft.type == CloudType::TOUCH) mCloudLeft.type = CloudType::WAIT; |
nothing calls this directly
no outgoing calls
no test coverage detected