mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
Fixed docs for get_inner_size
Closes https://github.com/tomaka/glutin/issues/388
This commit is contained in:
@@ -294,11 +294,10 @@ impl Window {
|
|||||||
self.window.set_position(x, y)
|
self.window.set_position(x, y)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the size in pixels 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.
|
||||||
/// These are the dimensions of the frame buffer, and the dimensions that you should use
|
/// To get the dimensions of the frame buffer when calling `glViewport`, multiply with hidpi factor.
|
||||||
/// when you call `glViewport`.
|
|
||||||
///
|
///
|
||||||
/// Returns `None` if the window no longer exists.
|
/// Returns `None` if the window no longer exists.
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|||||||
Reference in New Issue
Block a user