Method

AtspiTextget_text_at_offset

Declaration [src]

AtspiTextRange*
atspi_text_get_text_at_offset (
  AtspiText* obj,
  gint offset,
  AtspiTextBoundaryType type,
  GError** error
)

Description [src]

Gets delimited text from an AtspiText object which includes a given text offset.

Deprecated since:2.10

Use atspi_text_get_string_at_offset.

Parameters

offset gint
 

A #gint indicating the offset from which the delimiter search is based.

type AtspiTextBoundaryType
 

An AtspiTextBoundaryType indicating whether the desired text string is a word, sentence, line, or attribute run.

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

Return value

Returns: AtspiTextRange
 

An AtspiTextRange containing a UTF-8 string representing the delimited text, whose delimiting boundaries bracket the current offset, or an empty string if no such text exists.

 The caller of the method takes ownership of the data, and is responsible for freeing it.