Method

AtspiTextget_attribute_run

Declaration [src]

GHashTable*
atspi_text_get_attribute_run (
  AtspiText* obj,
  gint offset,
  gboolean include_defaults,
  gint* start_offset,
  gint* end_offset,
  GError** error
)

Description [src]

Gets a set of attributes applied to a range of text from an AtspiText object, optionally including its ‘default’ attributes.

Parameters

offset gint
 

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

include_defaults gboolean
 

A #bool that, when set as FALSE, indicates the call should only return those attributes which are explicitly set on the current attribute run, omitting any attributes which are inherited from the default values.

start_offset gint*
 

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

 The argument will be set by the function.
end_offset gint*
 

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

 The argument will be set by the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GHashTable
 

A GHashTable with attributes defined at the indicated offset, optionally including the ‘default’ ones.

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