| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- /////////////////////////////////////////////////////////////////////////////
- // Name: dcgraph.h
- // Purpose: interface of wxGCDC
- // Author: wxWidgets team
- // Licence: wxWindows licence
- /////////////////////////////////////////////////////////////////////////////
- /**
- @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& windowDC );
- /**
- Constructs a wxGCDC from a wxMemoryDC.
- */
- wxGCDC( const wxMemoryDC& memoryDC );
- /**
- Constructs a wxGCDC from a wxPrinterDC.
- */
- wxGCDC( const wxPrinterDC& printerDC );
- /**
- Construct a wxGCDC from an existing graphics context.
- */
- wxGCDC(wxGraphicsContext* context);
- /**
- 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& emfDC );
- wxGCDC();
- virtual ~wxGCDC();
-
- /**
- Retrieves associated wxGraphicsContext
- */
- wxGraphicsContext* GetGraphicsContext() const;
- /**
- Set the graphics context to be used for this wxGCDC.
- */
- void SetGraphicsContext( wxGraphicsContext* ctx );
- };
|