dcgraph.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: dcgraph.h
  3. // Purpose: interface of wxGCDC
  4. // Author: wxWidgets team
  5. // Licence: wxWindows licence
  6. /////////////////////////////////////////////////////////////////////////////
  7. /**
  8. @class wxGCDC
  9. wxGCDC is a device context that draws on a wxGraphicsContext.
  10. @library{wxcore}
  11. @category{dc}
  12. @see wxDC, wxGraphicsContext
  13. */
  14. class wxGCDC: public wxDC
  15. {
  16. public:
  17. /**
  18. Constructs a wxGCDC from a wxWindowDC.
  19. */
  20. wxGCDC( const wxWindowDC& windowDC );
  21. /**
  22. Constructs a wxGCDC from a wxMemoryDC.
  23. */
  24. wxGCDC( const wxMemoryDC& memoryDC );
  25. /**
  26. Constructs a wxGCDC from a wxPrinterDC.
  27. */
  28. wxGCDC( const wxPrinterDC& printerDC );
  29. /**
  30. Construct a wxGCDC from an existing graphics context.
  31. */
  32. wxGCDC(wxGraphicsContext* context);
  33. /**
  34. Constructs a wxGCDC from a wxEnhMetaFileDC.
  35. This constructor is only available in wxMSW port and when @c
  36. wxUSE_ENH_METAFILE build option is enabled, i.e. when wxEnhMetaFileDC
  37. class itself is available.
  38. @since 2.9.3
  39. */
  40. wxGCDC( const wxEnhMetaFileDC& emfDC );
  41. wxGCDC();
  42. virtual ~wxGCDC();
  43. /**
  44. Retrieves associated wxGraphicsContext
  45. */
  46. wxGraphicsContext* GetGraphicsContext() const;
  47. /**
  48. Set the graphics context to be used for this wxGCDC.
  49. */
  50. void SetGraphicsContext( wxGraphicsContext* ctx );
  51. };