From 4947f735fbf035febbd8435c32a50d37af2633cb Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 31 Mar 2024 19:27:56 +0200 Subject: Add isHiDPI function to NativeWindow and it's implementations. --- dggui/nativewindow.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dggui/nativewindow.h') 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 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; -- cgit v1.2.3