109 emailAddressKeyboard,
Holds a resizable array of primitive or copy-by-value objects.
A pair of (x, y) coordinates.
A general-purpose range object, that simply represents any linear range with a start and end point.
Maintains a set of rectangles as a complex region.
Manages a rectangle and allows geometric operations to be performed on it.
An abstract base class which can be implemented by components that function as text editors.
virtual ~TextInputTarget()=default
Destructor.
virtual void insertTextAtCaret(const String &textToInsert)=0
Inserts some text, overwriting the selected text region, if there is one.
virtual int getTotalNumChars() const =0
Returns the total number of codepoints in the string.
VirtualKeyboardType
A set of possible on-screen keyboard types, for use in the getKeyboardType() method.
virtual RectangleList< int > getTextBounds(Range< int > textRange) const =0
Returns the bounding box for a range of text in the editor.
virtual void setHighlightedRegion(const Range< int > &newRange)=0
Sets the currently-selected text region.
Rectangle< int > getCaretRectangle() const
Returns the position of the caret, relative to the component's origin.
virtual String getTextInRange(const Range< int > &range) const =0
Returns a specified sub-section of the text.
virtual Range< int > getHighlightedRegion() const =0
Returns the extents of the selected text region, or an empty range if nothing is selected,...
virtual int getCaretPosition() const =0
Returns the current index of the caret.
virtual void setTemporaryUnderlining(const Array< Range< int > > &underlinedRegions)=0
Sets a number of temporarily underlined sections.
virtual bool isTextInputActive() const =0
Returns true if this input target is currently accepting input.
virtual int getCharIndexForPoint(Point< int > point) const =0
Returns the index closest to the given point.
virtual Rectangle< int > getCaretRectangleForCharIndex(int characterIndex) const =0
Returns the bounding box of the character at the given index.
virtual VirtualKeyboardType getKeyboardType()
Returns the target's preference for the type of keyboard that would be most appropriate.