Text.getOffsetAtPoint

int getOffsetAtPoint(int x, int y, atk.types.CoordType coords)

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.

Parameters

xscreen x-position of character
yscreen y-position of character
coordsspecify whether coordinates are relative to the screen or widget window

Returns

the offset to the character which is located at the specified

x and y coordinates of -1 in case of failure.