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

Reduce duplication in dpi module #2148

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Jan 13, 2022

Grabbed from #1374. The motivation in here was to add a Delta variant of these (as part of a replacement of MouseScrollDelta).

The only API changes in this PR is the PartialOrd/Ord impls, as noted in the changelog, the rest is merely a code-reduction that I believe is valuable (makes it much easier to see what's different between Size and Position).

Tagging original author @Osspial.

  • Tested on all platforms changed
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

@madsmtm madsmtm added C - waiting on maintainer A maintainer must review this code S - maintenance Repaying technical debt labels Jan 13, 2022
amrbashir added a commit to tauri-apps/tao that referenced this pull request Jul 7, 2023
amrbashir added a commit to tauri-apps/tao that referenced this pull request Jul 11, 2023
* feat: split min/max size constraints, closes #138

* windows impl

* linux impl

* fix linux impl

* cleanup linux impl

* macOS impl

* imports

* ios build

* macos build

* unsafe

* merge `set_min/max_width/height` into a single function

* fix macos build

* macos again

* use macros to generate DPI types

ref: rust-windowing/winit#2148

* fix windows impl

* fmt
@madsmtm madsmtm force-pushed the dpi-reduce-duplication branch from 5e156de to e0f0f04 Compare October 25, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C - waiting on maintainer A maintainer must review this code S - maintenance Repaying technical debt
Development

Successfully merging this pull request may close these issues.

1 participant