]> git.saurik.com Git - wxWidgets.git/commitdiff
Mention wxGCDC
authorRobert Roebling <robert@roebling.de>
Wed, 30 Apr 2008 09:34:15 +0000 (09:34 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 30 Apr 2008 09:34:15 +0000 (09:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/dc.h
interface/dcgraph.h [new file with mode: 0644]
interface/graphics.h

index 5aeaf2c3bef55da2da0cfd7842ced26902dea726..18110e3709320de2e7c4982717ded51a2c3e4f4e 100644 (file)
@@ -16,7 +16,8 @@
     
     wxWidgets offers an alternative drawing API based on the modern drawing
     backends GDI+, CoreGraphics and Cairo. See wxGraphicsContext, wxGraphicsRenderer
     
     wxWidgets offers an alternative drawing API based on the modern drawing
     backends GDI+, CoreGraphics and Cairo. See wxGraphicsContext, wxGraphicsRenderer
-    and related classes.
+    and related classes. There is also a wxGCDC linking the APIs by offering
+    the wxDC API ontop of a wxGraphicsContext.
 
     wxDC is an abstract base class and cannot be created directly.
     Use wxPaintDC, wxClientDC, wxWindowDC, wxScreenDC, wxMemoryDC or
 
     wxDC is an abstract base class and cannot be created directly.
     Use wxPaintDC, wxClientDC, wxWindowDC, wxScreenDC, wxMemoryDC or
diff --git a/interface/dcgraph.h b/interface/dcgraph.h
new file mode 100644 (file)
index 0000000..e4d4459
--- /dev/null
@@ -0,0 +1,44 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name:        dcgraph.h
+// Purpose:     interface of wxGCDC
+// Author:      wxWidgets team
+// RCS-ID:      $Id: $
+// Licence:     wxWindows license
+/////////////////////////////////////////////////////////////////////////////
+
+/**
+    @class wxGCDC
+    @wxheader{dcgraph.h}
+
+    wxGCDC is a device context that draws on a wxGraphicsContext.
+
+    @library{wxcore}
+    @category{dc}
+
+    @see wxDC, wxGraphicsContext
+*/
+
+class wxGCDC: public wxDC
+{
+public:
+    /**
+       Constructs a wxGCDC from a wxWindowDC.
+    */
+    wxGCDC( const wxWindowDC& dc );
+    
+    /**
+       Constructs a wxGCDC from a wxMemoryDC.
+    */
+    wxGCDC( const wxMemoryDC& dc );
+    
+    /**
+       Constructs a wxGCDC from a wxPrinterDC.
+    */
+    wxGCDC( const wxPrinterDC& dc );
+    /**
+       Retrieves associated wxGraphicsContext
+    */
+    wxGraphicsContext* GetGraphicsContext();
+};
+
index 921981596d3427e4c3031f27860f5ebb1aa1033b..f675292f36c83e0deac8e1da29fb0eb9d7fee782 100644 (file)
@@ -229,7 +229,7 @@ public:
     @library{wxcore}
     @category{FIXME}
 
     @library{wxcore}
     @category{FIXME}
 
-    @see wxGraphicsRenderer:: CreateContext
+    @see wxGraphicsRenderer::CreateContext(), wxGCDC, wxDC
 */
 class wxGraphicsContext : public wxGraphicsObject
 {
 */
 class wxGraphicsContext : public wxGraphicsObject
 {