diff options
| author | 2021-07-21 18:15:32 +0700 | |
|---|---|---|
| committer | 2021-07-21 18:15:32 +0700 | |
| commit | 6793a7e00dc96425ae720309182ec8b03c076111 (patch) | |
| tree | d4e7ed77b726b8caf4eee9af40fb2a51e6bfb8bb /src/window | |
| parent | 4de27142133b2dd6f780f0f955f620787102e581 (diff) | |
| download | iced-6793a7e00dc96425ae720309182ec8b03c076111.tar.gz iced-6793a7e00dc96425ae720309182ec8b03c076111.tar.bz2 iced-6793a7e00dc96425ae720309182ec8b03c076111.zip  | |
Remove DPI from docs in `window::Settings::position`
Diffstat (limited to '')
| -rw-r--r-- | src/window/settings.rs | 21 | 
1 files changed, 5 insertions, 16 deletions
diff --git a/src/window/settings.rs b/src/window/settings.rs index 0fecc3bb..59654edc 100644 --- a/src/window/settings.rs +++ b/src/window/settings.rs @@ -8,22 +8,11 @@ pub struct Settings {      /// The initial position of the window.      /// -    /// When the decorations of the window are enabled, Windows 10 will add some inivisble padding -    /// to the window. This padding gets included in the position. So if you have decorations -    /// enabled and want the window to be at 0,0 you would have to set the position to -    /// -DPI_BORDER_X,-DPI_BORDER_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 +    /// When the decorations of the window are enabled, Windows 10 will add some +    /// invisible padding to the window. This padding gets included in the +    /// position. So if you have decorations enabled and want the window to be +    /// at (0, 0) you would have to set the position to +    /// `(PADDING_X, PADDING_Y)`.      pub position: (i32, i32),      /// The minimum size of the window.  | 
