]>
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
& dc
);
29 Constructs a wxGCDC from a wxMemoryDC.
31 wxGCDC( const wxMemoryDC
& dc
);
34 Constructs a wxGCDC from a wxPrinterDC.
36 wxGCDC( const wxPrinterDC
& dc
);
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
& dc
);
57 Retrieves associated wxGraphicsContext
59 wxGraphicsContext
* GetGraphicsContext() const;
62 Set the grpahics context to be used for this wxGCDC.
64 void SetGraphicsContext( wxGraphicsContext
* ctx
);