aboutsummaryrefslogtreecommitdiff
path: root/dw/layout.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/layout.hh
parent7b81c09bb70cdfd59f80685eb218b1b883f04240 (diff)
add dpiX () / dpiY () methods to Platform and Layout
Diffstat (limited to 'dw/layout.hh')
-rw-r--r--dw/layout.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/dw/layout.hh b/dw/layout.hh
index 13b8f312..292024a2 100644
--- a/dw/layout.hh
+++ b/dw/layout.hh
@@ -216,6 +216,16 @@ public:
return platform->prevGlyph (text, idx);
}
+ inline float dpiX ()
+ {
+ return platform->dpiX ();
+ }
+
+ inline float dpiY ()
+ {
+ return platform->dpiY ();
+ }
+
inline style::Font *createFont (style::FontAttrs *attrs, bool tryEverything)
{
return platform->createFont (attrs, tryEverything);