Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

void PoDoFo::PdfTable::DrawHorizontalBorders ( int  nRow,
double  dX,
double  dY,
PdfPainter pPainter,
double *  pdColWidths 
) [protected]

Draw one row of horizontal cell borders using the correct color for each cell.

nRowthe current row
dXleft x coordinate
dYy coordinate
pPainteruse this painter object
pdColWidthsan array containing all colomun widths

Definition at line 265 of file PdfTable.cpp.

References PoDoFo::PdfPainter::DrawLine(), PoDoFo::PdfTableModel::GetBorderColor(), PoDoFo::PdfPainter::Restore(), PoDoFo::PdfPainter::Save(), PoDoFo::PdfPainter::SetLineCapStyle(), and PoDoFo::PdfPainter::SetStrokingColor().

Referenced by Draw().

    double dCurX = 0.0;
    pPainter->SetLineCapStyle( ePdfLineCapStyle_Square );
    for( int i=0;i<m_nCols;i++ )
        pPainter->SetStrokingColor( m_pModel->GetBorderColor( i, nRow ) );
          pPainter->DrawLine( dX + dCurX, dY, dX + dCurX + pdColWidths[i], dY );

        dCurX += pdColWidths[i];

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index