From 5c888e86e3b63fec6faf4eac2c3b791358c05064 Mon Sep 17 00:00:00 2001 From: Gabriel Gheorghe Date: Fri, 12 Feb 2021 23:14:27 +0200 Subject: [PATCH] Add docs to WindowResizeConstraints --- crates/bevy_window/src/window.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/bevy_window/src/window.rs b/crates/bevy_window/src/window.rs index 9015e98de9ecd..637d4164f9512 100644 --- a/crates/bevy_window/src/window.rs +++ b/crates/bevy_window/src/window.rs @@ -32,6 +32,12 @@ impl Default for WindowId { } } +/// The size limits on a window. +/// These values are measured in logical pixels, so the user's +/// scale factor does affect the size limits on the window. +/// Please note that if the window is resizable, then when the window is +/// maximized it may have a size outside of these limits. The functionality +/// required to disable maximizing is not yet exposed by winit. #[derive(Debug, Clone, Copy)] pub struct WindowResizeConstraints { pub min_width: f32,