diff options
author | 2021-06-25 17:16:44 +0200 | |
---|---|---|
committer | 2021-06-25 17:33:40 +0200 | |
commit | 5c45d36d1a8cfd92cd1a454a7f4deedcd4d13fe7 (patch) | |
tree | ef903447347a70a4a350f390241b576bf262046a /winit | |
parent | 52d44769a332d1d96a5e9292805a5884073b9185 (diff) | |
download | iced-5c45d36d1a8cfd92cd1a454a7f4deedcd4d13fe7.tar.gz iced-5c45d36d1a8cfd92cd1a454a7f4deedcd4d13fe7.tar.bz2 iced-5c45d36d1a8cfd92cd1a454a7f4deedcd4d13fe7.zip |
wip
Diffstat (limited to 'winit')
-rw-r--r-- | winit/src/settings.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winit/src/settings.rs b/winit/src/settings.rs index 941d88ce..0508cd9b 100644 --- a/winit/src/settings.rs +++ b/winit/src/settings.rs @@ -35,6 +35,9 @@ pub struct Window { /// The size of the window. pub size: (u32, u32), + /// The position of the window. + pub position: (u32, u32), + /// The minimum size of the window. pub min_size: Option<(u32, u32)>, @@ -75,6 +78,7 @@ impl Window { window_builder = window_builder .with_title(title) .with_inner_size(winit::dpi::LogicalSize { width, height }) + .with_outer_position(self.position) .with_resizable(self.resizable) .with_decorations(self.decorations) .with_transparent(self.transparent) |