2008-04-30 05:34:15 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dcgraph.h
|
|
|
|
// Purpose: interface of wxGCDC
|
|
|
|
// Author: wxWidgets team
|
2009-01-11 07:05:05 -05:00
|
|
|
// RCS-ID: $Id$
|
2010-07-13 09:29:13 -04:00
|
|
|
// Licence: wxWindows licence
|
2008-04-30 05:34:15 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxGCDC
|
|
|
|
|
|
|
|
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 );
|
2009-01-11 07:05:05 -05:00
|
|
|
|
2008-04-30 05:34:15 -04:00
|
|
|
/**
|
|
|
|
Constructs a wxGCDC from a wxMemoryDC.
|
|
|
|
*/
|
|
|
|
wxGCDC( const wxMemoryDC& dc );
|
2009-01-11 07:05:05 -05:00
|
|
|
|
2008-04-30 05:34:15 -04:00
|
|
|
/**
|
|
|
|
Constructs a wxGCDC from a wxPrinterDC.
|
|
|
|
*/
|
|
|
|
wxGCDC( const wxPrinterDC& dc );
|
2009-01-11 07:05:05 -05:00
|
|
|
|
2011-07-19 18:35:41 -04:00
|
|
|
/**
|
|
|
|
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& dc );
|
|
|
|
|
2008-04-30 05:34:15 -04:00
|
|
|
/**
|
|
|
|
Retrieves associated wxGraphicsContext
|
|
|
|
*/
|
2011-07-07 09:05:16 -04:00
|
|
|
wxGraphicsContext* GetGraphicsContext() const;
|
2008-04-30 05:34:15 -04:00
|
|
|
};
|
|
|
|
|