X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d0bbcd06d2da50de48c7f736669305b6aa9c99b5..9e0fb9661593521046dd9b7f1d92ef71bd0e94fe:/interface/wx/dcgraph.h diff --git a/interface/wx/dcgraph.h b/interface/wx/dcgraph.h index b93391bd5b..0683c3a1fc 100644 --- a/interface/wx/dcgraph.h +++ b/interface/wx/dcgraph.h @@ -3,7 +3,7 @@ // Purpose: interface of wxGCDC // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -23,21 +23,46 @@ 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 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& emfDC ); + + 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 ); + };