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

Method setLayoutMode

Source/Panels/ControlPanel/Graph Components/GraphPanel.cpp:34–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void GraphPanel::setLayoutMode(LayoutMode newMode)
35{
36 if (currentLayoutMode != newMode)
37 {
38 currentLayoutMode = newMode;
39
40 // Update visibility based on the new mode
41 distortionGraph.setVisible(currentLayoutMode == LayoutMode::Band);
42 oscilloscope.setVisible(true);
43 vuPanel.setVisible(true);
44 widthGraph.setVisible(true);
45
46 // Trigger a call to resized() to apply the new layout
47 resized();
48 }
49}
50
51void GraphPanel::paint(juce::Graphics& g)
52{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected