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

dpi: Add Rect, PhysicalRect and LogicalRect #3972

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Oct 25, 2024

Fixes #3956.

I haven't added the same From impls as [Physical|Logical][Size|Position] have, since I wasn't sure which were relevant.

@madsmtm madsmtm added S - enhancement Wouldn't this be the coolest? S - api Design and usability labels Oct 25, 2024
}

impl<P> LogicalRect<P> {
#[inline]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we generally don't add inline annotations now unless it's inline(always), but I don't really mind that for now.

@@ -11,6 +11,8 @@ Unreleased` header.

## Unreleased

- Add `Rect`, `PhysicalRect` and `LogicalRect`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Add `Rect`, `PhysicalRect` and `LogicalRect`.
- Add `Rect`, `PhysicalRect`, and `LogicalRect`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S - api Design and usability S - enhancement Wouldn't this be the coolest?
Development

Successfully merging this pull request may close these issues.

dpi: add types for rectangles
2 participants