MagicSmoke
$VERSION$
|
convenience class: renders vouchers directly More...
#include <ticketrender.h>
Public Member Functions | |
MVoucherRenderer (MTemplate f) | |
bool | render (const MOVoucher &label, QPaintDevice &pdev, QPainter *painter=0, QPointF offset=QPointF(), bool usePixmap=false) |
Public Member Functions inherited from MLabelRenderer | |
MLabelRenderer (MTemplate file) | |
instantiates a renderer loaded from template file More... | |
virtual | ~MLabelRenderer () |
deletes the renderer More... | |
virtual QSizeF | labelSize (const QPaintDevice &) |
returns the size of the ticket in the coordinates of the specified paint device (used for preview) More... | |
virtual QSizeF | labelSizeMM () |
returns the size of the label in Millimeters More... | |
virtual bool | render (const MLabel &label, QPaintDevice &pdev, QPainter *painter=0, QPointF offset=QPointF(), bool usePixmap=false) |
renders the ticket; returns whether the rendering was successful More... | |
convenience class: renders vouchers directly
MVoucherRenderer::MVoucherRenderer | ( | MTemplate | f | ) |
bool MVoucherRenderer::render | ( | const MOVoucher & | label, |
QPaintDevice & | pdev, | ||
QPainter * | painter = 0 , |
||
QPointF | offset = QPointF() , |
||
bool | usePixmap = false |
||
) |
References MLabelRenderer::render().