get_offset_at_point


Description:

public int get_offset_at_point (int x, int y, CoordType type) throws Error

Gets the character offset into the text at a given point.

Parameters:

this

a pointer to the Text object on which to operate.

x

the x coordinate of the point to be queried.

y

the y coordinate of the point to be queried.

type

an CoordType indicating the coordinate system in which the values should be returned.

Returns:

the offset (as a int) at the point (x, y) in the specified coordinate system.