get_offset_at_point


Description:

public abstract int get_offset_at_point (int x, int y, 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:

this

an Text

x

screen x-position of character

y

screen y-position of character

coords

specify 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.