This commit is contained in:
TimUntersberger 2021-06-25 17:16:44 +02:00
parent 52d44769a3
commit 5c45d36d1a
4 changed files with 27 additions and 13 deletions

View file

@ -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)