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