How should one deal with coordinate spaces with non-affine transforms? #566
-
So, looking at the API, it seems like nodes are expected to be axis-aligned rects with position + size. How should GUI toolkits expose:
In all these cases, accesskit_consumer's Off-topic, but is there an example that showcases how to use the API for a widget like text (or text-input). Is a single paragraph widget expected to be broken into one or more accesskit-nodes with
If so, how should we deal with focus? Do we focus these individual |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for working with AccessKit. I'll try to answer your questions. For widgets whose bounding shape is a rotated rectangle, an affine transform should work fine. If you apply the transform to the top-level rotated widget, it will apply to its children too. Please let me know if I'm missing something, or if you've found a problem with this approach. We don't have a good solution for 3D or non-rectangular widgets. Currently the best you can do is set the bounds to the tightest rectangle that encloses the widget. You have the right idea about text input. The de-facto reference implementation of how to do this is currently in parley. |
Beta Was this translation helpful? Give feedback.
Thanks for working with AccessKit. I'll try to answer your questions.
For widgets whose bounding shape is a rotated rectangle, an affine transform should work fine. If you apply the transform to the top-level rotated widget, it will apply to its children too. Please let me know if I'm missing something, or if you've found a problem with this approach.
We don't have a good solution for 3D or non-rectangular widgets. Currently the best you can do is set the bounds to the tightest rectangle that encloses the widget.
You have the right idea about text input. The de-facto reference implementation of how to do this is currently in parley.