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