]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/dcgraph.h
update minimum GTK2 version requirement to 2.6
[wxWidgets.git] / interface / wx / dcgraph.h
index e4d4459bfca1183cf3cf8e1c223b75735bd7e2e2..0683c3a1fc403e620f1cf14e5ecfbe46f8d7eac9 100644 (file)
@@ -2,13 +2,12 @@
 // Name:        dcgraph.h
 // Purpose:     interface of wxGCDC
 // Author:      wxWidgets team
-// RCS-ID:      $Id$
-// Licence:     wxWindows license
+// RCS-ID:      $Id$
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 /**
     @class wxGCDC
-    @wxheader{dcgraph.h}
 
     wxGCDC is a device context that draws on a wxGraphicsContext.
 
@@ -24,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 );
+
 };