Skip to content

Commit

Permalink
Add docs to WindowResizeConstraints
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-gheorghe committed Feb 12, 2021
1 parent e84d4cb commit 5c888e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/bevy_window/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5c888e8

Please sign in to comment.