forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
a13ddcb67b
commit
5dfbaa53fc
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user