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

Method paint

Lib/Components/QuantizeForceSlider.cpp:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void QuantizeForceSlider::paint(Graphics& g)
27{
28 g.setColour(juce::Colours::black);
29 g.setFont(UIDefines::DROPDOWN_FONT());
30
31 g.drawText(std::to_string(static_cast<int>(std::round(mSlider.getValue() * 100.0f))),
32 Rectangle<int>(133, 0, 23, 17),
33 juce::Justification::centredRight);
34}
35
36void QuantizeForceSlider::setTooltip(const String& inTooltip)
37{

Callers

nothing calls this directly

Calls 1

DROPDOWN_FONTFunction · 0.85

Tested by

no test coverage detected