mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 05:40:04 -04:00
Keep existing function for backward compatibility
This commit is contained in:
@@ -294,6 +294,19 @@ impl Window {
|
|||||||
self.window.set_position(x, y)
|
self.window.set_position(x, y)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// 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.
|
||||||
|
///
|
||||||
|
/// 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.
|
/// 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.
|
/// The client area is the content of the window, excluding the title bar and borders.
|
||||||
@@ -305,6 +318,7 @@ impl Window {
|
|||||||
self.window.get_inner_size()
|
self.window.get_inner_size()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Returns the size in pixels of the client area of the window.
|
/// 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.
|
/// The client area is the content of the window, excluding the title bar and borders.
|
||||||
|
|||||||
Reference in New Issue
Block a user