feat: SuggestedBounds event

This commit is contained in:
Ashley Wulber 2024-10-15 19:06:40 -04:00
parent b961e4877d
commit 66dc0eab25
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
3 changed files with 42 additions and 5 deletions

View file

@ -368,6 +368,13 @@ pub enum WindowEvent {
surface_size_writer: SurfaceSizeWriter,
},
/// The suggested bounds of the window's surface has changed.
///
/// Contains the new bounds of the surface
///
/// - **iOS / Android / Web / Orbital / Windows:** Unsupported.
SuggestedBounds(Option<PhysicalSize<u32>>),
/// The system window theme has changed.
///
/// Applications might wish to react to this to change the theme of the content of the window