summaryrefslogtreecommitdiff
path: root/dggui/nativewindow.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2024-03-31 19:27:56 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2024-03-31 21:06:12 +0200
commit4947f735fbf035febbd8435c32a50d37af2633cb (patch)
tree162c912c0e9465a426da405265565317329899b0 /dggui/nativewindow.h
parentaab05ac13b6fe094bb0dc7c5e50c5a76250aa131 (diff)
Add isHiDPI function to NativeWindow and it's implementations.hidpi
Diffstat (limited to 'dggui/nativewindow.h')
-rw-r--r--dggui/nativewindow.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dggui/nativewindow.h b/dggui/nativewindow.h
index 07c3559..715d7ca 100644
--- a/dggui/nativewindow.h
+++ b/dggui/nativewindow.h
@@ -59,6 +59,11 @@ public:
//! Query size of the native window.
virtual std::pair<std::size_t, std::size_t> getSize() const = 0;
+ //! While there isn’t a universally agreed-upon meaning for what constitutes
+ //! HiDPI, a common benchmark is that displays with more than double the PPI
+ //! of the old standard (72-96) can arguably be classified as HiDPI.
+ virtual bool isHiDPI() = 0;
+
//! Move the window to a new position.
//! Note: negative value are allowed.
virtual void move(int x, int y) = 0;