aboutsummaryrefslogtreecommitdiff
path: root/dw/platform.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-11-13 16:18:56 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-11-13 16:18:56 +0100
commitdfc9e510aedb52375da02a8776259d21ecf14587 (patch)
tree17054b06a3452a0c563701a6afc623286e58e51a /dw/platform.hh
parent7b81c09bb70cdfd59f80685eb218b1b883f04240 (diff)
add dpiX () / dpiY () methods to Platform and Layout
Diffstat (limited to 'dw/platform.hh')
-rw-r--r--dw/platform.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/dw/platform.hh b/dw/platform.hh
index 0ae5d508..4dcb2681 100644
--- a/dw/platform.hh
+++ b/dw/platform.hh
@@ -66,6 +66,16 @@ public:
* \brief Return the index of the previous glyph in string text.
*/
virtual int prevGlyph (const char *text, int idx) = 0;
+
+ /**
+ * \brief Return screen resolution in x-direction.
+ */
+ virtual float dpiX () = 0;
+
+ /**
+ * \brief Return screen resolution in y-direction.
+ */
+ virtual float dpiY () = 0;
/*
* ---------------------------------------------------------