32 const double interval,
54 const double interval,
void addAndMakeVisible(Component *child, int zOrder=-1)
Adds a child component to this one, and also makes the child visible if it isn't already.
A base class for a component that goes in a PropertyPanel and displays one of an item's properties.
SliderPropertyComponent(const String &propertyName, double rangeMin, double rangeMax, double interval, double skewFactor=1.0, bool symmetricSkew=false)
Creates the property component.
Slider slider
The slider component being used in this component.
virtual void setValue(double newValue)
Called when the user moves the slider to change its value.
virtual double getValue() const
Returns the value that the slider should show.
~SliderPropertyComponent() override
Destructor.
void refresh() override
Updates the property component if the item it refers to has changed.
void setSliderStyle(SliderStyle newStyle)
Changes the type of slider interface being used.
std::function< void()> onValueChange
You can assign a lambda to this callback object to have it called when the slider value is changed.
void setSkewFactor(double factor, bool symmetricSkew=false)
Sets up a skew factor to alter the way values are distributed.
double getValue() const
Returns the slider's current value.
@ LinearBar
A horizontal bar slider with the text label drawn on top of it.
void setValue(double newValue, NotificationType notification=sendNotificationAsync)
Changes the slider's current value.
Value & getValueObject() noexcept
Returns the Value object that represents the slider's current position.
void setRange(double newMinimum, double newMaximum, double newInterval=0)
Sets the limits that the slider's value can take.
Represents a shared variant value.
void referTo(const Value &valueToReferTo)
Makes this object refer to the same underlying ValueSource as another one.
constexpr bool approximatelyEqual(Type a, Type b, Tolerance< Type > tolerance=Tolerance< Type >{} .withAbsolute(std::numeric_limits< Type >::min()) .withRelative(std::numeric_limits< Type >::epsilon()))
Returns true if the two floating-point numbers are approximately equal.
@ dontSendNotification
No notification message should be sent.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...