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

void wxPdfDocument::SetMargins ( double  left,
double  top,
double  right = -1 
) [virtual]

Defines the left, top and right margins.

By default, they equal 1 cm. Call this method to change them.

Parameters:
leftLeft margin.
topTop margin.
rightRight margin. Default value is the left one.
See also:
SetLeftMargin(), SetTopMargin(), SetRightMargin(), SetAutoPageBreak()

Definition at line 1821 of file pdfdoc.cpp.

References m_lMargin, m_rMargin, and m_tMargin.

Referenced by wxPdfDocument().

{
  // Set left, top and right margins
  m_lMargin = left;
  m_tMargin = top;
  if (right == -1)
  {
    right = left;
  }
  m_rMargin = right;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index