winit/dpi/CHANGELOG.md
Mads Marquart dbcdb6f1b4
Add safe area and document coordinate systems (#3890)
Added `Window::safe_area`, which describes the area of the surface that
is unobstructed by notches, bezels etc. The drawing code in the examples
have been updated to draw a star inside the safe area, and the plain
background outside of it.

Also renamed `Window::inner_position` to `Window::surface_position`, and
changed it to from screen coordinates to window coordinates, to better
align how these coordinate systems work together.

Finally, added some SVG images and documentation to describe how all of
this works.

This is fully implemented on macOS and iOS, and partially on the web.

Co-authored-by: daxpedda <daxpedda@gmail.com>
2024-11-21 17:37:03 +01:00

672 B

Changelog

All notable changes to this project will be documented in this file.

Please keep one empty line before and after all headers. (This is required for git to produce a conflict when a release is made while a PR is open and the PR's changelog entry would go into the wrong section).

And please only add new entries to the top of this list, right below the # Unreleased header.

Unreleased

  • Added Insets, LogicalInsets and PhysicalInsets types.

0.1.1

  • Derive Debug, Copy, Clone, PartialEq, Serialize, Deserialize traits for PixelUnit.

0.1.0

  • Add LogicalUnit, PhysicalUnit and PixelUnit types and related functions.