Skip to content

How should one deal with coordinate spaces with non-affine transforms? #566

Answered by mwcampbell
coderedart asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@coderedart
Comment options

Answer selected by coderedart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants