X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d770c4f8204938933914a961d4142f97ec12f50..92c0fc34c104c8d7c12d6a3b78ea232690fc23f4:/interface/wx/dcgraph.h diff --git a/interface/wx/dcgraph.h b/interface/wx/dcgraph.h index 5d086485c1..102d879778 100644 --- a/interface/wx/dcgraph.h +++ b/interface/wx/dcgraph.h @@ -2,7 +2,6 @@ // Name: dcgraph.h // Purpose: interface of wxGCDC // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -23,17 +22,22 @@ public: /** Constructs a wxGCDC from a wxWindowDC. */ - wxGCDC( const wxWindowDC& dc ); + wxGCDC( const wxWindowDC& windowDC ); /** Constructs a wxGCDC from a wxMemoryDC. */ - wxGCDC( const wxMemoryDC& dc ); + wxGCDC( const wxMemoryDC& memoryDC ); /** Constructs a wxGCDC from a wxPrinterDC. */ - wxGCDC( const wxPrinterDC& dc ); + wxGCDC( const wxPrinterDC& printerDC ); + + /** + Construct a wxGCDC from an existing graphics context. + */ + wxGCDC(wxGraphicsContext* context); /** Constructs a wxGCDC from a wxEnhMetaFileDC. @@ -44,11 +48,20 @@ public: @since 2.9.3 */ - wxGCDC( const wxEnhMetaFileDC& dc ); + wxGCDC( const wxEnhMetaFileDC& emfDC ); + wxGCDC(); + virtual ~wxGCDC(); + /** Retrieves associated wxGraphicsContext */ wxGraphicsContext* GetGraphicsContext() const; + + /** + Set the grpahics context to be used for this wxGCDC. + */ + void SetGraphicsContext( wxGraphicsContext* ctx ); + };