summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-11-30 18:48:33 +0100
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-12-02 09:20:25 +0100
commit3cc833098a090b5ff611051e9da2af94d53d1017 (patch)
treebd06ff2d759b4d18186ac368ec7827817e9fff52 /vcl
parent021089d8ee76baa13f09bbeccf2bdbedc4e9efed (diff)
implement virtual methods for OSX vcl backend
Change-Id: Ifd7e06529cbf2e20bdd1560586420cda39c5a50c
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/quartz/salvd.h3
-rw-r--r--vcl/quartz/salvd.cxx12
2 files changed, 15 insertions, 0 deletions
diff --git a/vcl/inc/quartz/salvd.h b/vcl/inc/quartz/salvd.h
index e1d1d5137c33..e3c68ab9ff10 100644
--- a/vcl/inc/quartz/salvd.h
+++ b/vcl/inc/quartz/salvd.h
@@ -61,6 +61,9 @@ public:
virtual SalGraphics* AcquireGraphics() SAL_OVERRIDE;
virtual void ReleaseGraphics( SalGraphics* pGraphics ) SAL_OVERRIDE;
virtual bool SetSize( long nNewDX, long nNewDY ) SAL_OVERRIDE;
+
+ virtual long GetWidth() const SAL_OVERRIDE;
+ virtual long GetHeight() const SAL_OVERRIDE;
};
#endif // INCLUDED_VCL_INC_QUARTZ_SALVD_H
diff --git a/vcl/quartz/salvd.cxx b/vcl/quartz/salvd.cxx
index a524c1ed7127..ceb7e9b0db5c 100644
--- a/vcl/quartz/salvd.cxx
+++ b/vcl/quartz/salvd.cxx
@@ -277,4 +277,16 @@ bool AquaSalVirtualDevice::SetSize( long nDX, long nDY )
return (mxLayer != NULL);
}
+long AquaSalVirtualDevice::GetWidth() const
+{
+ const CGSize aSize = CGLayerGetSize( mxLayer );
+ return aSize.width;
+}
+
+long AquaSalVirtualDevice::GetHeight() const
+{
+ const CGSize aSize = CGLayerGetSize( mxLayer );
+ return aSize.height;
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */