]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/dcgraph.h
Try native method first in LoadFile() and SaveFile()
[wxWidgets.git] / interface / wx / dcgraph.h
CommitLineData
6d99a337
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcgraph.h
3// Purpose: interface of wxGCDC
4// Author: wxWidgets team
526954c5 5// Licence: wxWindows licence
6d99a337
RR
6/////////////////////////////////////////////////////////////////////////////
7
8/**
9 @class wxGCDC
6d99a337
RR
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
19class wxGCDC: public wxDC
20{
21public:
22 /**
23 Constructs a wxGCDC from a wxWindowDC.
24 */
6e350141 25 wxGCDC( const wxWindowDC& windowDC );
d0bbcd06 26
6d99a337
RR
27 /**
28 Constructs a wxGCDC from a wxMemoryDC.
29 */
6e350141 30 wxGCDC( const wxMemoryDC& memoryDC );
d0bbcd06 31
6d99a337
RR
32 /**
33 Constructs a wxGCDC from a wxPrinterDC.
34 */
6e350141 35 wxGCDC( const wxPrinterDC& printerDC );
d0bbcd06 36
8ff9b17d 37 /**
04783062 38 Construct a wxGCDC from an existing graphics context.
8ff9b17d
RD
39 */
40 wxGCDC(wxGraphicsContext* context);
41
2d770c4f
VZ
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 */
6e350141 51 wxGCDC( const wxEnhMetaFileDC& emfDC );
2d770c4f 52
8ff9b17d
RD
53 wxGCDC();
54 virtual ~wxGCDC();
6e350141 55
6d99a337
RR
56 /**
57 Retrieves associated wxGraphicsContext
58 */
6c0e710f 59 wxGraphicsContext* GetGraphicsContext() const;
8ff9b17d
RD
60
61 /**
62 Set the grpahics context to be used for this wxGCDC.
63 */
64 void SetGraphicsContext( wxGraphicsContext* ctx );
65
6d99a337
RR
66};
67