summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2014-04-07 14:32:17 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2014-04-06 23:49:39 -0500
commit9413750057ad8f55203aa7c589b69211826ac30f (patch)
tree4dff68268371d4a85bde21afda01d7d268dd4bdd /vcl/source
parent8659d189ec04aca78c8ffff97fcca507ca0a9ec3 (diff)
Change newly introduced Clip* functions to ClipAndDraw
A number of new clipping functions have been introduced, but to make it more clear as to their purpose they have been renamed. They are: + ClipGradientToBounds -> ClipAndDrawGradientToBounds + ClipGradient -> ClipAndDrawGradient + XORClipGradient -> XORClipAndDrawGradient + ClipGradientMetafile -> ClipAndDrawGradientMetafile Change-Id: I2448a62d0473501a8d2613e685ee909cb6df7708 Reviewed-on: https://gerrit.libreoffice.org/8878 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/gdi/outdev4.cxx16
-rw-r--r--vcl/source/gdi/print.cxx6
2 files changed, 11 insertions, 11 deletions
diff --git a/vcl/source/gdi/outdev4.cxx b/vcl/source/gdi/outdev4.cxx
index 51033a5f27e5..f402244d79d1 100644
--- a/vcl/source/gdi/outdev4.cxx
+++ b/vcl/source/gdi/outdev4.cxx
@@ -675,7 +675,7 @@ void OutputDevice::DrawGradient( const Rectangle& rRect,
}
}
-void OutputDevice::ClipGradientMetafile ( const Gradient &rGradient, const PolyPolygon &rPolyPoly, const Rectangle &rBoundRect )
+void OutputDevice::ClipAndDrawGradientMetafile ( const Gradient &rGradient, const PolyPolygon &rPolyPoly, const Rectangle &rBoundRect )
{
const bool bOldOutput = IsOutputEnabled();
@@ -692,17 +692,17 @@ void OutputDevice::ClipGradientMetafile ( const Gradient &rGradient, const PolyP
EnableOutput( bOldOutput );
}
-void OutputDevice::ClipGradientToBounds ( Gradient &rGradient, const PolyPolygon &rPolyPoly )
+void OutputDevice::ClipAndDrawGradientToBounds ( Gradient &rGradient, const PolyPolygon &rPolyPoly )
{
const Rectangle aBoundRect( rPolyPoly.GetBoundRect() );
if( ImplGetSVData()->maGDIData.mbNoXORClipping )
- ClipGradient ( rGradient, rPolyPoly, aBoundRect );
+ ClipAndDrawGradient ( rGradient, rPolyPoly, aBoundRect );
else
- XORClipGradient ( rGradient, rPolyPoly, aBoundRect );
+ XORClipAndDrawGradient ( rGradient, rPolyPoly, aBoundRect );
}
-void OutputDevice::ClipGradient ( Gradient &rGradient, const PolyPolygon &rPolyPoly, const Rectangle &rBoundRect )
+void OutputDevice::ClipAndDrawGradient ( Gradient &rGradient, const PolyPolygon &rPolyPoly, const Rectangle &rBoundRect )
{
if( !Rectangle( PixelToLogic( Point() ), GetOutputSize() ).IsEmpty() )
{
@@ -745,7 +745,7 @@ void OutputDevice::ClipGradient ( Gradient &rGradient, const PolyPolygon &rPolyP
}
}
-void OutputDevice::XORClipGradient ( Gradient &rGradient, const PolyPolygon &rPolyPoly, const Rectangle &rBoundRect )
+void OutputDevice::XORClipAndDrawGradient ( Gradient &rGradient, const PolyPolygon &rPolyPoly, const Rectangle &rBoundRect )
{
const PolyPolygon aPolyPoly( LogicToPixel( rPolyPoly ) );
Point aPoint;
@@ -847,7 +847,7 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
mpMetaFile->AddAction( new MetaCommentAction( "XGRAD_SEQ_BEGIN" ) );
mpMetaFile->AddAction( new MetaGradientExAction( rPolyPoly, rGradient ) );
- ClipGradientMetafile ( rGradient, rPolyPoly, aBoundRect );
+ ClipAndDrawGradientMetafile ( rGradient, rPolyPoly, aBoundRect );
mpMetaFile->AddAction( new MetaCommentAction( "XGRAD_SEQ_END" ) );
}
@@ -884,7 +884,7 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
aGradient.SetEndColor( aEndCol );
}
- ClipGradientToBounds ( aGradient, rPolyPoly );
+ ClipAndDrawGradientToBounds ( aGradient, rPolyPoly );
}
if( mpAlphaVDev )
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index c66f1219a66d..774a82f6d129 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -1812,14 +1812,14 @@ bool Printer::UsePolyPolygonForComplexGradient()
return true;
}
-void Printer::ClipGradientToBounds ( Gradient &rGradient, const PolyPolygon &rPolyPoly )
+void Printer::ClipAndDrawGradientToBounds ( Gradient &rGradient, const PolyPolygon &rPolyPoly )
{
const Rectangle aBoundRect( rPolyPoly.GetBoundRect() );
- ClipGradient ( rGradient, rPolyPoly, aBoundRect );
+ ClipAndDrawGradient ( rGradient, rPolyPoly, aBoundRect );
}
-void Printer::ClipGradientMetafile ( const Gradient &rGradient, const PolyPolygon &rPolyPoly, const Rectangle &rBoundRect )
+void Printer::ClipAndDrawGradientMetafile ( const Gradient &rGradient, const PolyPolygon &rPolyPoly, const Rectangle &rBoundRect )
{
Push( PUSH_CLIPREGION );
IntersectClipRegion(Region(rPolyPoly));