1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-04 03:40:07 +00:00

Added Slider::isRotary()

This commit is contained in:
jules 2015-01-14 10:54:05 +00:00
parent 7c48d2cff8
commit ddb7e88cf9
2 changed files with 6 additions and 3 deletions

View file

@ -1576,10 +1576,11 @@ void Slider::valueChanged() {}
void Slider::setPopupMenuEnabled (const bool menuEnabled) { pimpl->menuEnabled = menuEnabled; }
void Slider::setScrollWheelEnabled (const bool enabled) { pimpl->scrollWheelEnabled = enabled; }
bool Slider::isHorizontal() const noexcept { return pimpl->isHorizontal(); }
bool Slider::isVertical() const noexcept { return pimpl->isVertical(); }
bool Slider::isHorizontal() const noexcept { return pimpl->isHorizontal(); }
bool Slider::isVertical() const noexcept { return pimpl->isVertical(); }
bool Slider::isRotary() const noexcept { return pimpl->isRotary(); }
float Slider::getPositionOfValue (const double value) { return pimpl->getPositionOfValue (value); }
float Slider::getPositionOfValue (const double value) { return pimpl->getPositionOfValue (value); }
//==============================================================================
void Slider::paint (Graphics& g) { pimpl->paint (g, getLookAndFeel()); }

View file

@ -753,6 +753,8 @@ public:
bool isHorizontal() const noexcept;
/** True if the slider moves vertically. */
bool isVertical() const noexcept;
/** True if the slider moves vertically. */
bool isRotary() const noexcept;
//==============================================================================
/** A set of colour IDs to use to change the colour of various aspects of the slider.