|
KiCad PCB EDA Suite
|
Provide a Cairo context created from wxPrintDC or an wxImage. More...
#include <cairo_print.h>
Public Member Functions | |
| CAIRO_PRINT_CTX (wxImage *aImage, double aDPI) | |
| CAIRO_PRINT_CTX (wxDC *aDC) | |
| ~CAIRO_PRINT_CTX () | |
| cairo_t * | GetContext () const |
| cairo_surface_t * | GetSurface () const |
| double | GetNativeDPI () const override |
| bool | HasNativeLandscapeRotation () const override |
Private Attributes | |
| wxGCDC * | m_gcdc = nullptr |
| wxImage * | m_targetImage = nullptr |
| cairo_t * | m_ctx = nullptr |
| cairo_surface_t * | m_surface = nullptr |
| double | m_dpi = 72.0 |
Provide a Cairo context created from wxPrintDC or an wxImage.
It allows one to prepare printouts using the Cairo library and let wxWidgets handle the rest.
Definition at line 39 of file cairo_print.h.
| CAIRO_PRINT_CTX::CAIRO_PRINT_CTX | ( | wxImage * | aImage, |
| double | aDPI ) |
Definition at line 54 of file cairo_print.cpp.
References m_ctx, m_dpi, m_surface, and m_targetImage.
| CAIRO_PRINT_CTX::CAIRO_PRINT_CTX | ( | wxDC * | aDC | ) |
Definition at line 74 of file cairo_print.cpp.
References DEFAULT_DPI, m_ctx, m_dpi, m_gcdc, and m_surface.
| CAIRO_PRINT_CTX::~CAIRO_PRINT_CTX | ( | ) |
Definition at line 141 of file cairo_print.cpp.
References m_ctx, m_gcdc, m_surface, and m_targetImage.
|
inline |
Definition at line 46 of file cairo_print.h.
References m_ctx.
|
inlineoverridevirtual |
|
inline |
Definition at line 51 of file cairo_print.h.
References m_surface.
|
inlineoverridevirtual |
Implements KIGFX::PRINT_CONTEXT.
Definition at line 61 of file cairo_print.h.
|
private |
Definition at line 73 of file cairo_print.h.
Referenced by CAIRO_PRINT_CTX(), CAIRO_PRINT_CTX(), GetContext(), and ~CAIRO_PRINT_CTX().
|
private |
Definition at line 81 of file cairo_print.h.
Referenced by CAIRO_PRINT_CTX(), CAIRO_PRINT_CTX(), and GetNativeDPI().
|
private |
Definition at line 71 of file cairo_print.h.
Referenced by CAIRO_PRINT_CTX(), and ~CAIRO_PRINT_CTX().
|
private |
Definition at line 74 of file cairo_print.h.
Referenced by CAIRO_PRINT_CTX(), CAIRO_PRINT_CTX(), GetSurface(), and ~CAIRO_PRINT_CTX().
|
private |
Definition at line 72 of file cairo_print.h.
Referenced by CAIRO_PRINT_CTX(), and ~CAIRO_PRINT_CTX().