MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / DisplayLFOControl

Method DisplayLFOControl

Source/Slider.cpp:279–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279void 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
303void FloatSlider::OnClicked(float x, float y, bool right)
304{

Callers

nothing calls this directly

Calls 8

SetLFOEnabledMethod · 0.80
SetOwningContainerMethod · 0.80
GetOwningContainerMethod · 0.80
PushModalFocusItemMethod · 0.80
SetSliderMethod · 0.80
IsPinnedMethod · 0.45
GetDimensionsMethod · 0.45
SetPositionMethod · 0.45

Tested by

no test coverage detected