X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..6ab3e0396c67d2674a2cf52a5d18cc26d2472619:/interface/wx/dcgraph.h diff --git a/interface/wx/dcgraph.h b/interface/wx/dcgraph.h index 345d015acf..cd6a5ea3a3 100644 --- a/interface/wx/dcgraph.h +++ b/interface/wx/dcgraph.h @@ -35,9 +35,33 @@ public: */ wxGCDC( const wxPrinterDC& dc ); + /** + Construct a wxGCDC from an existing grtaphics context. + */ + wxGCDC(wxGraphicsContext* context); + + /** + Constructs a wxGCDC from a wxEnhMetaFileDC. + + This constructor is only available in wxMSW port and when @c + wxUSE_ENH_METAFILE build option is enabled, i.e. when wxEnhMetaFileDC + class itself is available. + + @since 2.9.3 + */ + wxGCDC( const wxEnhMetaFileDC& dc ); + + wxGCDC(); + virtual ~wxGCDC(); /** Retrieves associated wxGraphicsContext */ - wxGraphicsContext* GetGraphicsContext(); + wxGraphicsContext* GetGraphicsContext() const; + + /** + Set the grpahics context to be used for this wxGCDC. + */ + void SetGraphicsContext( wxGraphicsContext* ctx ); + };