summaryrefslogtreecommitdiff
path: root/atk/atktext.c
diff options
context:
space:
mode:
authorPadraig O'Briain <padraigo@src.gnome.org>2001-05-23 10:10:01 +0000
committerPadraig O'Briain <padraigo@src.gnome.org>2001-05-23 10:10:01 +0000
commit6274c56be7c75bea224d55407d057fff497b3bdb (patch)
tree9831999a52554790e06502deacdb2874a66cc21a /atk/atktext.c
parent8a866f17360f1e886436d0dbc86f9275a7e813d4 (diff)
downloadatk-6274c56be7c75bea224d55407d057fff497b3bdb.tar.gz
Clarified behavior of atk_text_get_text_... interfaces
Corrected name of status bar role
Diffstat (limited to 'atk/atktext.c')
-rwxr-xr-xatk/atktext.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/atk/atktext.c b/atk/atktext.c
index e8471e2..0b09096 100755
--- a/atk/atktext.c
+++ b/atk/atktext.c
@@ -151,6 +151,13 @@ atk_text_get_character_at_offset (AtkText *text,
* @boundary_type: An #AtkTextBoundary
*
* Returns: the text after @offset up to the specified @boundary_type.
+ * If the boundary type is ATK_TEXT_BOUNDARY_WORD_START or
+ * ATK_TEXT_BOUNDARY_WORD_END part of a word may be returned.
+ * If the boundary type is ATK_TEXT_BOUNDARY_SENTENCE_START the start point
+ * will be the offset and will continue to the start of the next sentence.
+ * The first word may not be a complete word. Similarly for
+ * ATK_TEXT_BOUNDARY_SENTENCE_END, ATK_TEXT_BOUNDARY_LINE_START and
+ * ATK_TEXT_BOUNDARY_LINE_END
**/
gchar*
atk_text_get_text_after_offset (AtkText *text,
@@ -177,6 +184,12 @@ atk_text_get_text_after_offset (AtkText *text,
* @boundary_type: An #AtkTextBoundary
*
* Returns: the text at @offset up to the specified @boundary_type.
+ * If the boundary_type is ATK_TEXT_BOUNDARY_WORD_START or
+ * ATK_TEXT_BOUNDARY_WORD_END a complete word is returned;
+ * if the boundary type is ATK_TEXT_BOUNDARY_SENTENCE_START or
+ * ATK_TEXT_BOUNDARY_SENTENCE_END a complete sentence
+ * is returned; if the boundary type is ATK_TEXT_BOUNDARY_LINE_START or
+ * ATK_TEXT_BOUNDARY_LINE_END a complete line is returned.
**/
gchar*
atk_text_get_text_at_offset (AtkText *text,
@@ -202,7 +215,14 @@ atk_text_get_text_at_offset (AtkText *text,
* @offset: position
* @boundary_type: An #AtkTextBoundary
*
- * Returns: the text before @offset up to the specified @boundary_type.
+ * Returns: the text before @offset starting from the specified @boundary_type.
+ * If the boundary type is ATK_TEXT_BOUNDARY_WORD_START or
+ * ATK_TEXT_BOUNDARY_WORD_END part of a word may be returned.
+ * If the boundary type is ATK_TEXT_BOUNDARY_SENTENCE_START the start point
+ * will be at the start of the sentence, and will continue to the offset.
+ * The last word may not be a complete word. Similarly for
+ * ATK_TEXT_BOUNDARY_SENTENCE_END, ATK_TEXT_BOUNDARY_LINE_START and
+ * ATK_TEXT_BOUNDARY_LINE_END
**/
gchar*
atk_text_get_text_before_offset (AtkText *text,