diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-11-29 22:14:36 +0000 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-12-02 08:34:52 +0100 |
commit | c31ed7004dfb3e8e37ddeb9fddf0f015b661dd12 (patch) | |
tree | 48d3069604bc35122347b6d346649c84f84ef67c /vcl/inc/headless | |
parent | c22d5338fad383800b35efa458561bb89b604922 (diff) |
vcl: create a GeometryProvider interface.
Implemented by both SalFrame and SalVirtualDevice, to help us to
un-tangle code that needs to operate on resources associated with
both of these without special cases.
Change-Id: If681a002647e20c57186577fe039d4ac85bba872
Diffstat (limited to 'vcl/inc/headless')
-rw-r--r-- | vcl/inc/headless/svpvd.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/inc/headless/svpvd.hxx b/vcl/inc/headless/svpvd.hxx index eb6b8d1b2b0c..fa9d042a22bb 100644 --- a/vcl/inc/headless/svpvd.hxx +++ b/vcl/inc/headless/svpvd.hxx @@ -47,6 +47,10 @@ public: ) SAL_OVERRIDE; basebmp::BitmapDeviceSharedPtr getBitmapDevice() { return m_aDevice; } + + // SalGeometryProvider + virtual long GetWidth() const SAL_OVERRIDE { return m_aDevice.get() ? m_aDevice->getSize().getX() : 0; } + virtual long GetHeight() const SAL_OVERRIDE { return m_aDevice.get() ? m_aDevice->getSize().getY() : 0; } }; #endif // INCLUDED_VCL_INC_HEADLESS_SVPVD_HXX |