From 6d99a337a7a6300a14909c11cae0ecea2abe17ea Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Wed, 30 Apr 2008 09:34:15 +0000 Subject: [PATCH] Mention wxGCDC git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/dc.h | 3 ++- interface/dcgraph.h | 44 ++++++++++++++++++++++++++++++++++++++++++++ interface/graphics.h | 2 +- 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 interface/dcgraph.h diff --git a/interface/dc.h b/interface/dc.h index 5aeaf2c3be..18110e3709 100644 --- a/interface/dc.h +++ b/interface/dc.h @@ -16,7 +16,8 @@ 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 diff --git a/interface/dcgraph.h b/interface/dcgraph.h new file mode 100644 index 0000000000..e4d4459bfc --- /dev/null +++ b/interface/dcgraph.h @@ -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(); +}; + diff --git a/interface/graphics.h b/interface/graphics.h index 921981596d..f675292f36 100644 --- a/interface/graphics.h +++ b/interface/graphics.h @@ -229,7 +229,7 @@ public: @library{wxcore} @category{FIXME} - @see wxGraphicsRenderer:: CreateContext + @see wxGraphicsRenderer::CreateContext(), wxGCDC, wxDC */ class wxGraphicsContext : public wxGraphicsObject { -- 2.45.2