|
LMMS
|
#include <juce_AccessibilityTextInterface.h>
Public Member Functions | |
| virtual | ~AccessibilityTextInterface ()=default |
| virtual bool | isDisplayingProtectedText () const =0 |
| virtual bool | isReadOnly () const =0 |
| virtual int | getTotalNumCharacters () const =0 |
| virtual Range< int > | getSelection () const =0 |
| virtual void | setSelection (Range< int > newRange)=0 |
| virtual int | getTextInsertionOffset () const =0 |
| virtual String | getText (Range< int > range) const =0 |
| String | getAllText () const |
| virtual void | setText (const String &newText)=0 |
| virtual RectangleList< int > | getTextBounds (Range< int > textRange) const =0 |
| virtual int | getOffsetAtPoint (Point< int > point) const =0 |
An abstract interface which represents a UI element that supports a text interface.
A UI element can use this interface to provide extended textual information which cannot be conveyed using just the title, description, and help text properties of AccessibilityHandler. This is typically for text that an accessibility client might want to read line-by-line, or provide text selection and input for.
@tags{Accessibility}
|
virtualdefault |
Destructor.
|
inline |
Returns the full text.
|
pure virtual |
Returns the index of the character at a given position in screen coordinates.
Implemented in juce::CodeEditorComponent::CodeEditorAccessibilityHandler::CodeEditorComponentTextInterface, and juce::TextEditor::EditorAccessibilityHandler::TextEditorTextInterface.
Returns the range of characters that are currently selected, or an empty range if nothing is selected.
Implemented in juce::CodeEditorComponent::CodeEditorAccessibilityHandler::CodeEditorComponentTextInterface, and juce::TextEditor::EditorAccessibilityHandler::TextEditorTextInterface.
Returns a section of text.
Implemented in juce::CodeEditorComponent::CodeEditorAccessibilityHandler::CodeEditorComponentTextInterface, and juce::TextEditor::EditorAccessibilityHandler::TextEditorTextInterface.
|
pure virtual |
Returns the bounding box in screen coordinates for a range of text. As the range may span multiple lines, this method returns a RectangleList.
Implemented in juce::CodeEditorComponent::CodeEditorAccessibilityHandler::CodeEditorComponentTextInterface, and juce::TextEditor::EditorAccessibilityHandler::TextEditorTextInterface.
|
pure virtual |
Gets the current text insertion position, if supported.
Implemented in juce::CodeEditorComponent::CodeEditorAccessibilityHandler::CodeEditorComponentTextInterface, and juce::TextEditor::EditorAccessibilityHandler::TextEditorTextInterface.
|
pure virtual |
Returns the total number of characters in the text element.
Implemented in juce::CodeEditorComponent::CodeEditorAccessibilityHandler::CodeEditorComponentTextInterface, and juce::TextEditor::EditorAccessibilityHandler::TextEditorTextInterface.
|
pure virtual |
Returns true if the text being displayed is protected and should not be exposed to the user, for example a password entry field.
Implemented in juce::CodeEditorComponent::CodeEditorAccessibilityHandler::CodeEditorComponentTextInterface, and juce::TextEditor::EditorAccessibilityHandler::TextEditorTextInterface.
|
pure virtual |
Returns true if the text being displayed is read-only or false if editable.
Implemented in juce::CodeEditorComponent::CodeEditorAccessibilityHandler::CodeEditorComponentTextInterface, and juce::TextEditor::EditorAccessibilityHandler::TextEditorTextInterface.
Selects a section of the text.
Implemented in juce::CodeEditorComponent::CodeEditorAccessibilityHandler::CodeEditorComponentTextInterface, and juce::TextEditor::EditorAccessibilityHandler::TextEditorTextInterface.
Replaces the text with a new string.
Implemented in juce::CodeEditorComponent::CodeEditorAccessibilityHandler::CodeEditorComponentTextInterface, and juce::TextEditor::EditorAccessibilityHandler::TextEditorTextInterface.