diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-04-26 02:41:27 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-04-27 20:53:27 +1000 |
commit | 0ff8f8e680c9d815dff9ee04a7f989048efe5080 (patch) | |
tree | 3866537c72913748bbe79d56ea43a415aca6a6e3 /include/vcl/outdev.hxx | |
parent | 900058b453ebf291fc6ee95fe797ad5dc5fe22ce (diff) |
VCL: Move polygon functions in outdev.hxx
Change-Id: I4d745b05efbbba9e07a93da1945154f5190346c8
Diffstat (limited to 'include/vcl/outdev.hxx')
-rw-r--r-- | include/vcl/outdev.hxx | 63 |
1 files changed, 35 insertions, 28 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 49c7382aba26..28505e89fe11 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -726,6 +726,34 @@ private: /** @name Polygon functions */ ///@{ +public: + /** Render the given polygon + + The given polygon is stroked with the current LineColor, and + filled with the current FillColor. If one of these colors are + transparent, the corresponding stroke or fill stays + invisible. Start and end point of the polygon are + automatically connected. + + @see DrawPolyLine + */ + void DrawPolygon( const Polygon& rPoly ); + void DrawPolygon( const basegfx::B2DPolygon& ); + + /** Render the given poly-polygon + + The given poly-polygon is stroked with the current LineColor, + and filled with the current FillColor. If one of these colors + are transparent, the corresponding stroke or fill stays + invisible. Start and end points of the contained polygons are + automatically connected. + + @see DrawPolyLine + */ + void DrawPolyPolygon( const PolyPolygon& rPolyPoly ); + void DrawPolyPolygon( const basegfx::B2DPolyPolygon& ); + +private: SAL_DLLPRIVATE void ImplDrawPolygon( const Polygon& rPoly, const PolyPolygon* pClipPolyPoly = NULL ); SAL_DLLPRIVATE void ImplDrawPolyPolygon( const PolyPolygon& rPolyPoly, const PolyPolygon* pClipPolyPoly = NULL ); SAL_DLLPRIVATE void ImplDrawPolyPolygon( sal_uInt16 nPoly, const PolyPolygon& rPolyPoly ); @@ -791,48 +819,27 @@ public: ///@} + /** @name Transparency functions + */ + ///@{ protected: virtual void EmulateDrawTransparent( const PolyPolygon& rPolyPoly, sal_uInt16 nTransparencePercent ); void DrawInvisiblePolygon( const PolyPolygon& rPolyPoly ); private: + bool DrawTransparentNatively( const PolyPolygon& rPolyPoly, sal_uInt16 nTransparencePercent ); + ///@} + +private: // not implemented; to detect misuses of DrawOutDev(...OutputDevice&); void DrawOutDev( const Point&, const Size&, const Point&, const Size&, const Printer&); - bool DrawTransparentNatively( const PolyPolygon& rPolyPoly, sal_uInt16 nTransparencePercent ); - public: void DrawPixel( const Point& rPt ); void DrawPixel( const Point& rPt, const Color& rColor ); void DrawPixel( const Polygon& rPts, const Color* pColors = NULL ); void DrawPixel( const Polygon& rPts, const Color& rColor ); - /** Render the given polygon - - The given polygon is stroked with the current LineColor, and - filled with the current FillColor. If one of these colors are - transparent, the corresponding stroke or fill stays - invisible. Start and end point of the polygon are - automatically connected. - - @see DrawPolyLine - */ - void DrawPolygon( const Polygon& rPoly ); - void DrawPolygon( const basegfx::B2DPolygon& ); - - /** Render the given poly-polygon - - The given poly-polygon is stroked with the current LineColor, - and filled with the current FillColor. If one of these colors - are transparent, the corresponding stroke or fill stays - invisible. Start and end points of the contained polygons are - automatically connected. - - @see DrawPolyLine - */ - void DrawPolyPolygon( const PolyPolygon& rPolyPoly ); - void DrawPolyPolygon( const basegfx::B2DPolyPolygon& ); - void DrawRect( const Rectangle& rRect ); void DrawRect( const Rectangle& rRect, sal_uLong nHorzRount, sal_uLong nVertRound ); |