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