TextField:getTextPositionFromPoint

From GiderosMobile
Revision as of 07:50, 21 May 2019 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2019.5<br/> '''<translate>Class</translate>:''' TextField<br/> =...")
(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.