MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / setLineRelatedBoundsByX

Method setLineRelatedBoundsByX

Source/Panels/SpectrogramPanel/Multiband.cpp:522–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522void Multiband::setLineRelatedBoundsByX()
523{
524 // set line frequecny and position according to current x percentage of the width
525 for (int i = 0; i < lineNum; i++)
526 {
527 if (freqDividerGroup[i]->getToggleState())
528 {
529 float xPercent = freqDividerGroup[i]->getVerticalLine().getXPercent();
530 freqDividerGroup[i]->setBounds(xPercent * getWidth() - getWidth() / 200, 0, getWidth() / 10.0f, getHeight());
531 }
532 }
533}
534
535void Multiband::setSoloRelatedBounds()
536{

Callers

nothing calls this directly

Calls 1

getXPercentMethod · 0.80

Tested by

no test coverage detected