diff options
author | Lucy Brophy <lbrophy@src.gnome.org> | 2001-06-14 16:16:03 +0000 |
---|---|---|
committer | Lucy Brophy <lbrophy@src.gnome.org> | 2001-06-14 16:16:03 +0000 |
commit | 4f34fc6e151e4f46f282afb1b5c23b09eff1d3f1 (patch) | |
tree | c7d17628dbc93346ccbbe78611fb9c41d8176d26 | |
parent | aaa09ed668114caa133e7749917e1d083323015d (diff) | |
download | atk-4f34fc6e151e4f46f282afb1b5c23b09eff1d3f1.tar.gz |
Changes to the atk_text_get_text[at/before/after]_offset interfaces
-rwxr-xr-x | atk/atktext.c | 18 | ||||
-rwxr-xr-x | atk/atktext.h | 24 |
2 files changed, 30 insertions, 12 deletions
diff --git a/atk/atktext.c b/atk/atktext.c index 21bf70d..886a9ab 100755 --- a/atk/atktext.c +++ b/atk/atktext.c @@ -170,7 +170,9 @@ atk_text_get_character_at_offset (AtkText *text, gchar* atk_text_get_text_after_offset (AtkText *text, gint offset, - AtkTextBoundary boundary_type) + AtkTextBoundary boundary_type, + gint *startOffset, + gint *endOffset) { AtkTextIface *iface; @@ -180,7 +182,7 @@ atk_text_get_text_after_offset (AtkText *text, iface = ATK_TEXT_GET_IFACE (text); if (iface->get_text_after_offset) - return (*(iface->get_text_after_offset)) (text, offset, boundary_type); + return (*(iface->get_text_after_offset)) (text, offset, boundary_type, startOffset, endOffset); else return NULL; } @@ -204,7 +206,9 @@ atk_text_get_text_after_offset (AtkText *text, gchar* atk_text_get_text_at_offset (AtkText *text, gint offset, - AtkTextBoundary boundary_type) + AtkTextBoundary boundary_type, + gint *startOffset, + gint *endOffset) { AtkTextIface *iface; @@ -214,7 +218,7 @@ atk_text_get_text_at_offset (AtkText *text, iface = ATK_TEXT_GET_IFACE (text); if (iface->get_text_at_offset) - return (*(iface->get_text_at_offset)) (text, offset, boundary_type); + return (*(iface->get_text_at_offset)) (text, offset, boundary_type, startOffset, endOffset); else return NULL; } @@ -239,7 +243,9 @@ atk_text_get_text_at_offset (AtkText *text, gchar* atk_text_get_text_before_offset (AtkText *text, gint offset, - AtkTextBoundary boundary_type) + AtkTextBoundary boundary_type, + gint *startOffset, + gint *endOffset) { AtkTextIface *iface; @@ -249,7 +255,7 @@ atk_text_get_text_before_offset (AtkText *text, iface = ATK_TEXT_GET_IFACE (text); if (iface->get_text_before_offset) - return (*(iface->get_text_before_offset)) (text, offset, boundary_type); + return (*(iface->get_text_before_offset)) (text, offset, boundary_type, startOffset, endOffset); else return NULL; } diff --git a/atk/atktext.h b/atk/atktext.h index 30a2078..507d69c 100755 --- a/atk/atktext.h +++ b/atk/atktext.h @@ -87,15 +87,21 @@ struct _AtkTextIface gint end_offset); gchar* (* get_text_after_offset) (AtkText *text, gint offset, - AtkTextBoundary boundary_type); + AtkTextBoundary boundary_type, + gint *startOffset, + gint *endOffset); gchar* (* get_text_at_offset) (AtkText *text, gint offset, - AtkTextBoundary boundary_type); + AtkTextBoundary boundary_type, + gint *startOffset, + gint *endOffset); gunichar (* get_character_at_offset) (AtkText *text, gint offset); gchar* (* get_text_before_offset) (AtkText *text, gint offset, - AtkTextBoundary boundary_type); + AtkTextBoundary boundary_type, + gint *startOffset, + gint *endOffset); gint (* get_caret_offset) (AtkText *text); AtkAttributeSet* (* ref_run_attributes) (AtkText *text, gint offset, @@ -150,13 +156,19 @@ gunichar atk_text_get_character_at_offset (AtkText *tex gint offset); gchar* atk_text_get_text_after_offset (AtkText *text, gint offset, - AtkTextBoundary boundary_type); + AtkTextBoundary boundary_type, + gint *startOffset, + gint *endOffset); gchar* atk_text_get_text_at_offset (AtkText *text, gint offset, - AtkTextBoundary boundary_type); + AtkTextBoundary boundary_type, + gint *startOffset, + gint *endOffset); gchar* atk_text_get_text_before_offset (AtkText *text, gint offset, - AtkTextBoundary boundary_type); + AtkTextBoundary boundary_type, + gint *startOffset, + gint *endOffset); gint atk_text_get_caret_offset (AtkText *text); void atk_text_get_character_extents (AtkText *text, gint offset, |