Skip to content

Commit

Permalink
Rename drawKnob -> drawRotarySliderBase
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Jan 5, 2024
1 parent cbb21c0 commit f10ead3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions libs/tote_bag/juce_gui/lookandfeel/LookAndFeel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ void LookAndFeel::drawDrawableKnob (juce::Graphics& g,
sliderImage.drawAt (g, cX, cY, 1.0f);
}

void LookAndFeel::drawKnob (juce::Graphics& g,
const float radius,
const float toAngle,
const juce::Rectangle<float> bounds,
juce::Slider&)
void LookAndFeel::drawRotarySliderBase (juce::Graphics& g,
const float radius,
const float toAngle,
const juce::Rectangle<float> bounds,
juce::Slider&)
{
const auto centreX = bounds.getCentreX();
const auto centreY = bounds.getCentreY();
Expand Down Expand Up @@ -189,7 +189,7 @@ void LookAndFeel::drawRotarySlider (juce::Graphics& g,

const auto knobRadius = arcRadius * .80f;

drawKnob (g, knobRadius, toAngle, bounds, slider);
drawRotarySliderBase (g, knobRadius, toAngle, bounds, slider);
}

juce::Font LookAndFeel::getTextButtonFont (juce::TextButton&, int buttonHeight)
Expand Down
10 changes: 5 additions & 5 deletions libs/tote_bag/juce_gui/lookandfeel/LookAndFeel.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ class LookAndFeel : public juce::LookAndFeel_V4,
};

private:
void drawKnob (juce::Graphics& g,
const float radius,
const float toAngle,
const juce::Rectangle<float> bounds,
juce::Slider&);
void drawRotarySliderBase (juce::Graphics& g,
const float radius,
const float toAngle,
const juce::Rectangle<float> bounds,
juce::Slider&);

FontHolder fontHolder;

Expand Down

0 comments on commit f10ead3

Please sign in to comment.