Rename "inner size" to "surface size" (#3889)

* Rename `WindowEvent::Resized` to `SurfaceResized`
* Rename `InnerSizeWriter` to `SurfaceSizeWriter`
* Replace `inner_size` with `surface_size`
* Rename `resize_increments` to `surface_resize_increments`
This commit is contained in:
Mads Marquart
2024-09-04 15:04:48 +02:00
committed by GitHub
parent d37c591378
commit 8db3e0e043
32 changed files with 466 additions and 436 deletions

View File

@@ -476,7 +476,7 @@ impl EventLoop {
app.window_event(
window_target,
RootWindowId(window_id),
event::WindowEvent::Resized((width, height).into()),
event::WindowEvent::SurfaceResized((width, height).into()),
);
// Acknowledge resize after event loop.
@@ -523,7 +523,7 @@ impl EventLoop {
let window_id = RootWindowId(window_id);
// Send resize event on create to indicate first size.
let event = event::WindowEvent::Resized((properties.w, properties.h).into());
let event = event::WindowEvent::SurfaceResized((properties.w, properties.h).into());
app.window_event(&self.window_target, window_id, event);
// Send moved event on create to indicate first position.