Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve layout abstraction to allow geometry transformations #52

Open
inclement opened this issue May 15, 2021 · 0 comments
Open

Improve layout abstraction to allow geometry transformations #52

inclement opened this issue May 15, 2021 · 0 comments

Comments

@inclement
Copy link
Owner

inclement commented May 15, 2021

Currently layouts are very simple, but barely abstracted at all from the bare positioning and sizing of views.

Ideally the layout logic should be separated from its application to views so that transforms can be applied to the geometry logic alone. In particular the idea would be make it easy to mirror or rotate layouts, avoiding needing to have a new layout for every permutation.

We'd need to do something like have the layout function act on view stand-in structs in 0-1 coordinates, then manipulate the results, then translate into real coordinates to apply to the real views.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant