Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example for getting the accessibility tree #173

Closed
C-Loftus opened this issue Apr 13, 2024 · 1 comment
Closed

Add example for getting the accessibility tree #173

C-Loftus opened this issue Apr 13, 2024 · 1 comment

Comments

@C-Loftus
Copy link

I believe that getting the accessibility tree is very important for many accessibility applications and would be helpful to show as an example. For instance, for voice based interaction there are many times where we want to annotate all the a11y elements with a label. (i.e. labeling it with a number so we can just say the number to click on it)

The only other atspi example repo on Github shows examples on dumping the tree so I think there is precedent that this is a useful example to show
https://github.com/infapi00/at-spi2-examples

luukvanderduim added a commit that referenced this issue May 26, 2024
Adds the 'bus-tree' example.

Addresses issue #173
luukvanderduim added a commit that referenced this issue Jun 18, 2024
Addresses issue #173

In  atspi-proxies/src/accessible.rs:

Add `into_accessible_proxy` on `ObjectRefExt` as borrowing may not always be practical.

Simplify `as_accessible_proxy` because the `clone` was hidden, not avoided.

In atspi/Cargo.toml: 

- Add `[[example]]` sections to indicate required  features. 

- Add "futures" because "futures-lite" does not provide `join_all!'.
- Add "display-tree" for tree printing in the 'bus-tree' example.
- sorted the dev-dependencies.

In atspi/examples/bus-tree.rs

Add the 'bus-tree' example.

In atspi/examples/focused-async-std.rs and atspi/examples/focused-tokio.rs:

- Remove feature guards `#[cfg(feature = "connection"]`

The `Cargo.toml` `[[example]]` section does a better job helping users find the necessary features and satisfyingly cleans up these examples.
@TTWNO
Copy link
Member

TTWNO commented Jun 18, 2024

Fixed by #188

@TTWNO TTWNO closed this as completed Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants