KiCad PCB EDA Suite
|
Provide a Cairo context created from wxPrintDC. More...
#include <cairo_print.h>
Public Member Functions | |
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 |
cairo_t * | m_ctx |
cairo_surface_t * | m_surface |
double | m_dpi |
Provide a Cairo context created from wxPrintDC.
It allows one to prepare printouts using the Cairo library and let wxWidgets handle the rest.
Definition at line 38 of file cairo_print.h.
CAIRO_PRINT_CTX::CAIRO_PRINT_CTX | ( | wxDC * | aDC | ) |
Definition at line 52 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 121 of file cairo_print.cpp.
|
inline |
Definition at line 44 of file cairo_print.h.
References m_ctx.
|
inlineoverridevirtual |
|
inline |
Definition at line 49 of file cairo_print.h.
References m_surface.
|
inlineoverridevirtual |
Implements KIGFX::PRINT_CONTEXT.
Definition at line 59 of file cairo_print.h.
|
private |
Definition at line 70 of file cairo_print.h.
Referenced by CAIRO_PRINT_CTX(), GetContext(), and ~CAIRO_PRINT_CTX().
|
private |
Definition at line 78 of file cairo_print.h.
Referenced by CAIRO_PRINT_CTX(), and GetNativeDPI().
|
private |
Definition at line 69 of file cairo_print.h.
Referenced by CAIRO_PRINT_CTX(), and ~CAIRO_PRINT_CTX().
|
private |
Definition at line 71 of file cairo_print.h.
Referenced by CAIRO_PRINT_CTX(), GetSurface(), and ~CAIRO_PRINT_CTX().