Difference between revisions of "TextField:getTextPositionFromPoint"
From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2019.5<br/> '''<translate>Class</translate>:''' TextField<br/> =...") |
|||
Line 15: | Line 15: | ||
'''<translate>Returns</translate>''' (number) <translate>The corrected X coordinate.</translate><br/> | '''<translate>Returns</translate>''' (number) <translate>The corrected X coordinate.</translate><br/> | ||
'''<translate>Returns</translate>''' (number) <translate>The corrected Y coordinate.</translate><br/> | '''<translate>Returns</translate>''' (number) <translate>The corrected Y coordinate.</translate><br/> | ||
+ | |||
+ | {{TextField}} |
Revision as of 01:39, 4 December 2019
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.
- TextField
- TextField.new
- TextField:getLayout
- TextField:getLetterSpacing
- TextField:getLineHeight
- TextField:getPointFromTextPosition
- TextField:getSample
- TextField:getText
- TextField:getTextColor
- TextField:getTextPositionFromPoint
- TextField:setFont
- TextField:setLayout
- TextField:setLetterSpacing
- TextField:setSample
- TextField:setText
- TextField:setTextColor