]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/dcgraph.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxGCDC
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
11 wxGCDC is a device context that draws on a wxGraphicsContext.
16 @see wxDC, wxGraphicsContext
19 class wxGCDC
: public wxDC
23 Constructs a wxGCDC from a wxWindowDC.
25 wxGCDC( const wxWindowDC
& windowDC
);
28 Constructs a wxGCDC from a wxMemoryDC.
30 wxGCDC( const wxMemoryDC
& memoryDC
);
33 Constructs a wxGCDC from a wxPrinterDC.
35 wxGCDC( const wxPrinterDC
& printerDC
);
38 Construct a wxGCDC from an existing graphics context.
40 wxGCDC(wxGraphicsContext
* context
);
43 Constructs a wxGCDC from a wxEnhMetaFileDC.
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.
51 wxGCDC( const wxEnhMetaFileDC
& emfDC
);
57 Retrieves associated wxGraphicsContext
59 wxGraphicsContext
* GetGraphicsContext() const;
62 Set the grpahics context to be used for this wxGCDC.
64 void SetGraphicsContext( wxGraphicsContext
* ctx
);