]> git.saurik.com Git - wxWidgets.git/blob - interface/wx/dcgraph.h
Ensure that the overall table border doesn't get overdrawn by cell borders with a...
[wxWidgets.git] / interface / wx / dcgraph.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dcgraph.h
3 // Purpose: interface of wxGCDC
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
7
8 /**
9 @class wxGCDC
10
11 wxGCDC is a device context that draws on a wxGraphicsContext.
12
13 @library{wxcore}
14 @category{dc}
15
16 @see wxDC, wxGraphicsContext
17 */
18
19 class wxGCDC: public wxDC
20 {
21 public:
22 /**
23 Constructs a wxGCDC from a wxWindowDC.
24 */
25 wxGCDC( const wxWindowDC& windowDC );
26
27 /**
28 Constructs a wxGCDC from a wxMemoryDC.
29 */
30 wxGCDC( const wxMemoryDC& memoryDC );
31
32 /**
33 Constructs a wxGCDC from a wxPrinterDC.
34 */
35 wxGCDC( const wxPrinterDC& printerDC );
36
37 /**
38 Construct a wxGCDC from an existing graphics context.
39 */
40 wxGCDC(wxGraphicsContext* context);
41
42 /**
43 Constructs a wxGCDC from a wxEnhMetaFileDC.
44
45 This constructor is only available in wxMSW port and when @c
46 wxUSE_ENH_METAFILE build option is enabled, i.e. when wxEnhMetaFileDC
47 class itself is available.
48
49 @since 2.9.3
50 */
51 wxGCDC( const wxEnhMetaFileDC& emfDC );
52
53 wxGCDC();
54 virtual ~wxGCDC();
55
56 /**
57 Retrieves associated wxGraphicsContext
58 */
59 wxGraphicsContext* GetGraphicsContext() const;
60
61 /**
62 Set the grpahics context to be used for this wxGCDC.
63 */
64 void SetGraphicsContext( wxGraphicsContext* ctx );
65
66 };
67