Add some missing Window getters

Implemented properly when it was easy for me, but a lot of places are
stubbed out for now.
This commit is contained in:
Mads Marquart
2025-09-05 18:47:51 +02:00
parent e99d59feaf
commit b23e38efcb
12 changed files with 562 additions and 16 deletions

View File

@@ -876,8 +876,16 @@ impl CoreWindow for Window {
PhysicalInsets::new(0, 0, 0, 0)
}
fn min_surface_size(&self) -> Option<PhysicalSize<u32>> {
None
}
fn set_min_surface_size(&self, _: Option<Size>) {}
fn max_surface_size(&self) -> Option<PhysicalSize<u32>> {
None
}
fn set_max_surface_size(&self, _: Option<Size>) {}
fn surface_resize_increments(&self) -> Option<PhysicalSize<u32>> {
@@ -888,8 +896,16 @@ impl CoreWindow for Window {
fn set_title(&self, _title: &str) {}
fn is_transparent(&self) -> bool {
false
}
fn set_transparent(&self, _transparent: bool) {}
fn is_blurred(&self) -> bool {
false
}
fn set_blur(&self, _blur: bool) {}
fn set_visible(&self, _visibility: bool) {}
@@ -936,8 +952,16 @@ impl CoreWindow for Window {
true
}
fn window_level(&self) -> WindowLevel {
WindowLevel::default()
}
fn set_window_level(&self, _level: WindowLevel) {}
fn window_icon(&self) -> Option<winit_core::icon::Icon> {
None
}
fn set_window_icon(&self, _window_icon: Option<winit_core::icon::Icon>) {}
fn set_ime_cursor_area(&self, _position: Position, _size: Size) {}
@@ -977,6 +1001,10 @@ impl CoreWindow for Window {
fn request_user_attention(&self, _request_type: Option<window::UserAttentionType>) {}
fn cursor(&self) -> Cursor {
Cursor::default()
}
fn set_cursor(&self, _: Cursor) {}
fn set_cursor_position(&self, _: Position) -> Result<(), RequestError> {
@@ -1010,6 +1038,10 @@ impl CoreWindow for Window {
None
}
fn content_protected(&self) -> bool {
false
}
fn set_content_protected(&self, _protected: bool) {}
fn has_focus(&self) -> bool {