winit/src/platform_impl/linux/wayland
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
..
event_loop api: make OwnedDisplayHandle wrap an opaque type 2024-11-13 15:29:05 +03:00
seat chore: remove platform FingerId 2024-11-02 17:10:32 +03:00
types chore: remove platform WindowId's 2024-10-08 16:29:40 +03:00
window Add safe area and document coordinate systems (#3890) 2024-11-21 17:37:03 +01:00
mod.rs api: make EventLoopProxy wrap an opaque type 2024-11-12 10:56:20 +03:00
output.rs Various Monitor/VideoModeHandle methods now return an Option 2024-08-08 01:29:51 +02:00
state.rs api: unify error handling 2024-09-06 17:20:11 +03:00