1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00

add maximized to WindowInfo

update button text
fix clippy
This commit is contained in:
SunDoge
2022-11-14 20:53:22 +08:00
parent 634d506012
commit 817236f640
3 changed files with 7 additions and 3 deletions

View File

@@ -836,6 +836,9 @@ pub struct WindowInfo {
/// Current monitor size in egui points (logical pixels)
pub monitor_size: Option<egui::Vec2>,
/// Are we in maximize mode?
pub maximized: bool,
}
/// Information about the URL.

View File

@@ -41,6 +41,7 @@ pub fn read_window_info(window: &winit::window::Window, pixels_per_point: f32) -
y: size.height,
},
monitor_size,
maximized: window.is_maximized(),
}
}
@@ -194,7 +195,7 @@ pub fn handle_app_output(
}
if let Some(minimized) = minimized {
window.set_minimized(minimized)
window.set_minimized(minimized);
}
if let Some(maximized) = maximized {