MCPcopy Create free account
hub / github.com/amsynth/amsynth / paint

Method paint

src/core/gui/ControlPanel.cpp:189–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187ControlPanel::~ControlPanel() noexcept = default;
188
189void ControlPanel::paint(juce::Graphics &g)
190{
191 if (impl_->components_.empty()) {
192 g.setFont(15.f);
193 g.setColour(findColour(juce::Label::textColourId));
194 g.drawFittedText("Error: could not load " + impl_->skinDir_ + "/default/layout.ini",
195 20, 20, getWidth() - 40, getHeight() - 40,
196 juce::Justification::horizontallyCentred | juce::Justification::verticallyCentred, 2);
197 } else {
198 g.fillAll(juce::Colours::black);
199 }
200}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected