MagicSmoke  $VERSION$
MVoucherRenderer Class Reference

convenience class: renders vouchers directly More...

#include <ticketrender.h>

Inheritance diagram for MVoucherRenderer:
MLabelRenderer

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...
 

Detailed Description

convenience class: renders vouchers directly

Constructor & Destructor Documentation

MVoucherRenderer::MVoucherRenderer ( MTemplate  f)

Member Function Documentation

bool MVoucherRenderer::render ( const MOVoucher label,
QPaintDevice &  pdev,
QPainter *  painter = 0,
QPointF  offset = QPointF(),
bool  usePixmap = false 
)

The documentation for this class was generated from the following files: