raysan5 / raygui

A simple and easy-to-use immediate-mode gui library
zlib License
3.26k stars 280 forks source link

[Feature Request] Accessibility support? #388

Closed ethindp closed 4 months ago

ethindp commented 4 months ago

I'm not sure how easy this would be for an immediate-mode UI, but I thought I'd ask. There is a library called AccessKit that simplifies this task a lot and abstracts away the platform-specific things you'd need to normally use. The API documentation is mostly in Rust (as the library is written in Rust) but there are C examples. I can help if we can figure out the problem of "it's an immediate-mode UI", but it would be amazing if this could be done. A prerequisite is issue #385 as it will be a requirement for screen readers and individuals who cannot use the mouse.

raysan5 commented 4 months ago

@ethindp I'm afraid this is really out-of-scope for raygui project. AccessKit seems to be a lower level library, like GLFW (that is integrated into raylib).

ethindp commented 4 months ago

@raysan5 May I ask why such a critical feature like this would be out-of-scope? AccessKit might not be the most high-level library but it's much higher level than the OS accessibility abstractions (UIA, AT-SPI2, whatever MacOS implements).

raysan5 commented 4 months ago

@ethindp Mostly two reasons:

  1. raygui is a very small self-contained library, I don't want to add an humungus external dependency.
  2. I can't maintain it.

Thanks for your comprehension.

raysan5 commented 4 months ago

@ethindp Note that raygui is a free and open source project. If you think that feature is crucial for your target project, you can fork it and implement it yourself.

ethindp commented 4 months ago

Ah okay, thank you for your explanations.