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

double wxPdfDocument::GetStringWidth ( const wxString &  s ) [virtual]

Returns the length of a string in user unit.

A font must be selected.

Parameters:
sThe string whose length is to be computed
Returns:
int

Definition at line 852 of file pdfdoc.cpp.

References wxPdfFont::GetStringWidth(), m_currentFont, and m_fontSize.

Referenced by Cell(), DoDecoration(), LineCount(), MultiCell(), PrepareXmlCell(), ShapedText(), WriteCell(), and WriteXmlCell().

{
  double w = 0;
  if (m_currentFont != 0)
  {
    w = m_currentFont->GetStringWidth(s) * m_fontSize;
  }
  return w;
}

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