MCPcopy Create free account
hub / github.com/TheWaveWarden/odin2 / paint

Method paint

Source/gui/DrawableSlider.cpp:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void DrawableSlider::paint(Graphics &g) {
40 SET_INTERPOLATION_QUALITY(g)
41
42 const auto handle = UIAssetManager::getInstance()->getUIAsset(UIAssets::Indices::fader_cap, ConfigFileManager::getInstance().getOptionGuiScale());
43 const auto y = (1.f - valueToProportionOfLength(getValue())) * (getHeight() - juce::roundToInt(float(handle.getHeight()) * 0.9f));
44 g.drawImageAt(handle, 0, y);
45}
46
47String DrawableSlider::getTextFromValue(double value) {
48 //apparently there's a better solution:

Callers

nothing calls this directly

Calls 2

getUIAssetMethod · 0.80
getOptionGuiScaleMethod · 0.80

Tested by

no test coverage detected