diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-01-18 18:26:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-19 07:26:42 +0100 |
commit | a6106c9319e04f4966f30d357eedfe23bef4a30c (patch) | |
tree | 1f6177dcd857b46f77059c507dfb24012d5a9106 /include/vcl/outdev.hxx | |
parent | f1762fb4d9dce6897a36e425a0c95a1dd28c28af (diff) |
add OutputDevice::GetOutputRectPixel method
to simplify some and make an upcoming change less invasive
Change-Id: I699b2be8fa35b2b72271eda4a0885f89a47b348a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109563
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/outdev.hxx')
-rw-r--r-- | include/vcl/outdev.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index a989522ec7b5..8c4f47b74ad4 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -446,6 +446,10 @@ public: tools::Long GetOutOffYPixel() const { return mnOutOffY; } void SetOutOffXPixel(tools::Long nOutOffX); void SetOutOffYPixel(tools::Long nOutOffY); + Point GetOutputOffPixel() const + { return Point( mnOutOffX, mnOutOffY ); } + tools::Rectangle GetOutputRectPixel() const + { return tools::Rectangle(GetOutputOffPixel(), GetOutputSizePixel() ); } Size GetOutputSize() const { return PixelToLogic( GetOutputSizePixel() ); } |