TextInput.nearestCharacter

Find the closest index to the given position.

class TextInput
size_t
nearestCharacter

Return Value

Type: size_t

Index of the character. The index may be equal to character length.

Meta