Method

AtspiTextget_text_attributes

Declaration [src]

GHashTable*
atspi_text_get_text_attributes (
  AtspiText* obj,
  gint offset,
  gint* start_offset,
  gint* end_offset,
  GError** error
)

Description [src]

Gets the attributes applied to a range of text from an AtspiText object. The text attributes correspond to CSS attributes where possible.

Parameters

offset gint
 

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

start_offset gint*
 

A #gint pointer indicating the start of the desired text range.

 The argument will be set by the function.
 The instance takes ownership of the data, and is responsible for freeing it.
end_offset gint*
 

A #gint pointer indicating the first character past the desired range.

 The argument will be set by the function.
 The instance takes ownership of the data, and is responsible for freeing it.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GHashTable*
 

A GHashTable describing the attributes at the given character offset.

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