diff options
author | 2021-06-25 17:16:44 +0200 | |
---|---|---|
committer | 2021-06-25 17:33:40 +0200 | |
commit | 5c45d36d1a8cfd92cd1a454a7f4deedcd4d13fe7 (patch) | |
tree | ef903447347a70a4a350f390241b576bf262046a /src | |
parent | 52d44769a332d1d96a5e9292805a5884073b9185 (diff) | |
download | iced-5c45d36d1a8cfd92cd1a454a7f4deedcd4d13fe7.tar.gz iced-5c45d36d1a8cfd92cd1a454a7f4deedcd4d13fe7.tar.bz2 iced-5c45d36d1a8cfd92cd1a454a7f4deedcd4d13fe7.zip |
wip
Diffstat (limited to 'src')
-rw-r--r-- | src/window/settings.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/window/settings.rs b/src/window/settings.rs index 6b5d2985..981f0858 100644 --- a/src/window/settings.rs +++ b/src/window/settings.rs @@ -6,6 +6,11 @@ pub struct Settings { /// The initial size of the window. pub size: (u32, u32), + /// The initial position of the window. + /// + /// Note: this gets ignored on the web + pub position: (u32, u32), + /// The minimum size of the window. pub min_size: Option<(u32, u32)>, @@ -32,6 +37,7 @@ impl Default for Settings { fn default() -> Settings { Settings { size: (1024, 768), + position: (100, 100), min_size: None, max_size: None, resizable: true, @@ -48,6 +54,7 @@ impl From<Settings> for iced_winit::settings::Window { fn from(settings: Settings) -> Self { Self { size: settings.size, + position: settings.position, min_size: settings.min_size, max_size: settings.max_size, resizable: settings.resizable, |