-
Notifications
You must be signed in to change notification settings - Fork 920
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
Add LogicalPoint
, PhysicalPoint
and Point
#3529
Add LogicalPoint
, PhysicalPoint
and Point
#3529
Conversation
Looking at #2395 I don't really follow what the motivation here is exactly. |
#2395 is not implemented in Once this new |
My question is specifically how does |
Because the existing types require setting both width/height, and so you can't say I want to constraint only width or only height. |
Ah, I see, thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably update the docs in ### Position and Size types
with the point stuff.
Besides. @amrbashir given that you had an interest in such crate in the first place, how you deal with e.g. rounding? For example in winit we have special rounding rules on Wayland, because it's rounding is a bit special, but maybe we should define such things in this crate as well, so the |
We didn't give it much thought, since our windows and macOS backend were forked from |
I just realized that the naming |
Maybe |
b637001
to
bdeeaa2
Compare
Thanks |
part of #2395
CHANGELOG.md
if knowledge of this change could be valuable to users