winit/src/platform_impl/web
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
..
async api: make EventLoopProxy wrap an opaque type 2024-11-12 10:56:20 +03:00
event_loop Add safe area and document coordinate systems (#3890) 2024-11-21 17:37:03 +01:00
script Web: bump ESLint to v9 (#3843) 2024-07-31 20:37:10 +02:00
web_sys Add safe area and document coordinate systems (#3890) 2024-11-21 17:37:03 +01:00
cursor.rs Update minimum version of wasm-bindgen (#3860) 2024-08-13 21:54:03 +02:00
error.rs Fix web errors (#1040) 2019-07-10 18:54:54 -04:00
event.rs chore: remove platform FingerId 2024-11-02 17:10:32 +03:00
keyboard.rs Revise Key and KeyCode enums 2023-10-19 18:27:49 +04:00
lock.rs Web: Implement MonitorHandle (#3801) 2024-07-23 20:33:10 +02:00
main_thread.rs Web: improve custom cursor handling and add animated cursors (#3384) 2024-01-12 11:51:19 +01:00
mod.rs api: make OwnedDisplayHandle wrap an opaque type 2024-11-13 15:29:05 +03:00
monitor.rs api: convert Window to dyn Window 2024-08-23 23:40:27 +03:00
window.rs Add safe area and document coordinate systems (#3890) 2024-11-21 17:37:03 +01:00