git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53421
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
public:
wxGCDC( const wxWindowDC& dc );
wxGCDC( const wxMemoryDC& dc );
+ wxGCDC( const wxPrinterDC& dc );
wxGCDC();
virtual ~wxGCDC();
public:
wxGCDCImpl( wxDC *owner, const wxWindowDC& dc );
wxGCDCImpl( wxDC *owner, const wxMemoryDC& dc );
+ wxGCDCImpl( wxDC *owner, const wxPrinterDC& dc );
wxGCDCImpl( wxDC *owner );
virtual ~wxGCDCImpl();
{
}
+wxGCDC::wxGCDC( const wxPrinterDC& dc) :
+ wxDC( new wxGCDCImpl( this, dc ) )
+{
+}
+
wxGCDC::wxGCDC() :
wxDC( new wxGCDCImpl( this ) )
{
SetGraphicsContext( wxGraphicsContext::Create(dc) );
}
+wxGCDCImpl::wxGCDCImpl( wxDC *owner, const wxPrinterDC& dc ) :
+ wxDCImpl( owner )
+{
+ Init();
+ SetGraphicsContext( wxGraphicsContext::Create(dc) );
+}
+
void wxGCDCImpl::Init()
{
m_ok = false;