diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-12-06 22:38:24 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-12-07 14:46:05 +0100 |
commit | 1980d92a78445958ff57e26d065b9c471e3fd38d (patch) | |
tree | 68fd576f7e0068c08455f12c6a3d9ce49f272386 /vcl | |
parent | c43fdd0d179b2c0e8e3cb890eb2694723ff87b4c (diff) |
vcl: add b2IPointFromPoint and b2IRectangleFromRectangle
Change-Id: I3e964c0e5b0d54784cd392c6b430c6f30b7e6b75
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/helper/canvastools.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vcl/source/helper/canvastools.cxx b/vcl/source/helper/canvastools.cxx index a25b983b78b3..a81ec6b65c93 100644 --- a/vcl/source/helper/canvastools.cxx +++ b/vcl/source/helper/canvastools.cxx @@ -362,6 +362,11 @@ namespace vcl rPoint.getY() ); } + basegfx::B2IPoint b2IPointFromPoint(Point const& rPoint) + { + return basegfx::B2IPoint(rPoint.X(), rPoint.Y()); + } + Rectangle rectangleFromB2IRectangle( const basegfx::B2IRange& rRect ) { return ::Rectangle( rRect.getMinX(), @@ -370,6 +375,12 @@ namespace vcl rRect.getMaxY() ); } + basegfx::B2IRectangle b2IRectangleFromRectangle(Rectangle const& rRect) + { + return basegfx::B2IRectangle(rRect.Left(), rRect.Top(), + rRect.Right(), rRect.Bottom()); + } + basegfx::B2DVector b2DSizeFromSize( const ::Size& rSize ) { return basegfx::B2DVector( rSize.Width(), |