diff options
author | Lukáš Tyrychtr <lukastyrychtr@gmail.com> | 2022-09-09 11:09:31 +0200 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2023-02-03 11:49:17 +0100 |
commit | 5dfbaa53fcc03a57837c49b78848dd082890680e (patch) | |
tree | e5008032fb08743aaf98db5d59efad852e871fe5 /gtk/gtkaccessibleprivate.h | |
parent | a13ddcb67b3ccc37efb4bf605ca97087d2ff1ea5 (diff) | |
download | gtk+-5dfbaa53fcc03a57837c49b78848dd082890680e.tar.gz |
a11y: Add DOM-like API to GtkAccessible
Add get_parent and get_child_at_index to GtkAccessible so we can
decouple the a11y tree from the widget tree.
Diffstat (limited to 'gtk/gtkaccessibleprivate.h')
-rw-r--r-- | gtk/gtkaccessibleprivate.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkaccessibleprivate.h b/gtk/gtkaccessibleprivate.h index eefd30a38b..ddd94d7dff 100644 --- a/gtk/gtkaccessibleprivate.h +++ b/gtk/gtkaccessibleprivate.h @@ -33,6 +33,9 @@ struct _GtkAccessibleInterface gboolean (* get_platform_state) (GtkAccessible *self, GtkAccessiblePlatformState state); + + GtkAccessible * (* get_parent) (GtkAccessible *self); + GtkAccessible * (* get_child_at_index) (GtkAccessible *self, guint index); }; GtkATContext * gtk_accessible_get_at_context (GtkAccessible *self); @@ -49,6 +52,10 @@ void gtk_accessible_platform_changed (GtkAccessible *s gboolean gtk_accessible_get_platform_state (GtkAccessible *self, GtkAccessiblePlatformState state); +GtkAccessible * gtk_accessible_get_parent(GtkAccessible *self); + +GtkAccessible * gtk_accessible_get_child_at_index(GtkAccessible *self, guint index); + void gtk_accessible_bounds_changed (GtkAccessible *self); void gtk_accessible_update_children (GtkAccessible *self, |