diff options
Diffstat (limited to 'atk/atktext.h')
-rw-r--r-- | atk/atktext.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/atk/atktext.h b/atk/atktext.h index d8852e4..32f0bf2 100644 --- a/atk/atktext.h +++ b/atk/atktext.h @@ -27,6 +27,7 @@ #include <glib-object.h> #include <atk/atkobject.h> #include <atk/atkutil.h> +#include <atk/atkcomponent.h> G_BEGIN_DECLS @@ -333,6 +334,27 @@ struct _AtkTextIface AtkTextGranularity granularity, gint *start_offset, gint *end_offset); + /* + * Scrolls this text range so it becomes visible on the screen. + * + * scroll_substring_to lets the implementation compute an appropriate target + * position on the screen, with type used as a positioning hint. + * + * scroll_substring_to_point lets the client specify a precise target position + * on the screen. + * + * Since ATK 2.32 + */ + gboolean (* scroll_substring_to) (AtkText *text, + gint start_offset, + gint end_offset, + AtkScrollType type); + gboolean (* scroll_substring_to_point) (AtkText *text, + gint start_offset, + gint end_offset, + AtkCoordType coords, + gint x, + gint y); }; ATK_AVAILABLE_IN_ALL @@ -448,6 +470,20 @@ ATK_AVAILABLE_IN_ALL const gchar* atk_text_attribute_get_value (AtkTextAttribute attr, gint index_); +ATK_AVAILABLE_IN_ALL +gboolean atk_text_scroll_substring_to (AtkText *text, + gint start_offset, + gint end_offset, + AtkScrollType type); + +ATK_AVAILABLE_IN_ALL +gboolean atk_text_scroll_substring_to_point (AtkText *text, + gint start_offset, + gint end_offset, + AtkCoordType coords, + gint x, + gint y); + G_END_DECLS #endif /* __ATK_TEXT_H__ */ |