TextInput.nearestCharacter

Find the closest index to the given position.

class TextInput
size_t
nearestCharacter
(
Vector2 needlePx
)

Return Value

Type: size_t

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

Meta