Lines Matching refs:nPoints
66 inline SalPolyLine( sal_uLong nPoints );
67 inline SalPolyLine( sal_uLong nPoints, const SalPoint *p );
73 inline SalPolyLine::SalPolyLine( sal_uLong nPoints ) in SalPolyLine() argument
74 : pFirst_( nPoints+1 > STATIC_POINTS ? new XPoint[nPoints+1] : Points_ ) in SalPolyLine()
77 inline SalPolyLine::SalPolyLine( sal_uLong nPoints, const SalPoint *p ) in SalPolyLine() argument
78 : pFirst_( nPoints+1 > STATIC_POINTS ? new XPoint[nPoints+1] : Points_ ) in SalPolyLine()
80 for( sal_uLong i = 0; i < nPoints; i++ ) in SalPolyLine()
85 pFirst_[nPoints] = pFirst_[0]; // close polyline in SalPolyLine()
389 void X11SalGraphics::DrawLines( sal_uLong nPoints, in DrawLines() argument
398 if( nMaxLines > nPoints ) nMaxLines = nPoints; in DrawLines()
402 for( n = 0; nPoints - n > nMaxLines; n += nMaxLines - 1 ) in DrawLines()
410 if( n < nPoints ) in DrawLines()
415 nPoints - n, in DrawLines()
419 if( rPoints[nPoints-1].x != rPoints[0].x || rPoints[nPoints-1].y != rPoints[0].y ) in DrawLines()
420 drawLine( rPoints[nPoints-1].x, rPoints[nPoints-1].y, rPoints[0].x, rPoints[0].y ); in DrawLines()
846 void X11SalGraphics::drawPolyLine( sal_uInt32 nPoints, const SalPoint *pPtAry ) in drawPolyLine() argument
848 drawPolyLine( nPoints, pPtAry, false ); in drawPolyLine()
852 void X11SalGraphics::drawPolyLine( sal_uInt32 nPoints, const SalPoint *pPtAry, bool bClose ) in drawPolyLine() argument
856 SalPolyLine Points( nPoints, pPtAry ); in drawPolyLine()
858 DrawLines( nPoints, Points, SelectPen(), bClose ); in drawPolyLine()
863 void X11SalGraphics::drawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry ) in drawPolygon() argument
865 if( nPoints == 0 ) in drawPolygon()
868 if( nPoints < 3 ) in drawPolygon()
872 if( 1 == nPoints ) in drawPolygon()
881 SalPolyLine Points( nPoints, pPtAry ); in drawPolygon()
883 nPoints++; in drawPolygon()
892 if( nPoints == 5 && in drawPolygon()
901 for(unsigned int i = 0; i < nPoints; i++ ) in drawPolygon()
912 for( unsigned int i = 0; i < nPoints; i++ ) in drawPolygon()
922 &Points[0], nPoints, in drawPolygon()
926 DrawLines( nPoints, Points, SelectPen(), true ); in drawPolygon()
1001 void X11SalGraphics::invert( sal_uInt32 nPoints, in invert() argument
1005 SalPolyLine Points ( nPoints, pPtAry ); in invert()
1017 DrawLines ( nPoints, Points, pGC, true ); in invert()
1022 &Points[0], nPoints, in invert()