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>
672 B
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,LogicalInsetsandPhysicalInsetstypes.
0.1.1
- Derive
Debug,Copy,Clone,PartialEq,Serialize,Deserializetraits forPixelUnit.
0.1.0
- Add
LogicalUnit,PhysicalUnitandPixelUnittypes and related functions.