}
}
+/**
+ *atk_text_get_text:
+ *@text: an #AtkText
+ *@start_offset: start position
+ *@end_offset: end position
+ *
+ *Returns the text between @start_offset and @end_offset.
+ **/
gchar*
atk_text_get_text (AtkText *text,
gint start_offset,
return NULL;
}
+/**
+ *atk_text_get_character_at_offset
+ *@text: an #AtkText
+ *@offset: position
+ *
+ *Returns the character at @offset.
+ **/
gunichar
atk_text_get_character_at_offset (AtkText *text,
gint offset)
return (gunichar) 0;
}
+/**
+ *atk_text_get_text_after_offset
+ *@text: an #AtkText
+ *@offset: position
+ *@boundary_type: An #AtkTextBoundary
+ *
+ *Returns the text after @offset up to the specified @boundary_type.
+ **/
gchar*
atk_text_get_text_after_offset (AtkText *text,
gint offset,
return NULL;
}
+/**
+ *atk_text_get_text_at_offset
+ *@text: an #AtkText
+ *@offset: position
+ *@boundary_type: An #AtkTextBoundary
+ *
+ *Returns the text at @offset up to the specified @boundary_type.
+ **/
gchar*
atk_text_get_text_at_offset (AtkText *text,
gint offset,
return NULL;
}
+/**
+ *atk_text_get_text_before_offset
+ *@text: an #AtkText
+ *@offset: position
+ *@boundary_type: An #AtkTextBoundary
+ *
+ *Returns the text before @offset up to the specified @boundary_type.
+ **/
gchar*
atk_text_get_text_before_offset (AtkText *text,
gint offset,
return NULL;
}
+/**
+ *atk_text_get_caret_offset
+ *@text: an #AtkText
+ *
+ *Returns the position of the caret (cursor).
+ **/
gint
atk_text_get_caret_offset (AtkText *text)
{
return -1;
}
+/**
+ *atk_text_get_row_col_at_offset
+ *@text: an #AtkText
+ *@offset: position
+ *@row: row number
+ *@col: column number
+ *
+ *Given an @offset, the @row and @col arguments are filled appropriately.
+ **/
void
atk_text_get_row_col_at_offset (AtkText *text,
gint offset,
}
}
+/**
+ *atk_text_get_range_attributes
+ *@text: an #AtkText
+ *@start_offset: start position
+ *@end_offset: end position
+ *
+ *Returns a #PangoAttrList with the text attributes between the
+ *@start_offset and the @end_offset.
+ **/
PangoAttrList*
atk_text_get_range_attributes (AtkText *text,
gint start_offset,
return NULL;
}
+/**
+ *atk_text_get_character_extents
+ *@text: an #AtkText
+ *@offset: position
+ *@x: x-position of character
+ *@y: y-position of character
+ *@length: length of character
+ *@width: width of character
+ *
+ *Given an @offset, the @x, @y, @length, and @width values are filled
+ *appropriately.
+ **/
void
atk_text_get_character_extents (AtkText *text,
gint offset,
}
}
+/**
+ *atk_text_get_character_count
+ *@text: an #AtkText
+ *
+ *Returns the number of characters.
+ **/
gint
atk_text_get_character_count (AtkText *text)
{
return -1;
}
+/**
+ *atk_text_get_offset_at_point
+ *@text: an #AtkText
+ *@x: x-position of character
+ *@y: y-position of character
+ *
+ *Returns the offset to the character which is located at
+ *the specified @x and @y coordinates.
+ **/
gint
atk_text_get_offset_at_point (AtkText *text,
gint x,
return -1;
}
+/**
+ *atk_text_get_selected_text
+ *@text: an #AtkText
+ *
+ *Returns the selected text.
+ **/
gchar*
atk_text_get_selected_text (AtkText *text)
{
return NULL;
}
+/**
+ *atk_text_get_selection_bounds
+ *@text: an #AtkText
+ *@start_offset: start position
+ *@end_offset: end position
+ *
+ *@start_offset and @end_offset are filled with the
+ *current selection bounds.
+ **/
void
atk_text_get_selection_bounds (AtkText *text,
gint *start_offset,
}
}
+/**
+ *atk_text_set_selection_bounds
+ *@text: an #AtkText
+ *@start_offset: start position
+ *@end_offset: end position
+ *
+ *The selection bounds are set to the specified @start_offset
+ *and @end_offset values.
+ *Returns TRUE if success, FALSE otherwise.
+ **/
gboolean
atk_text_set_selection_bounds (AtkText *text,
gint start_offset,
}
}
+/**
+ *atk_text_set_caret_offset
+ *@text: an #AtkText
+ *@offset: position
+ *
+ *Sets the caret (cursor) position to the specified @offset.
+ *Returns TRUE if success, FALSE otherwise.
+ **/
gboolean
atk_text_set_caret_offset (AtkText *text,
gint offset)