107 jassert (range.min < range.max);
111 bool isValid() const noexcept {
return valid; }
125 double stepSize = 0.0;
156 double getCurrentValue() const final {
return getCurrentValueAsString().getDoubleValue(); }
A value interface that represents a non-ranged numeric value.
void setValue(double newValue) override=0
Sets the current value to a new value.
String getCurrentValueAsString() const final
Returns the current value as a String.
AccessibleValueRange getRange() const final
If this is a ranged value, this should return a valid AccessibleValueRange object representing the su...
bool isReadOnly() const override=0
Returns true if the value is read-only and cannot be modified by an accessibility client.
double getCurrentValue() const override=0
Returns the current value.
void setValueAsString(const String &newValue) final
Sets the current value to a new String value.
A value interface that represents a ranged numeric value.
void setValue(double newValue) override=0
Sets the current value to a new value.
void setValueAsString(const String &newValue) final
Sets the current value to a new String value.
double getCurrentValue() const override=0
Returns the current value.
bool isReadOnly() const override=0
Returns true if the value is read-only and cannot be modified by an accessibility client.
AccessibleValueRange getRange() const override=0
Returns the range.
String getCurrentValueAsString() const final
Returns the current value as a String.
A value interface that represents a text value.
void setValue(double newValue) final
Sets the current value to a new double value.
AccessibleValueRange getRange() const final
If this is a ranged value, this should return a valid AccessibleValueRange object representing the su...
String getCurrentValueAsString() const override=0
Returns the current value.
double getCurrentValue() const final
Returns the current value as a double.
bool isReadOnly() const override=0
Returns true if the value is read-only and cannot be modified by an accessibility client.
void setValueAsString(const String &newValue) override=0
Sets the current value to a new value.
Represents the range of this value, if supported.
double getMaximumValue() const noexcept
Returns the maximum value for this range.
double getInterval() const noexcept
Returns the interval for this range.
double getMinimumValue() const noexcept
Returns the minimum value for this range.
AccessibleValueRange()=default
Constructor.
bool isValid() const noexcept
Returns true if this represents a valid range.
AccessibleValueRange(MinAndMax valueRange, double interval)
Constructor.
The minimum and maximum values for this range, inclusive.
An abstract interface representing the value of an accessibility element.
virtual double getCurrentValue() const =0
Returns the current value as a double.
virtual void setValueAsString(const String &newValue)=0
Sets the current value to a new String value.
virtual bool isReadOnly() const =0
Returns true if the value is read-only and cannot be modified by an accessibility client.
virtual String getCurrentValueAsString() const =0
Returns the current value as a String.
virtual void setValue(double newValue)=0
Sets the current value to a new double value.
virtual ~AccessibilityValueInterface()=default
Destructor.
virtual AccessibleValueRange getRange() const =0
If this is a ranged value, this should return a valid AccessibleValueRange object representing the su...