| 39 | } |
| 40 | |
| 41 | void ModulationMatrixHeader::resized() |
| 42 | { |
| 43 | // Use a FlexBox to lay out the header labels, matching the row layout. |
| 44 | juce::FlexBox flex; |
| 45 | flex.flexDirection = juce::FlexBox::Direction::row; |
| 46 | flex.items.add(juce::FlexItem(sourceLabel).withFlex(1.0f)); |
| 47 | flex.items.add(juce::FlexItem(amountLabel).withFlex(2.0f)); |
| 48 | flex.items.add(juce::FlexItem(polarityLabel).withFlex(1.0f)); |
| 49 | flex.items.add(juce::FlexItem(bypassLabel).withFlex(1.0f)); |
| 50 | flex.items.add(juce::FlexItem(destinationLabel).withFlex(1.0f)); |
| 51 | flex.items.add(juce::FlexItem().withWidth(35)); |
| 52 | flex.performLayout(getLocalBounds()); |
| 53 | } |
| 54 | |
| 55 | //============================================================================== |
| 56 | // ModulationMatrixRow Implementation |
nothing calls this directly
no outgoing calls
no test coverage detected