|
LMMS
|
#include <juce_AccessibilityValueInterface.h>
Classes | |
| class | AccessibleValueRange |
Public Member Functions | |
| virtual | ~AccessibilityValueInterface ()=default |
| virtual bool | isReadOnly () const =0 |
| virtual double | getCurrentValue () const =0 |
| virtual String | getCurrentValueAsString () const =0 |
| virtual void | setValue (double newValue)=0 |
| virtual void | setValueAsString (const String &newValue)=0 |
| virtual AccessibleValueRange | getRange () const =0 |
An abstract interface representing the value of an accessibility element.
Values should be used when information needs to be conveyed which cannot be represented by the accessibility element's label alone. For example, a gain slider with the label "Gain" needs to also provide a value for its position whereas a "Save" button does not.
This class allows for full control over the value text/numeric conversion, ranged, and read-only properties but in most cases you'll want to use one of the derived classes below which handle some of this for you.
@tags{Accessibility}
|
virtualdefault |
Destructor.
|
pure virtual |
Returns the current value as a double.
Implemented in juce::AccessibilityNumericValueInterface, juce::AccessibilityRangedNumericValueInterface, juce::AccessibilityTextValueInterface, and juce::SliderAccessibilityHandler::ValueInterface.
|
pure virtual |
Returns the current value as a String.
Implemented in juce::AccessibilityNumericValueInterface, juce::AccessibilityRangedNumericValueInterface, juce::AccessibilityTextValueInterface, juce::ButtonAccessibilityHandler::ButtonValueInterface, juce::ComboBoxAccessibilityHandler::ComboBoxValueInterface, juce::LabelAccessibilityHandler::LabelValueInterface, and juce::SliderAccessibilityHandler::ValueInterface.
|
pure virtual |
If this is a ranged value, this should return a valid AccessibleValueRange object representing the supported numerical range.
Implemented in juce::AccessibilityNumericValueInterface, juce::AccessibilityRangedNumericValueInterface, juce::AccessibilityTextValueInterface, and juce::SliderAccessibilityHandler::ValueInterface.
|
pure virtual |
Returns true if the value is read-only and cannot be modified by an accessibility client.
Implemented in juce::AccessibilityNumericValueInterface, juce::AccessibilityRangedNumericValueInterface, juce::AccessibilityTextValueInterface, juce::ButtonAccessibilityHandler::ButtonValueInterface, juce::ComboBoxAccessibilityHandler::ComboBoxValueInterface, juce::LabelAccessibilityHandler::LabelValueInterface, and juce::SliderAccessibilityHandler::ValueInterface.
|
pure virtual |
Sets the current value to a new double value.
Implemented in juce::AccessibilityNumericValueInterface, juce::AccessibilityRangedNumericValueInterface, juce::AccessibilityTextValueInterface, and juce::SliderAccessibilityHandler::ValueInterface.
|
pure virtual |
Sets the current value to a new String value.
Implemented in juce::AccessibilityNumericValueInterface, juce::AccessibilityRangedNumericValueInterface, juce::AccessibilityTextValueInterface, juce::ButtonAccessibilityHandler::ButtonValueInterface, juce::ComboBoxAccessibilityHandler::ComboBoxValueInterface, juce::LabelAccessibilityHandler::LabelValueInterface, and juce::SliderAccessibilityHandler::ValueInterface.