diff options
author | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-08-02 11:04:48 +0200 |
---|---|---|
committer | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-08-02 11:04:48 +0200 |
commit | bfc5d3e63d0d2a511cfbbf08895be4a7031a248f (patch) | |
tree | 3f39d509be58784be3a3d3573aa205df23b1e4f1 /src | |
parent | 8c074af9fca98d2b01036658377a2a66a8dd56b7 (diff) | |
download | glutin-bfc5d3e63d0d2a511cfbbf08895be4a7031a248f.tar.gz glutin-bfc5d3e63d0d2a511cfbbf08895be4a7031a248f.zip |
with_monitor -> with_fullscreen
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -43,17 +43,22 @@ impl WindowBuilder { } } + /// Requests the window to be of specific dimensions. + /// + /// Width and height are in pixels. pub fn with_dimensions(mut self, width: uint, height: uint) -> WindowBuilder { self.dimensions = (width, height); self } + /// Requests a specific title for the window. pub fn with_title(mut self, title: String) -> WindowBuilder { self.title = title; self } - pub fn with_monitor(mut self, monitor: MonitorID) -> WindowBuilder { + /// Requests fullscreen mode. + pub fn with_fullscreen(mut self, monitor: MonitorID) -> WindowBuilder { let MonitorID(monitor) = monitor; self.monitor = Some(monitor); self |