An abstract interface which represents a UI element that supports a text interface.
virtual ~AccessibilityTextInterface()=default
Destructor.
virtual int getOffsetAtPoint(Point< int > point) const =0
Returns the index of the character at a given position in screen coordinates.
virtual bool isReadOnly() const =0
Returns true if the text being displayed is read-only or false if editable.
virtual int getTextInsertionOffset() const =0
Gets the current text insertion position, if supported.
virtual int getTotalNumCharacters() const =0
Returns the total number of characters in the text element.
virtual String getText(Range< int > range) const =0
Returns a section of text.
virtual void setSelection(Range< int > newRange)=0
Selects a section of the text.
virtual RectangleList< int > getTextBounds(Range< int > textRange) const =0
Returns the bounding box in screen coordinates for a range of text.
virtual Range< int > getSelection() const =0
Returns the range of characters that are currently selected, or an empty range if nothing is selected...
virtual void setText(const String &newText)=0
Replaces the text with a new string.
virtual bool isDisplayingProtectedText() const =0
Returns true if the text being displayed is protected and should not be exposed to the user,...
String getAllText() const
Returns the full text.