ocornut / imgui

Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
MIT License
59.7k stars 10.16k forks source link

Cross platform accessibility toolkit - future integration? #5833

Open azonenberg opened 1 year ago

azonenberg commented 1 year ago

I recently became aware of https://github.com/accesskit/accesskit.

The project is still in the very early stages so it's a ways out from being something you can just integrate, but now might be a good time to start thinking about how ImGui could play well with their proposed data model etc, as well as giving feedback to their team. Accessibility integration in ImGui has been requested for a while and this is the first project I've seen that is cross platform and has compatibility with immediate-mode toolkits as a core design goal.

PathogenDavid commented 1 year ago

I came across AccessKit a while back as well and had similar thoughts but personally I don't think it's a great fit for Dear ImGui if anything but for the reason that it's written in Rust. It could make sense as a particular accessibility backend, but then you're creating abstraction layer hell.

It feels like it's still way too early for any project to seriously consider using it. (They list all the platforms they plan to support but only actually support Windows. They had a macOS backend at some point but it's seemingly gone now.)

start thinking about how ImGui could play well with their proposed data model etc, as well as giving feedback to their team.

I don't think the design of their data model should be driven by consumers like Dear ImGui, it should be driven by what the various abstracted platforms actually need.

(I'm also pretty unimpressed with the way the code is licensed, it should all just be 3-clause BSD.)

ocornut commented 8 months ago

Not sure if it was the case back then, but README says:

"The AccessKit project also provides a pre-built package, including a header file, both dynamic and static libraries, and sample code, for the C API, so toolkit developers won't need to deal with Rust at all. The latest pre-built package can be found in AccessKit's GitHub releases; search for the name "accesskit_c"."

It may be worth investigating this, notably because we have a concrete reference in the form of egui implementing it (AccessKit devs maybe used egui as their testbed? at least they added support for it)

a-alhusaini commented 2 months ago

Could we revisit tis issue? I would really like accesskit support for imgui. Its been 6 months since the lst comment.