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

Method paint

NeuralNote/Source/Components/Views/NoteOptionsView.cpp:77–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void NoteOptionsView::paint(Graphics& g)
78{
79 g.setColour(WHITE_TRANSPARENT);
80 g.fillRoundedRectangle(0.0f,
81 static_cast<float>(LEFT_SECTIONS_TOP_PAD),
82 static_cast<float>(getWidth()),
83 static_cast<float>(getHeight() - LEFT_SECTIONS_TOP_PAD),
84 5.0f);
85
86 float alpha = mIsViewEnabled && isEnabled() ? 1.0f : DISABLED_ALPHA;
87
88 mMinMaxNoteSlider->setAlpha(alpha);
89 g.setColour(BLACK.withAlpha(alpha));
90
91 g.setFont(UIDefines::TITLE_FONT());
92 g.drawText("SCALE QUANTIZE", Rectangle<int>(24, 0, 274, 17), Justification::centredLeft);
93
94 g.setFont(UIDefines::LABEL_FONT());
95 g.drawText("RANGE", Rectangle<int>(19, mMinMaxNoteSlider->getY(), 80, 17), Justification::centredLeft);
96
97 g.drawText("KEY", Rectangle<int>(19, mRootNoteDropdown->getY(), 80, 17), Justification::centredLeft);
98
99 g.drawText("SNAP MODE", Rectangle<int>(19, mSnapMode->getY(), 80, 17), Justification::centredLeft);
100}
101
102void NoteOptionsView::parameterValueChanged(int parameterIndex, float newValue)
103{

Callers

nothing calls this directly

Calls 2

TITLE_FONTFunction · 0.85
LABEL_FONTFunction · 0.85

Tested by

no test coverage detected