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:
@@ -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.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user