Remove DPI from docs in window::Settings::position
This commit is contained in:
parent
4de2714213
commit
6793a7e00d
1 changed files with 5 additions and 16 deletions
|
|
@ -8,22 +8,11 @@ pub struct Settings {
|
||||||
|
|
||||||
/// The initial position of the window.
|
/// The initial position of the window.
|
||||||
///
|
///
|
||||||
/// When the decorations of the window are enabled, Windows 10 will add some inivisble padding
|
/// When the decorations of the window are enabled, Windows 10 will add some
|
||||||
/// to the window. This padding gets included in the position. So if you have decorations
|
/// invisible padding to the window. This padding gets included in the
|
||||||
/// enabled and want the window to be at 0,0 you would have to set the position to
|
/// position. So if you have decorations enabled and want the window to be
|
||||||
/// -DPI_BORDER_X,-DPI_BORDER_Y.
|
/// at (0, 0) you would have to set the position to
|
||||||
///
|
/// `(PADDING_X, PADDING_Y)`.
|
||||||
/// DPI_BORDER_X/DPI_BORDER_Y are the usual size of the padding, which changes based on the DPI of the display.
|
|
||||||
///
|
|
||||||
/// On a 1920x1080 monitor you would have to set the position to -8,-2.
|
|
||||||
///
|
|
||||||
/// For info on how you could implement positioning that supports all DPI monitors look at the
|
|
||||||
/// following WINAPI calls:
|
|
||||||
///
|
|
||||||
/// * GetDpiForMonitor (with MDT_RAW_DPI)
|
|
||||||
/// * GetSystemMetricsForDpi (with SM_CXFRAME and SM_CYFRAME)
|
|
||||||
///
|
|
||||||
/// Note: this gets ignored on the web
|
|
||||||
pub position: (i32, i32),
|
pub position: (i32, i32),
|
||||||
|
|
||||||
/// The minimum size of the window.
|
/// The minimum size of the window.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue