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

void wxPdfDocument::SetY ( double  y ) [virtual]

Moves the current abscissa back to the left margin and sets the ordinate.

If the passed value is negative, it is relative to the bottom of the page.

Parameters:
yThe value of the ordinate.
See also:
GetX(), GetY(), SetY(), SetXY()

Definition at line 2024 of file pdfdoc.cpp.

References m_h, m_lMargin, m_x, and m_y.

Referenced by SetXY(), and TextBox().

{
  // Set y position and reset x
  m_x = m_lMargin;
  if ( y >= 0)
  {
    m_y = y;
  }
  else
  {
    m_y = m_h + y;
  }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index