MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / paint

Method paint

NeuralNote/Source/Components/Views/VisualizationPanel.cpp:98–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void VisualizationPanel::paint(Graphics& g)
99{
100 if (mMidiFileDrag.isVisible()) {
101 g.setColour(WHITE_TRANSPARENT);
102 g.fillRoundedRectangle(
103 Rectangle<int>(0, 0, KEYBOARD_WIDTH, mCombinedAudioMidiRegion.mAudioRegionHeight).toFloat(), 4);
104
105 g.setColour(BLACK);
106 g.setFont(UIDefines::LABEL_FONT());
107 g.drawFittedText("MIDI\nFILE\nTEMPO", Rectangle<int>(0, 0, KEYBOARD_WIDTH, 55), Justification::centred, 3);
108 }
109}
110
111void VisualizationPanel::clear()
112{

Callers

nothing calls this directly

Calls 1

LABEL_FONTFunction · 0.85

Tested by

no test coverage detected