LibrePCB Developers Documentation
|
Base class for printing a page for librepcb::GraphicsExport. More...
#include <graphicsexport.h>
Public Member Functions | |
virtual void | paint (QPainter &painter, const GraphicsExportSettings &settings) const noexcept=0 |
Draw page content on a QPainter. More... | |
Base class for printing a page for librepcb::GraphicsExport.
The class librepcb::GraphicsExport relies on this base class for performing the actual printing of a page. Subclasses only need to implement paint() to draw arbitrary graphics which librepcb::GraphicsExport will then either send to a printer, PDF file or other output formats.
|
pure virtualnoexcept |
Draw page content on a QPainter.
painter | Where to paint the content to. |
settings | Helper class to fetch layer colors depending on the current export settings. |
Implemented in FootprintPainter, SymbolPainter, BoardPainter, RealisticBoardPainter, and SchematicPainter.