]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/dcgraph.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxGCDC
4 // Author: wxWidgets team
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
12 wxGCDC is a device context that draws on a wxGraphicsContext.
17 @see wxDC, wxGraphicsContext
20 class wxGCDC
: public wxDC
24 Constructs a wxGCDC from a wxWindowDC.
26 wxGCDC( const wxWindowDC
& windowDC
);
29 Constructs a wxGCDC from a wxMemoryDC.
31 wxGCDC( const wxMemoryDC
& memoryDC
);
34 Constructs a wxGCDC from a wxPrinterDC.
36 wxGCDC( const wxPrinterDC
& printerDC
);
39 Construct a wxGCDC from an existing grtaphics context.
41 wxGCDC(wxGraphicsContext
* context
);
44 Constructs a wxGCDC from a wxEnhMetaFileDC.
46 This constructor is only available in wxMSW port and when @c
47 wxUSE_ENH_METAFILE build option is enabled, i.e. when wxEnhMetaFileDC
48 class itself is available.
52 wxGCDC( const wxEnhMetaFileDC
& emfDC
);
58 Retrieves associated wxGraphicsContext
60 wxGraphicsContext
* GetGraphicsContext() const;
63 Set the grpahics context to be used for this wxGCDC.
65 void SetGraphicsContext( wxGraphicsContext
* ctx
);