TextField:getTextPositionFromPoint

From GiderosMobile
Revision as of 14:33, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2019.5
Class: TextField

Description

Returns the offset into a text from x,y coordinates.

(number),(number),(number) = TextField:getTextPositionFromPoint(x,y)

Parameters

x: (number) the queried X coordinate
y: (number) the queried Y coordinate

Return values

Returns (number) the resolved byte offset within the text string
Returns (number) the corrected X coordinate
Returns (number) the corrected Y coordinate