TextT.getOffsetAtPoint

Gets the offset of the character located at coordinates x and y. x and y are interpreted as being relative to the screen or this widget's window depending on coords.

template TextT()
override
int
getOffsetAtPoint

Parameters

x int

screen x-position of character

y int

screen y-position of character

coords atk.types.CoordType

specify whether coordinates are relative to the screen or widget window

Return Value

Type: int

the offset to the character which is located at the specified x and y coordinates of -1 in case of failure.