Method

AtspiTextget_offset_at_point

Declaration [src]

gint
atspi_text_get_offset_at_point (
  AtspiText* obj,
  gint x,
  gint y,
  AtspiCoordType type,
  GError** error
)

Description [src]

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

Parameters

x gint
 

The x coordinate of the point to be queried.

y gint
 

The y coordinate of the point to be queried.

type AtspiCoordType
 

An AtspiCoordType indicating the coordinate system in which the values should be returned.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gint
 

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