diff options
author | Sven Nilsen <bvssvni@gmail.com> | 2015-07-25 13:57:52 +0200 |
---|---|---|
committer | Sven Nilsen <bvssvni@gmail.com> | 2015-07-25 13:57:52 +0200 |
commit | 79b8cf2cc87ccf013254afb44d287a47eea6fe44 (patch) | |
tree | 650cf3b0c592e2969ea9594d9c56e324eaeabc25 | |
parent | 05175c1d800a3b5303118834d342ebbfd44ecc8d (diff) | |
download | glutin-79b8cf2cc87ccf013254afb44d287a47eea6fe44.tar.gz glutin-79b8cf2cc87ccf013254afb44d287a47eea6fe44.zip |
Keep existing function for backward compatibility
-rw-r--r-- | src/window.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/window.rs b/src/window.rs index 655c54f..00174d3 100644 --- a/src/window.rs +++ b/src/window.rs @@ -300,11 +300,25 @@ impl Window { /// To get the dimensions of the frame buffer when calling `glViewport`, multiply with hidpi factor. /// /// Returns `None` if the window no longer exists. + /// + /// DEPRECATED + #[inline] + pub fn get_inner_size(&self) -> Option<(u32, u32)> { + self.window.get_inner_size() + } + + /// Returns the size in points of the client area of the window. + /// + /// The client area is the content of the window, excluding the title bar and borders. + /// To get the dimensions of the frame buffer when calling `glViewport`, multiply with hidpi factor. + /// + /// Returns `None` if the window no longer exists. #[inline] pub fn get_inner_size_points(&self) -> Option<(u32, u32)> { self.window.get_inner_size() } + /// Returns the size in pixels of the client area of the window. /// /// The client area is the content of the window, excluding the title bar and borders. |