2008-04-30 09:34:15 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dcgraph.h
|
|
|
|
// Purpose: interface of wxGCDC
|
|
|
|
// Author: wxWidgets team
|
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.
|
|
|
|
|
2017-04-17 16:32:31 +00:00
|
|
|
@remarks
|
|
|
|
If Direct2D is a renderer of underlying graphics context, only wxFont objects
|
|
|
|
representing TrueType fonts can be used in the font-related functions.
|
|
|
|
|
2008-04-30 09:34:15 +00:00
|
|
|
@library{wxcore}
|
|
|
|
@category{dc}
|
|
|
|
|
|
|
|
@see wxDC, wxGraphicsContext
|
|
|
|
*/
|
|
|
|
|
|
|
|
class wxGCDC: public wxDC
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
Constructs a wxGCDC from a wxWindowDC.
|
|
|
|
*/
|
2011-09-25 04:30:49 +00:00
|
|
|
wxGCDC( const wxWindowDC& windowDC );
|
2009-01-11 12:05:05 +00:00
|
|
|
|
2008-04-30 09:34:15 +00:00
|
|
|
/**
|
|
|
|
Constructs a wxGCDC from a wxMemoryDC.
|
|
|
|
*/
|
2011-09-25 04:30:49 +00:00
|
|
|
wxGCDC( const wxMemoryDC& memoryDC );
|
2009-01-11 12:05:05 +00:00
|
|
|
|
2008-04-30 09:34:15 +00:00
|
|
|
/**
|
|
|
|
Constructs a wxGCDC from a wxPrinterDC.
|
|
|
|
*/
|
2011-09-25 04:30:49 +00:00
|
|
|
wxGCDC( const wxPrinterDC& printerDC );
|
2009-01-11 12:05:05 +00:00
|
|
|
|
2011-09-03 01:39:02 +00:00
|
|
|
/**
|
2012-12-01 00:14:31 +00:00
|
|
|
Construct a wxGCDC from an existing graphics context.
|
2011-09-03 01:39:02 +00:00
|
|
|
*/
|
|
|
|
wxGCDC(wxGraphicsContext* context);
|
|
|
|
|
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
|
|
|
|
*/
|
2011-09-25 04:30:49 +00:00
|
|
|
wxGCDC( const wxEnhMetaFileDC& emfDC );
|
2011-07-19 22:35:41 +00:00
|
|
|
|
2011-09-03 01:39:02 +00:00
|
|
|
wxGCDC();
|
|
|
|
virtual ~wxGCDC();
|
2011-09-25 04:30:49 +00:00
|
|
|
|
2008-04-30 09:34:15 +00:00
|
|
|
/**
|
|
|
|
Retrieves associated wxGraphicsContext
|
|
|
|
*/
|
2011-07-07 13:05:16 +00:00
|
|
|
wxGraphicsContext* GetGraphicsContext() const;
|
2011-09-03 01:39:02 +00:00
|
|
|
|
|
|
|
/**
|
2013-10-26 18:51:16 +00:00
|
|
|
Set the graphics context to be used for this wxGCDC.
|
2011-09-03 01:39:02 +00:00
|
|
|
*/
|
|
|
|
void SetGraphicsContext( wxGraphicsContext* ctx );
|
|
|
|
|
2008-04-30 09:34:15 +00:00
|
|
|
};
|
|
|
|
|