mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Changed description of window scale factor in Events (#1834)
* changed description of window scale factor in Events * Update src/dpi.rs Co-authored-by: Markus Røyset <maroider@protonmail.com> * Fix intra-doc link Co-authored-by: Markus Røyset <maroider@protonmail.com>
This commit is contained in:
parent
635180c8be
commit
5a65347c4e
|
@ -58,7 +58,7 @@
|
||||||
//! DPI settings. This gives you a chance to rescale your application's UI elements and adjust how
|
//! DPI settings. This gives you a chance to rescale your application's UI elements and adjust how
|
||||||
//! the platform changes the window's size to reflect the new scale factor. If a window hasn't
|
//! the platform changes the window's size to reflect the new scale factor. If a window hasn't
|
||||||
//! received a [`ScaleFactorChanged`](crate::event::WindowEvent::ScaleFactorChanged) event,
|
//! received a [`ScaleFactorChanged`](crate::event::WindowEvent::ScaleFactorChanged) event,
|
||||||
//! then its scale factor is `1.0`.
|
//! then its scale factor can be found by calling [window.scale_factor()].
|
||||||
//!
|
//!
|
||||||
//! ## How is the scale factor calculated?
|
//! ## How is the scale factor calculated?
|
||||||
//!
|
//!
|
||||||
|
@ -95,6 +95,7 @@
|
||||||
//!
|
//!
|
||||||
//! [points]: https://en.wikipedia.org/wiki/Point_(typography)
|
//! [points]: https://en.wikipedia.org/wiki/Point_(typography)
|
||||||
//! [picas]: https://en.wikipedia.org/wiki/Pica_(typography)
|
//! [picas]: https://en.wikipedia.org/wiki/Pica_(typography)
|
||||||
|
//! [window.scale_factor()]: crate::window::Window::scale_factor
|
||||||
//! [windows_1]: https://docs.microsoft.com/en-us/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows
|
//! [windows_1]: https://docs.microsoft.com/en-us/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows
|
||||||
//! [apple_1]: https://developer.apple.com/library/archive/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/Displays/Displays.html
|
//! [apple_1]: https://developer.apple.com/library/archive/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/Displays/Displays.html
|
||||||
//! [apple_2]: https://developer.apple.com/design/human-interface-guidelines/macos/icons-and-images/image-size-and-resolution/
|
//! [apple_2]: https://developer.apple.com/design/human-interface-guidelines/macos/icons-and-images/image-size-and-resolution/
|
||||||
|
|
Loading…
Reference in a new issue