dcprint.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: dcprint.h
  3. // Purpose: interface of wxPrinterDC
  4. // Author: wxWidgets team
  5. // Licence: wxWindows licence
  6. /////////////////////////////////////////////////////////////////////////////
  7. /**
  8. @class wxPrinterDC
  9. A printer device context is specific to MSW and Mac, and allows access to
  10. any printer with a Windows or Macintosh driver. See wxDC for further
  11. information on device contexts, and wxDC::GetSize() for advice on achieving
  12. the correct scaling for the page.
  13. @library{wxcore}
  14. @category{printing}
  15. @see @ref overview_printing, wxDC
  16. */
  17. class wxPrinterDC : public wxDC
  18. {
  19. public:
  20. /**
  21. Constructor. Pass a wxPrintData object with information necessary for
  22. setting up a suitable printer device context. This is the recommended
  23. way to construct a wxPrinterDC. Make sure you specify a reference to a
  24. wxPrintData object, not a pointer - you may not even get a warning if
  25. you pass a pointer instead.
  26. */
  27. wxPrinterDC(const wxPrintData& printData);
  28. /**
  29. Return the rectangle in device coordinates that corresponds to the full
  30. paper area, including the nonprinting regions of the paper. The point
  31. (0,0) in device coordinates is the top left corner of the page
  32. rectangle, which is the printable area on MSW and Mac. The coordinates
  33. of the top left corner of the paper rectangle will therefore have small
  34. negative values, while the bottom right coordinates will be somewhat
  35. larger than the values returned by wxDC::GetSize().
  36. */
  37. wxRect GetPaperRect() const;
  38. };