News for hackers. Stuff that matters.
Re:Raygui – A simple and easy-to-use immediate-mode GUI library by underwater on Saturday March 26, 2022 @07:22PM (#30816251)
Aren't you then trying to bridge an immediate mode API (rendering controls) and a retained mode API (assistive tech).
Re:Raygui – A simple and easy-to-use immediate-mode GUI library by mwcampbell on Saturday March 26, 2022 @08:57PM (#30816754)
Yes. This has influenced the design of my AccessKit [1] project. With AccessKit, the application (or GUI toolkit) pushes tree updates to the platform adapter, which maintains a complete tree that it uses to implement the platform-specific accessibility API. Each application-supplied tree update can be a full tree or just the nodes that have changed. So an immediate-mode GUI can push a full tree every frame. There just has to be some way of keeping node IDs stable across frames.

[1]: https://github.com/AccessKit/accesskit