diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-12-05 18:01:55 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-12-05 18:01:55 +0100 |
commit | 48a02a0c8c9029543360884f1daaaade5d3f11a5 (patch) | |
tree | 0489869b1f75bbd9571e01c39a2d35427c984102 /src/lib.rs | |
parent | 8c3ffd2a4fe2dbb0033c1f830d384c0c2d8c88a1 (diff) | |
parent | 2be3c142f0778a3588982572a997dc669adca2a6 (diff) | |
download | glutin-48a02a0c8c9029543360884f1daaaade5d3f11a5.tar.gz glutin-48a02a0c8c9029543360884f1daaaade5d3f11a5.zip |
Merge pull request #659 from Aceeri/minmaxwindow
Minimum/maximum dimensions for windows in win32 API
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -527,6 +527,16 @@ pub struct WindowAttributes { /// The default is `None`. pub dimensions: Option<(u32, u32)>, + /// The minimum dimensions a window can be, If this is `None`, the window will have no minimum dimensions (aside from reserved). + /// + /// The default is `None`. + pub min_dimensions: Option<(u32, u32)>, + + /// The maximum dimensions a window can be, If this is `None`, the maximum will have no maximum or will be set to the primary monitor's dimensions by the platform. + /// + /// The default is `None`. + pub max_dimensions: Option<(u32, u32)>, + /// If `Some`, the window will be in fullscreen mode with the given monitor. /// /// The default is `None`. @@ -563,6 +573,8 @@ impl Default for WindowAttributes { fn default() -> WindowAttributes { WindowAttributes { dimensions: None, + min_dimensions: None, + max_dimensions: None, monitor: None, title: "glutin window".to_owned(), visible: true, |