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

min and max window size (#1171)

This commit is contained in:
Unknown
2022-02-02 16:47:27 +01:00
committed by GitHub
parent 869d556335
commit 270c08a030
2 changed files with 26 additions and 4 deletions

View File

@@ -233,6 +233,12 @@ pub struct NativeOptions {
/// The initial size of the native window in points (logical pixels).
pub initial_window_size: Option<egui::Vec2>,
/// The minimum window size
pub min_window_size: Option<egui::Vec2>,
/// The maximum window size
pub max_window_size: Option<egui::Vec2>,
/// Should the app window be resizable?
pub resizable: bool,
@@ -251,6 +257,8 @@ impl Default for NativeOptions {
drag_and_drop_support: false,
icon_data: None,
initial_window_size: None,
min_window_size: None,
max_window_size: None,
resizable: true,
transparent: false,
}