| 277 | } |
| 278 | |
| 279 | void FloatSlider::DisplayLFOControl() |
| 280 | { |
| 281 | FloatSliderLFOControl* lfo = AcquireLFO(); |
| 282 | if (lfo) |
| 283 | { |
| 284 | if (lfo->IsPinned()) |
| 285 | return; |
| 286 | |
| 287 | float thisx, thisy; |
| 288 | GetPosition(thisx, thisy); |
| 289 | |
| 290 | lfo->SetLFOEnabled(true); |
| 291 | |
| 292 | float w, h; |
| 293 | lfo->GetDimensions(w, h); |
| 294 | lfo->SetPosition(thisx, thisy + 15); |
| 295 | lfo->SetOwningContainer(GetModuleParent()->GetOwningContainer()); |
| 296 | TheSynth->PushModalFocusItem(lfo); |
| 297 | |
| 298 | if (TheLFOController) |
| 299 | TheLFOController->SetSlider(this); |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | void FloatSlider::OnClicked(float x, float y, bool right) |
| 304 | { |
nothing calls this directly
no test coverage detected