Skip to content

Commit

Permalink
Rename drawSliderMeter->drawRotarySliderMeter
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Jan 6, 2024
1 parent 391c388 commit 7035e72
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
32 changes: 16 additions & 16 deletions libs/tote_bag/juce_gui/lookandfeel/LookAndFeel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ void LookAndFeel::drawDrawableKnob (juce::Graphics& g,
sliderImage.drawAt (g, cX, cY, 1.0f);
}

void LookAndFeel::drawSliderMeter (juce::Graphics& g,
const juce::Rectangle<float> bounds,
const float lineWidth,
const float radius,
const float startAngle,
float endAngle,
const float toAngle,
juce::Slider& slider)
void LookAndFeel::drawRotarySliderMeter (juce::Graphics& g,
const juce::Rectangle<float> bounds,
const float lineWidth,
const float radius,
const float startAngle,
float endAngle,
const float toAngle,
juce::Slider& slider)
{
auto outline = slider.findColour (juce::Slider::rotarySliderOutlineColourId);
auto fill = slider.findColour (juce::Slider::rotarySliderFillColourId);
Expand Down Expand Up @@ -182,14 +182,14 @@ void LookAndFeel::drawRotarySlider (juce::Graphics& g,
const auto toAngle =
rotaryStartAngle + sliderPos * (rotaryEndAngle - rotaryStartAngle);

drawSliderMeter (g,
bounds,
lineW,
arcRadius,
rotaryStartAngle,
rotaryEndAngle,
toAngle,
slider);
drawRotarySliderMeter (g,
bounds,
lineW,
arcRadius,
rotaryStartAngle,
rotaryEndAngle,
toAngle,
slider);

const auto knobRadius = arcRadius * .80f;

Expand Down
16 changes: 8 additions & 8 deletions libs/tote_bag/juce_gui/lookandfeel/LookAndFeel.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ class LookAndFeel : public juce::LookAndFeel_V4,
};

private:
void drawSliderMeter (juce::Graphics& g,
const juce::Rectangle<float> bounds,
float lineWidth,
float arcRadius,
float rotaryStartAngle,
float rotaryEndAngle,
float toAngle,
juce::Slider& slider);
void drawRotarySliderMeter (juce::Graphics& g,
const juce::Rectangle<float> bounds,
float lineWidth,
float arcRadius,
float rotaryStartAngle,
float rotaryEndAngle,
float toAngle,
juce::Slider& slider);

void drawRotarySliderBase (juce::Graphics& g,
const float radius,
Expand Down

0 comments on commit 7035e72

Please sign in to comment.