MagicSmoke
$VERSION$
|
base class for all label rendering classes More...
#include <ticketrender.h>
Public Member Functions | |
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... | |
Friends | |
class | MLabelRendererPrivate |
base class for all label rendering classes
MLabelRenderer::MLabelRenderer | ( | MTemplate | file | ) |
instantiates a renderer loaded from template file
References MTemplate::cacheFileName(), and MLabelRendererPrivate.
|
virtual |
deletes the renderer
|
virtual |
returns the size of the ticket in the coordinates of the specified paint device (used for preview)
References MLabelRendererPrivate::labelSize().
|
virtual |
returns the size of the label in Millimeters
References MLabelRendererPrivate::labelSizeMM().
|
virtual |
renders the ticket; returns whether the rendering was successful
References MLabelRendererPrivate::render().
Referenced by MVoucherRenderer::render(), and MTicketRenderer::render().
|
friend |
Referenced by MLabelRenderer().