egui/crates/egui_kittest/src
Ian Hobson 30277233ce
Add support for the safe area on iOS (#7578)
This PR is a continuation of #4915 by @frederik-uni and @lucasmerlin
that introduces support for keeping egui content within the 'safe area'
on iOS (avoiding the notch / dynamic island / menu bar etc.), with the
following changes:

- `SafeArea` now wraps `MarginF32` and has been renamed to
`SafeAreaInsets` to clarify its purpose.
- `InputState::screen_rect` is now marked as deprecated in favour of
either `viewport_rect` (which contains the entire screen), or
`content_rect` (which is the viewport rect with the safe area insets
removed).
- I added some comments to the safe area insets logic pointing out the
[safe area API coming in winit
v0.31](https://github.com/rust-windowing/winit/issues/3910).

---------

Co-authored-by: frederik-uni <147479464+frederik-uni@users.noreply.github.com>
Co-authored-by: Lucas Meurer <hi@lucasmerlin.me>
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2025-10-07 12:30:09 +02:00
..
app_kind.rs Fix some clippy issues found by 1.84.0 (#5603) 2025-01-13 08:29:13 +01:00
builder.rs Add `egui_kittest::HarnessBuilder::with_os` and set the default to `Nix` (#7493) 2025-09-09 13:44:59 +02:00
lib.rs Include popups and tooltips in `Harness::fit_contents` (#7556) 2025-09-23 11:03:30 +02:00
node.rs Add support for scrolling via accesskit / kittest (#7286) 2025-07-03 12:02:05 +02:00
renderer.rs Wgpu resources are no longer wrapped in `Arc` (since they are now `Clone`) (#5612) 2025-01-20 18:06:35 +01:00
snapshot.rs Adjust when we write .diff and .new snapshot images (#7571) 2025-09-30 15:51:46 +02:00
texture_to_image.rs Update wgpu to 27.0.0 (#7580) 2025-10-03 09:54:46 +02:00
wgpu.rs Add support for the safe area on iOS (#7578) 2025-10-07 12:30:09 +02:00