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

void wxPdfDocument::SetTextColor ( const wxColour &  color ) [virtual]

Defines the color used for text.

It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.

Parameters:
colordefines a color composed of a red, green and blue component
See also:
SetDrawColor(), SetFillColor(), Text(), Cell(), MultiCell()

Definition at line 398 of file pdfcolor.cpp.

References m_colorFlag, m_fillColor, and m_textColor.

{
  wxPdfColour tempColor(color);
  m_textColor = tempColor;
  m_colorFlag = (m_fillColor != m_textColor);
}

Generated by  Doxygen 1.6.0   Back to index