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>
854 B
854 B
Image Attribution
These images are used in the documentation of winit.
keyboard_*.svg
These files are a modified version of "ANSI US QWERTY (Windows)" by [Tomiĉo] (https://commons.wikimedia.org/wiki/User:Tomi%C4%89o). It was originally released under the CC-BY-SA 4.0 License. Minor modifications have been made by John Nunley, which have been released under the same license as a derivative work.
coordinate-systems*
These files are created by Mads Marquart using draw.io, and compressed using svgomg.net.
They are licensed under the CC-BY 4.0 license.